OSDN Git Service

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)
commitdf5c4150501ee7e86383be88f6490d970adcf157
tree9cebf3578d2a263ffea476d3ed249b3622baba87
parentd9e47698965d782dba1d9d9bc04441e668d71008
ath9k: correctly handle short radar pulses

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