diff mbox

[1/2] iw: show AP scan capability

Message ID 1351262508-23386-1-git-send-email-ordex@autistici.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Antonio Quartulli Oct. 26, 2012, 2:41 p.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Johannes Berg Oct. 26, 2012, 2:48 p.m. UTC | #1
Applied both, thanks.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/info.c b/info.c
index 799f6d3..5dab1e8 100644
--- 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;