]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't Tx a deauth frame if the AP forbade Tx
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 31 Aug 2018 08:31:12 +0000 (11:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Sep 2018 08:39:34 +0000 (10:39 +0200)
commit982d39d6cfb96a24096bcc286cfd21110b93fc90
tree64f01d144b976b27240de90571067189b44763a7
parent0f91b506d126ade7c4100610539daadda17ac1a3
mac80211: don't Tx a deauth frame if the AP forbade Tx

If the driver fails to properly prepare for the channel
switch, mac80211 will disconnect. If the CSA IE had mode
set to 1, it means that the clients are not allowed to send
any Tx on the current channel, and that includes the
deauthentication frame.

Make sure that we don't send the deauthentication frame in
this case.

In iwlwifi, this caused a failure to flush queues since the
firmware already closed the queues after having parsed the
CSA IE. Then mac80211 would wait until the deauthentication
frame would go out (drv_flush(drop=false)) and that would
never happen.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c