From b35d695901eac6ffb882feac5090f6682e3d9502 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 13 Jul 2021 10:10:34 +0800 Subject: [PATCH] ath10k-ct: remove noise log --- .../patches/970-remove-noise-log.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/kernel/ath10k-ct/patches/970-remove-noise-log.patch diff --git a/package/kernel/ath10k-ct/patches/970-remove-noise-log.patch b/package/kernel/ath10k-ct/patches/970-remove-noise-log.patch new file mode 100644 index 000000000..4813e79bf --- /dev/null +++ b/package/kernel/ath10k-ct/patches/970-remove-noise-log.patch @@ -0,0 +1,45 @@ +--- a/ath10k-5.10/htt_rx.c ++++ b/ath10k-5.10/htt_rx.c +@@ -3026,7 +3026,7 @@ + + /* workaround for possibly firmware bug */ + if (unlikely(tx_done.tx_rate_code == ATH10K_CT_TX_BEACON_INVALID_RATE_CODE)) { +- dev_warn_once(ar->dev, "htt tx ct: fixing invalid VHT TX rate code 0xff\n"); ++ //dev_warn_once(ar->dev, "htt tx ct: fixing invalid VHT TX rate code 0xff\n"); + tx_done.tx_rate_code = 0; + } + +@@ -3120,7 +3120,7 @@ + + /* workaround for possibly firmware bug */ + if (unlikely(tx_done.tx_rate_code == ATH10K_CT_TX_BEACON_INVALID_RATE_CODE)) { +- dev_warn_once(ar->dev, "htt tx: fixing invalid VHT TX rate code 0xff\n"); ++ //dev_warn_once(ar->dev, "htt tx: fixing invalid VHT TX rate code 0xff\n"); + tx_done.tx_rate_code = 0; + } + +@@ -3970,11 +3970,11 @@ + if (txrate.flags == WMI_RATE_PREAMBLE_VHT && txrate.mcs > 9) { + static bool done_once = 0; + if (!done_once) { +- ath10k_warn(ar, "Invalid VHT mcs %hhd peer stats", txrate.mcs); ++ //ath10k_warn(ar, "Invalid VHT mcs %hhd peer stats", txrate.mcs); + done_once = true; + } + else { +- ath10k_dbg(ar, ATH10K_DBG_HTT, "Invalid VHT mcs %hhd peer stats", txrate.mcs); ++ //ath10k_dbg(ar, ATH10K_DBG_HTT, "Invalid VHT mcs %hhd peer stats", txrate.mcs); + } + return; + } +--- a/ath10k-5.10/wmi.c ++++ b/ath10k-5.10/wmi.c +@@ -6329,7 +6329,7 @@ + + /* workaround for possibly firmware bug */ + if (unlikely(ev->tx_rate_code == ATH10K_CT_TX_BEACON_INVALID_RATE_CODE)) { +- dev_warn_once(ar->dev, "wmi: fixing invalid VHT TX rate code 0xff\n"); ++ //dev_warn_once(ar->dev, "wmi: fixing invalid VHT TX rate code 0xff\n"); + ev->tx_rate_code = 0; + } +