|
@@ -3549,6 +3549,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
|
|
|
{
|
|
|
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
|
|
|
u8 frame_buf[IEEE80211_DEAUTH_FRAME_LEN];
|
|
|
+ bool tx = !req->local_state_change;
|
|
|
|
|
|
mutex_lock(&ifmgd->mtx);
|
|
|
|
|
@@ -3565,12 +3566,12 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
|
|
|
if (ifmgd->associated &&
|
|
|
ether_addr_equal(ifmgd->associated->bssid, req->bssid)) {
|
|
|
ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH,
|
|
|
- req->reason_code, true, frame_buf);
|
|
|
+ req->reason_code, tx, frame_buf);
|
|
|
} else {
|
|
|
drv_mgd_prepare_tx(sdata->local, sdata);
|
|
|
ieee80211_send_deauth_disassoc(sdata, req->bssid,
|
|
|
IEEE80211_STYPE_DEAUTH,
|
|
|
- req->reason_code, true,
|
|
|
+ req->reason_code, tx,
|
|
|
frame_buf);
|
|
|
}
|
|
|
|