ath10k: prevent active scans on potential unusable channels
authorSven Eckelmann <sven.eckelmann@openmesh.com>
Thu, 26 Jul 2018 13:59:48 +0000 (15:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:47:32 +0000 (10:47 +0300)
commit3f259111583801013cb605bb4414aa529adccf1c
tree3983e26229d02cda8f8dacab75282be9cac05636
parentebfac1d0c1663a47f6a0912930b9b8db4306e38b
ath10k: prevent active scans on potential unusable channels

The QCA4019 hw1.0 firmware 10.4-3.2.1-00050 and 10.4-3.5.3-00053 (and most
likely all other) seem to ignore the WMI_CHAN_FLAG_DFS flag during the
scan. This results in transmission (probe requests) on channels which are
not "available" for transmissions.

Since the firmware is closed source and nothing can be done from our side
to fix the problem in it, the driver has to work around this problem. The
WMI_CHAN_FLAG_PASSIVE seems to be interpreted by the firmware to not
scan actively on a channel unless an AP was detected on it. Simple probe
requests will then be transmitted by the STA on the channel.

ath10k must therefore also use this flag when it queues a radar channel for
scanning. This should reduce the chance of an active scan when the channel
might be "unusable" for transmissions.

Fixes: e8a50f8ba44b ("ath10k: introduce DFS implementation")
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c