diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a8cf70bf1cba..5d77650d4363 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -3300,6 +3300,8 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, | |||
3300 | goto out_unlock; | 3300 | goto out_unlock; |
3301 | 3301 | ||
3302 | err_clear: | 3302 | err_clear: |
3303 | memset(ifmgd->bssid, 0, ETH_ALEN); | ||
3304 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID); | ||
3303 | ifmgd->auth_data = NULL; | 3305 | ifmgd->auth_data = NULL; |
3304 | err_free: | 3306 | err_free: |
3305 | kfree(auth_data); | 3307 | kfree(auth_data); |
@@ -3508,6 +3510,8 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, | |||
3508 | err = 0; | 3510 | err = 0; |
3509 | goto out; | 3511 | goto out; |
3510 | err_clear: | 3512 | err_clear: |
3513 | memset(ifmgd->bssid, 0, ETH_ALEN); | ||
3514 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID); | ||
3511 | ifmgd->assoc_data = NULL; | 3515 | ifmgd->assoc_data = NULL; |
3512 | err_free: | 3516 | err_free: |
3513 | kfree(assoc_data); | 3517 | kfree(assoc_data); |