mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
ath9k_htc: Silence undersized packet warnings
[ Upstream commit450edd2805
] 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:cd486e627e
("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>
This commit is contained in:
parent
ad5399b948
commit
1f52c5a2a4
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
* which are not PHY_ERROR (short radar pulses have a length of 3)
|
||||||
*/
|
*/
|
||||||
if (unlikely(!rs_datalen || (rs_datalen < 10 && !is_phyerr))) {
|
if (unlikely(!rs_datalen || (rs_datalen < 10 && !is_phyerr))) {
|
||||||
ath_warn(common,
|
ath_dbg(common, ANY,
|
||||||
"Short RX data len, dropping (dlen: %d)\n",
|
"Short RX data len, dropping (dlen: %d)\n",
|
||||||
rs_datalen);
|
rs_datalen);
|
||||||
goto rx_next;
|
goto rx_next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue