wireless/bcm43xxx: skip WEP privacy

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-27 23:05:55 +08:00 committed by Xiang Xiao
parent 38534e06dd
commit 1935783392
1 changed files with 6 additions and 4 deletions

View File

@ -894,10 +894,12 @@ void bcmf_wl_scan_event_handler(FAR struct bcmf_dev_s *priv,
ie_offset += ie_buffer[ie_offset + 1] + 2;
}
if (vaild_bss == false)
{
goto process_next_bss;
}
/* Check if AP is configured for WEP or unsupport privacy */
if ((vaild_bss && (bss->capability & DOT11_CAP_PRIVACY)) || !vaild_bss)
{
goto process_next_bss;
}
vaild_bss: