From 1935783392681cd23f9aa7ac7b4212550ff3aa9c Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 27 Jun 2022 23:05:55 +0800 Subject: [PATCH] wireless/bcm43xxx: skip WEP privacy Signed-off-by: chao an --- drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index 0071195e31..0207f4d4d1 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -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: