* [PATCH] ath9k_htc: Silence undersized packet warnings
@ 2020-05-04 21:44 Masashi Honma
2020-05-06 6:22 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Masashi Honma @ 2020-05-04 21:44 UTC (permalink / raw)
To: linux-wireless; +Cc: ath9k-devel, pro.denis, Masashi Honma
Some devices like TP-Link TL-WN722N produces this kind of messages
frequently.
kernel: ath: phy0: Short RX data len, dropping (dlen: 4)
This warning is useful for developers to recognize that the device
(Wi-Fi dongle or USB hub etc) is noisy but not for general users. So
this patch make this warning to debug message.
Reported-By: Denis <pro.denis@protonmail.com>
Ref: https://bugzilla.kernel.org/show_bug.cgi?id=207539
Fixes: cd486e627e67 ("ath9k_htc: Discard undersized packets")
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
---
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index 9cec5c216e1f..118e5550b10c 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -999,9 +999,9 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
* which are not PHY_ERROR (short radar pulses have a length of 3)
*/
if (unlikely(!rs_datalen || (rs_datalen < 10 && !is_phyerr))) {
- ath_warn(common,
- "Short RX data len, dropping (dlen: %d)\n",
- rs_datalen);
+ ath_dbg(common, ANY,
+ "Short RX data len, dropping (dlen: %d)\n",
+ rs_datalen);
goto rx_next;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath9k_htc: Silence undersized packet warnings
2020-05-04 21:44 [PATCH] ath9k_htc: Silence undersized packet warnings Masashi Honma
@ 2020-05-06 6:22 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-05-06 6:22 UTC (permalink / raw)
To: Masashi Honma; +Cc: linux-wireless, ath9k-devel, pro.denis, Masashi Honma
Masashi Honma <masashi.honma@gmail.com> wrote:
> Some devices like TP-Link TL-WN722N produces this kind of messages
> frequently.
>
> kernel: ath: phy0: Short RX data len, dropping (dlen: 4)
>
> This warning is useful for developers to recognize that the device
> (Wi-Fi dongle or USB hub etc) is noisy but not for general users. So
> this patch make this warning to debug message.
>
> Reported-By: Denis <pro.denis@protonmail.com>
> Ref: https://bugzilla.kernel.org/show_bug.cgi?id=207539
> Fixes: cd486e627e67 ("ath9k_htc: Discard undersized packets")
> Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Patch applied to ath-next branch of ath.git, thanks.
450edd280598 ath9k_htc: Silence undersized packet warnings
--
https://patchwork.kernel.org/patch/11527651/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-06 6:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-04 21:44 [PATCH] ath9k_htc: Silence undersized packet warnings Masashi Honma
2020-05-06 6:22 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).