diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 31f0bae28dcc..26a2f49208b6 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2278,8 +2278,9 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, | |||
2278 | !ifmgd->have_beacon) | 2278 | !ifmgd->have_beacon) |
2279 | drv_mgd_prepare_tx(sdata->local, sdata, 0); | 2279 | drv_mgd_prepare_tx(sdata->local, sdata, 0); |
2280 | 2280 | ||
2281 | ieee80211_send_deauth_disassoc(sdata, ifmgd->bssid, stype, | 2281 | ieee80211_send_deauth_disassoc(sdata, ifmgd->bssid, |
2282 | reason, tx, frame_buf); | 2282 | ifmgd->bssid, stype, reason, |
2283 | tx, frame_buf); | ||
2283 | } | 2284 | } |
2284 | 2285 | ||
2285 | /* flush out frame - make sure the deauth was actually sent */ | 2286 | /* flush out frame - make sure the deauth was actually sent */ |
@@ -4509,7 +4510,7 @@ void ieee80211_mgd_quiesce(struct ieee80211_sub_if_data *sdata) | |||
4509 | * cfg80211 won't know and won't actually abort those attempts, | 4510 | * cfg80211 won't know and won't actually abort those attempts, |
4510 | * thus we need to do that ourselves. | 4511 | * thus we need to do that ourselves. |
4511 | */ | 4512 | */ |
4512 | ieee80211_send_deauth_disassoc(sdata, bssid, | 4513 | ieee80211_send_deauth_disassoc(sdata, bssid, bssid, |
4513 | IEEE80211_STYPE_DEAUTH, | 4514 | IEEE80211_STYPE_DEAUTH, |
4514 | WLAN_REASON_DEAUTH_LEAVING, | 4515 | WLAN_REASON_DEAUTH_LEAVING, |
4515 | false, frame_buf); | 4516 | false, frame_buf); |
@@ -5550,7 +5551,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata, | |||
5550 | ieee80211_get_reason_code_string(req->reason_code)); | 5551 | ieee80211_get_reason_code_string(req->reason_code)); |
5551 | 5552 | ||
5552 | drv_mgd_prepare_tx(sdata->local, sdata, 0); | 5553 | drv_mgd_prepare_tx(sdata->local, sdata, 0); |
5553 | ieee80211_send_deauth_disassoc(sdata, req->bssid, | 5554 | ieee80211_send_deauth_disassoc(sdata, req->bssid, req->bssid, |
5554 | IEEE80211_STYPE_DEAUTH, | 5555 | IEEE80211_STYPE_DEAUTH, |
5555 | req->reason_code, tx, | 5556 | req->reason_code, tx, |
5556 | frame_buf); | 5557 | frame_buf); |
@@ -5570,7 +5571,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata, | |||
5570 | ieee80211_get_reason_code_string(req->reason_code)); | 5571 | ieee80211_get_reason_code_string(req->reason_code)); |
5571 | 5572 | ||
5572 | drv_mgd_prepare_tx(sdata->local, sdata, 0); | 5573 | drv_mgd_prepare_tx(sdata->local, sdata, 0); |
5573 | ieee80211_send_deauth_disassoc(sdata, req->bssid, | 5574 | ieee80211_send_deauth_disassoc(sdata, req->bssid, req->bssid, |
5574 | IEEE80211_STYPE_DEAUTH, | 5575 | IEEE80211_STYPE_DEAUTH, |
5575 | req->reason_code, tx, | 5576 | req->reason_code, tx, |
5576 | frame_buf); | 5577 | frame_buf); |