Skip to contentSkip to conversation

ath9k_htc: Silence undersized packet warnings

PATCH In review Masashi Honma 2 participants 2 messages May 4, 2020 – May 6, 2020 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k_htc: Silence undersized packet warnings

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.

Ref: https://bugzilla.kernel.org/show_bug.cgi?id=207539

Fixes cd486e627e67 ("ath9k_htc: Discard undersized packets")
---
 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +3 -3
index 9cec5c216e1f..118e5550b10c 100644
@@ -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;
 	}
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · 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.

Quoted 5 lines

Ref: https://bugzilla.kernel.org/show_bug.cgi?id=207539

Fixes cd486e627e67 ("ath9k_htc: Discard undersized packets")

Patch applied to ath-next branch of ath.git, thanks.

450edd280598 ath9k_htc: Silence undersized packet warnings

Signature · 3 lines
https://patchwork.kernel.org/patch/11527651/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches