Skip to content

Commit

Permalink
WIFI-11006: Shorten the kernel backtrace warning msg for ieee80211_bs…
Browse files Browse the repository at this point in the history
…s_get_elem

Signed-off-by: Tanya Singh <[email protected]>
  • Loading branch information
tanyasingh-ec committed Oct 24, 2024
1 parent 008ca96 commit 57718b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 ||

0 comments on commit 57718b3

Please sign in to comment.