]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: show AP scan capability
authorAntonio Quartulli <ordex@autistici.org>
Fri, 26 Oct 2012 14:41:47 +0000 (16:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 14:48:00 +0000 (16:48 +0200)
If the wireless driver supports the AP scan capability (this can be
seen by checking NL80211_FEATURE_AP_SCAN) iw has to show it.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
info.c

diff --git a/info.c b/info.c
index 799f6d31563c282d9349279743089b74ea101911..5dab1e8897bb000e668f8a1d1d1e30d5d6394f5d 100644 (file)
--- a/info.c
+++ b/info.c
@@ -448,6 +448,8 @@ broken_combination:
                        printf("\tDevice supports low priority scan.\n");
                if (features & NL80211_FEATURE_SCAN_FLUSH)
                        printf("\tDevice supports scan flush.\n");
+               if (features & NL80211_FEATURE_AP_SCAN)
+                       printf("\tDevice supports AP scan.\n");
        }
 
        return NL_SKIP;