]> 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)
commit749dcb86bdc86a4ceb6135ed4470500b36b924e4
tree9cebf3578d2a263ffea476d3ed249b3622baba87
parent78776b0f78b3332a056e13e0f9dd913ac5ac3e54
ath9k: correctly handle short radar pulses

In commit e4673cb42eaa ("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: e4673cb42eaa ("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