OSDN Git Service

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)
commitd650097bfadab387dfb762bf46b8598cbedf50b3
tree1ee61b6a479e2146766642123bf8971b7508dbad
parent72654fa7b52861ec91579e4801412fe2d6ba23a1
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