From: Aditya Kumar Singh Date: Mon, 12 May 2025 15:23:04 +0000 (+0530) Subject: iw: print NO-EHT flags for reg get command X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1558e6021ec5ae0f6fcb1c31e20d0d4dacebd82b;p=thirdparty%2Fiw.git iw: print NO-EHT flags for reg get command Currently when NO-EHT flag is set by driver, iw doesn't display that information in the 'iw reg get' command. Add changes to print "NO-EHT" while displaying the reg rules via reg get command, if a reg rule is marked with NO-EHT flag. Sample Output: country RU: DFS-UNSET (2402 - 2472 @ 40), (N/A, 20), (N/A), NO-EHT (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW, NO-EHT (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW, NO-EHT (5490 - 5730 @ 160), (N/A, 24), (0 ms), DFS, AUTO-BW, NO-EHT (5735 - 5835 @ 80), (N/A, 30), (N/A), AUTO-BW, NO-EHT Signed-off-by: Aditya Kumar Singh Signed-off-by: Manish Dharanenthiran Link: https://patch.msgid.link/20250512152304.2852658-1-manish.dharanenthiran@oss.qualcomm.com Signed-off-by: Johannes Berg --- diff --git a/reg.c b/reg.c index 27899ce..f24535d 100644 --- a/reg.c +++ b/reg.c @@ -204,6 +204,7 @@ static int print_reg_handler(struct nl_msg *msg, void *arg) PARSE_FLAG(NL80211_RRF_NO_160MHZ, "NO-160MHZ"); PARSE_FLAG(NL80211_RRF_NO_HE, "NO-HE"); PARSE_FLAG(NL80211_RRF_NO_320MHZ, "NO-320MHZ"); + PARSE_FLAG(NL80211_RRF_NO_EHT, "NO-EHT"); /* Kernels that support NO_IR always turn on both flags */ if ((flags & NL80211_RRF_NO_IR) && (flags & __NL80211_RRF_NO_IBSS)) {