]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: correctly handle short radar pulses
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Tue, 11 Jun 2019 13:36:56 +0000 (15:36 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:43:40 +0000 (20:43 +0300)
commit4f41c462a2edda0f1b0496d8e07fc5dcf43b8701
tree9cebf3578d2a263ffea476d3ed249b3622baba87
parent013d1c3320221e387834c85952dd0482a0003589
ath9k: correctly handle short radar pulses

In commit 8def4e90c8c6 ("ath9k: discard undersized packets")
the lower bound of RX packets was set to 10 (min ACK size) to
filter those that would otherwise be treated as invalid at
mac80211.

Alas, short radar pulses are reported as PHY_ERROR frames
with length set to 3. Therefore their detection stopped
working after that commit.

NOTE: ath9k drivers built thereafter will not pass DFS
certification.

This extends the criteria for short packets to explicitly
handle PHY_ERROR frames.

Fixes: 8def4e90c8c6 ("ath9k: discard undersized packets")
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/recv.c