diff mbox series

[4/6] brcmfmac: Fix to add brcmf_clear_assoc_ies when rmmod

Message ID 20220722115632.620681-5-alvin@pqrs.dk (mailing list archive)
State Accepted
Commit 5606aeaad01e0b0ad09c021cfa44ee18fc4ae33b
Delegated to: Kalle Valo
Headers show
Series brcmfmac: fixes from Cypress/Infineon | expand

Commit Message

Alvin Šipraga July 22, 2022, 11:56 a.m. UTC
From: Wataru Gohda <wataru.gohda@cypress.com>

Conn_info->req_ie/resp_ie is used to indicate the assoc_req_ies /
assoc_resp_ies to cfg80211 layer when connection is done. The buffer is
freed and allocated again at next connection establishment. The buffers
also needs to be freed at the timing of rmmod as well.

Signed-off-by: Wataru Gohda <wataru.gohda@cypress.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 605206abe424..6ef574d69755 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -6429,6 +6429,7 @@  static void wl_deinit_priv(struct brcmf_cfg80211_info *cfg)
 	cfg->dongle_up = false;	/* dongle down */
+	brcmf_clear_assoc_ies(cfg);
 static void init_vif_event(struct brcmf_cfg80211_vif_event *event)