From eb9cbaec72f69f3cb470265ba2885ea89b4c124b Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Thu, 24 Oct 2024 11:46:59 +0800 Subject: [PATCH] ipq807x: Shorten the kernel backtrace warning msg for ieee80211_bss_get_elem Fixes: WIFI-11006 Signed-off-by: Tanya Singh --- ...tor-mode.patch => 998-fix-monitor-mode.patch} | 0 ...e-kernel-warn-msg-abnormal-he-nss-value.patch | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) rename feeds/ipq807x_v5.4/mac80211/patches/pending/{999-fix-monitor-mode.patch => 998-fix-monitor-mode.patch} (100%) create mode 100644 feeds/ipq807x_v5.4/mac80211/patches/pending/999-remove-kernel-warn-msg-abnormal-he-nss-value.patch diff --git a/feeds/ipq807x_v5.4/mac80211/patches/pending/999-fix-monitor-mode.patch b/feeds/ipq807x_v5.4/mac80211/patches/pending/998-fix-monitor-mode.patch similarity index 100% rename from feeds/ipq807x_v5.4/mac80211/patches/pending/999-fix-monitor-mode.patch rename to feeds/ipq807x_v5.4/mac80211/patches/pending/998-fix-monitor-mode.patch diff --git a/feeds/ipq807x_v5.4/mac80211/patches/pending/999-remove-kernel-warn-msg-abnormal-he-nss-value.patch b/feeds/ipq807x_v5.4/mac80211/patches/pending/999-remove-kernel-warn-msg-abnormal-he-nss-value.patch new file mode 100644 index 000000000..a27e76cad --- /dev/null +++ b/feeds/ipq807x_v5.4/mac80211/patches/pending/999-remove-kernel-warn-msg-abnormal-he-nss-value.patch @@ -0,0 +1,16 @@ +--- a/net/wireless/util.c ++++ b/net/wireless/util.c +@@ -1404,9 +1404,11 @@ static u32 cfg80211_calculate_bitrate_he + if (WARN_ON_ONCE(rate->he_ru_alloc > + NL80211_RATE_INFO_HE_RU_ALLOC_2x996)) + return 0; +- if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) ++ if (rate->nss < 1 || rate->nss > 8) { ++ printk_once(1, "invalid rate->nss: %d\n", rate->nss); + return 0; +- ++ } ++ + if (rate->bw == RATE_INFO_BW_160) + result = rates_160M[rate->he_gi]; + else if (rate->bw == RATE_INFO_BW_80 ||