]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Call mgd_prep_tx before transmitting deauthentication
authorIlan Peer <ilan.peer@intel.com>
Mon, 19 Feb 2018 12:48:41 +0000 (14:48 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 22 Feb 2018 20:13:04 +0000 (21:13 +0100)
commit295c0065b0da20f0fba39f010962492f0336e289
tree7bc3888f2696e3e7a2445f5c8a14da48074b5836
parent76160363fb7fbe07b8ce3c1b0ae905ef3526154d
mac80211: Call mgd_prep_tx before transmitting deauthentication

In multi channel scenarios, when disassociating from the AP before a
beacon was heard from the AP, it is not guaranteed that the virtual
interface is granted air time for the transmission of the
deauthentication frame. This in turn can lead to various issues as
the AP might never get the deauthentication frame.

To mitigate such possible issues, add a HW flag indicating that the
driver requires mac80211 to call the mgd_prep_tx() driver callback
to make sure that the virtual interface is granted immediate airtime
to be able to transmit the frame, in case that no beacon was heard
from the AP.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/debugfs.c
net/mac80211/mlme.c