From d27129bc3569399f323fed53abdea4cc7fd7233e Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 30 Jun 2022 13:00:29 +0800 Subject: [PATCH] wireless/bcm43xxx: discard auth event if netdev down Signed-off-by: chao an --- drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index f18985be4b..f204415344 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -622,6 +622,11 @@ void bcmf_wl_auth_event_handler(FAR struct bcmf_dev_s *priv, return; } + if (!priv->bc_bifup) + { + return; + } + bcmf_hexdump((uint8_t *)event, len, (unsigned long)event); if (type == WLC_E_PSK_SUP)