]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: refactor radar detection code
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 8 Apr 2014 06:56:09 +0000 (09:56 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Apr 2014 05:35:25 +0000 (08:35 +0300)
commit2f2d8e2b855448cf44b8289788dc475462a32946
tree1ee61b6a479e2146766642123bf8971b7508dbad
parent8f3b18927d91abc13982c52b8b154b19c66a94a7
ath10k: refactor radar detection code

If 20MHz CAC completed successfully then
subsequent CAC with wider bandwidth (40Mhz, 80Mhz)
with identical control frequency did not start
monitor vdev making it impossible to detect any
radar pulses during intended CAC.

It also was incorrect to assume ath10k_config() will
be called after CAC is finished. Theoretically for
non-HT channels nothing changes between CAC and
start_ap() (albeit in practice this can be
different). The incorrect assumption led to CAC
not being stopped on non-HT chandefs leading to
all Rx being drooped making it impossible for
clients to associate.

While at it clean up the code a bit.

kvalo: separate WARN_ON() from the if statement

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c