]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: Print limit for maximum associated stations in AP mode
authorPali Rohár <pali@kernel.org>
Wed, 20 May 2020 09:47:01 +0000 (11:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 May 2020 08:36:40 +0000 (10:36 +0200)
Signed-off-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20200520094701.10791-1-pali@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
info.c

diff --git a/info.c b/info.c
index 9147b925ba12713ba5d01b01f66aac5cc3a1bab9..8062629b4a52e32e1c9f0f081a8ddd4603f9bcb2 100644 (file)
--- a/info.c
+++ b/info.c
@@ -723,6 +723,10 @@ broken_combination:
                        pat->max_pattern_len, pat->max_pkt_offset, rule->max_delay);
        }
 
+       if (tb_msg[NL80211_ATTR_MAX_AP_ASSOC_STA])
+               printf("\tMaximum associated stations in AP mode: %u\n",
+                      nla_get_u16(tb_msg[NL80211_ATTR_MAX_AP_ASSOC_STA]));
+
        return NL_SKIP;
 }