Skip to content

Commit 3242fa0

Browse files
masapgregkh
authored andcommitted
ath9k_htc: Silence undersized packet warnings
[ Upstream commit 450edd2 ] 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: cd486e6 ("ath9k_htc: Discard undersized packets") Signed-off-by: Masashi Honma <masashi.honma@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200504214443.4485-1-masashi.honma@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b06bbbc commit 3242fa0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/net/wireless/ath/ath9k/htc_drv_txrx.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
999999
* which are not PHY_ERROR (short radar pulses have a length of 3)
10001000
*/
10011001
if (unlikely(!rs_datalen || (rs_datalen < 10 && !is_phyerr))) {
1002-
ath_warn(common,
1003-
"Short RX data len, dropping (dlen: %d)\n",
1004-
rs_datalen);
1002+
ath_dbg(common, ANY,
1003+
"Short RX data len, dropping (dlen: %d)\n",
1004+
rs_datalen);
10051005
goto rx_next;
10061006
}
10071007

0 commit comments

Comments
 (0)