]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: add FEATURE support for scan randomization
authorBrian Norris <briannorris@chromium.org>
Wed, 14 Nov 2018 23:11:29 +0000 (15:11 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Dec 2018 12:09:29 +0000 (13:09 +0100)
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
info.c

diff --git a/info.c b/info.c
index d0577e32552e34370848eff8d50a1cef864a545b..f1a25daa63daf5ffb1d4bae5fb8a088abeb80361 100644 (file)
--- a/info.c
+++ b/info.c
@@ -609,6 +609,12 @@ broken_combination:
                        printf("\tDevice supports configuring vdev MAC-addr on create.\n");
                if (features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH)
                        printf("\tDevice supports TDLS channel switching\n");
+               if (features & NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR)
+                       printf("\tDevice supports randomizing MAC-addr in scans.\n");
+               if (features & NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR)
+                       printf("\tDevice supports randomizing MAC-addr in sched scans.\n");
+               if (features & NL80211_FEATURE_ND_RANDOM_MAC_ADDR)
+                       printf("\tDevice supports randomizing MAC-addr in net-detect scans.\n");
        }
 
        if (tb_msg[NL80211_ATTR_TDLS_SUPPORT])