-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIFI-11006: Shorten the kernel backtrace warning msg for ieee80211_bs…
…s_get_elem Signed-off-by: Tanya Singh <[email protected]>
- Loading branch information
1 parent
008ca96
commit 57718b3
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
...807x_v5.4/mac80211/patches/pending/999-remove-kernel-warn-msg-abnormal-he-nss-value.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 || |