mac80211: process skb_queue while scanning in HW
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Sat, 15 Aug 2015 19:04:01 +0000 (22:04 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:21:20 +0000 (15:21 +0200)
commitfc58c47ef1ace65c5c1c94f2e96578e7b04aad64
tree7e8be2b89bb5e69677589c2c3bef71736c46889e
parent8de1c63ba1ccfa8225505e60b405537c2c72673c
mac80211: process skb_queue while scanning in HW

Queued frames aren't processed during scan, which results in an inability
to complete the BA session establishment until the scan ends. Since we
can't tx frames until the BA agreement setup is complete, it might result
in a very large latency during scan.
Fix this by allowing to process queued skbs while scanning in HW. This
should be ok since the devices which support hw scan should be able
to handle tx/rx while scanning.
During SW scan, mac80211 drops any txed frames besides probes and NDPs,
so it is still needed to delay processing of the queued frames till the
SW scan is done.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c