|
@@ -2033,7 +2033,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
|
|
|
ieee80211_flush_queues(local, sdata, false);
|
|
|
|
|
|
/* clear bssid only after building the needed mgmt frames */
|
|
|
- memset(ifmgd->bssid, 0, ETH_ALEN);
|
|
|
+ eth_zero_addr(ifmgd->bssid);
|
|
|
|
|
|
/* remove AP and TDLS peers */
|
|
|
sta_info_flush(sdata);
|
|
@@ -2464,7 +2464,7 @@ static void ieee80211_destroy_auth_data(struct ieee80211_sub_if_data *sdata,
|
|
|
del_timer_sync(&sdata->u.mgd.timer);
|
|
|
sta_info_destroy_addr(sdata, auth_data->bss->bssid);
|
|
|
|
|
|
- memset(sdata->u.mgd.bssid, 0, ETH_ALEN);
|
|
|
+ eth_zero_addr(sdata->u.mgd.bssid);
|
|
|
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
|
|
|
sdata->u.mgd.flags = 0;
|
|
|
mutex_lock(&sdata->local->mtx);
|
|
@@ -2777,7 +2777,7 @@ static void ieee80211_destroy_assoc_data(struct ieee80211_sub_if_data *sdata,
|
|
|
del_timer_sync(&sdata->u.mgd.timer);
|
|
|
sta_info_destroy_addr(sdata, assoc_data->bss->bssid);
|
|
|
|
|
|
- memset(sdata->u.mgd.bssid, 0, ETH_ALEN);
|
|
|
+ eth_zero_addr(sdata->u.mgd.bssid);
|
|
|
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
|
|
|
sdata->u.mgd.flags = 0;
|
|
|
mutex_lock(&sdata->local->mtx);
|
|
@@ -4474,7 +4474,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
|
|
|
return 0;
|
|
|
|
|
|
err_clear:
|
|
|
- memset(ifmgd->bssid, 0, ETH_ALEN);
|
|
|
+ eth_zero_addr(ifmgd->bssid);
|
|
|
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
|
|
|
ifmgd->auth_data = NULL;
|
|
|
err_free:
|
|
@@ -4817,7 +4817,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
|
|
|
|
|
|
return 0;
|
|
|
err_clear:
|
|
|
- memset(ifmgd->bssid, 0, ETH_ALEN);
|
|
|
+ eth_zero_addr(ifmgd->bssid);
|
|
|
ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
|
|
|
ifmgd->assoc_data = NULL;
|
|
|
err_free:
|