mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] wifi: mac80211: Add limit to ignore NSS change warning
@ 2025-05-29  7:09 Paul Menzel
  2025-06-24 14:42 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2025-05-29  7:09 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Paul Menzel, linux-wireless, linux-kernel

Currently, Linux warns as below:

    Ignoring NSS change in VHT Operating Mode Notification from cc:d4:2e:bb:59:f4 with invalid nss 4

For the ignorant reader, it’s unclear, why it’s invalid. Checking the
code, valid means it’s smaller or equal to `link_sta->op_mode_nss,` so
add that to the warning.

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
 net/mac80211/vht.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/vht.c b/net/mac80211/vht.c
index c5c5d16ed6c8..9f7938ac4031 100644
--- a/net/mac80211/vht.c
+++ b/net/mac80211/vht.c
@@ -672,8 +672,8 @@ u32 __ieee80211_vht_handle_opmode(struct ieee80211_sub_if_data *sdata,
 				sta_opmode.changed |= STA_OPMODE_N_SS_CHANGED;
 			}
 		} else {
-			pr_warn_ratelimited("Ignoring NSS change in VHT Operating Mode Notification from %pM with invalid nss %d",
-					    link_sta->pub->addr, nss);
+			pr_warn_ratelimited("Ignoring NSS change in VHT Operating Mode Notification from %pM with invalid nss %d > %d",
+					    link_sta->pub->addr, nss, link_sta->op_mode_nss);
 		}
 	}
 
-- 
2.49.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] wifi: mac80211: Add limit to ignore NSS change warning
  2025-05-29  7:09 [PATCH] wifi: mac80211: Add limit to ignore NSS change warning Paul Menzel
@ 2025-06-24 14:42 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2025-06-24 14:42 UTC (permalink / raw)
  To: Paul Menzel; +Cc: linux-wireless, linux-kernel

On Thu, 2025-05-29 at 09:09 +0200, Paul Menzel wrote:
> Currently, Linux warns as below:
> 
>     Ignoring NSS change in VHT Operating Mode Notification from cc:d4:2e:bb:59:f4 with invalid nss 4
> 

I think we should make it a debug message as well, that's a really
pointless thing to bother users with.

Want to make that change too?

johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-24 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-29  7:09 [PATCH] wifi: mac80211: Add limit to ignore NSS change warning Paul Menzel
2025-06-24 14:42 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®