aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-04-07 09:23:21 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-09 20:06:00 (GMT)
commitf0b95bcf2960d590d00982fc4901d08f5edb4645 (patch)
tree9e9cbdf7aeb9e1f63b74ab5503cf6296dd6a3b82 /src
parent8ea38f1366fa8cf16ff9bb5e14ed92d9c7698d1c (diff)
downloadhostap-f0b95bcf2960d590d00982fc4901d08f5edb4645.zip
hostap-f0b95bcf2960d590d00982fc4901d08f5edb4645.tar.gz
hostap-f0b95bcf2960d590d00982fc4901d08f5edb4645.tar.bz2
Add MASK=0xH option for the ctrl_iface BSS command
This optional parameter to the BSS command can be used to select which fields are included in the output to avoid having to parse through unneeded information and to reduce the buffer size. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> (cherry picked from commit 5f97dd1c57f1b72b3493ac4237b505bdd4416a57)
Diffstat (limited to 'src')
-rw-r--r--src/common/wpa_ctrl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h
index 5b4846f..35012e8 100644
--- a/src/common/wpa_ctrl.h
+++ b/src/common/wpa_ctrl.h
@@ -139,6 +139,27 @@ extern "C" {
#define AP_STA_DISCONNECTED "AP-STA-DISCONNECTED "
+/* BSS command information masks */
+
+#define WPA_BSS_MASK_ALL 0xFFFFFFFF
+#define WPA_BSS_MASK_ID BIT(0)
+#define WPA_BSS_MASK_BSSID BIT(1)
+#define WPA_BSS_MASK_FREQ BIT(2)
+#define WPA_BSS_MASK_BEACON_INT BIT(3)
+#define WPA_BSS_MASK_CAPABILITIES BIT(4)
+#define WPA_BSS_MASK_QUAL BIT(5)
+#define WPA_BSS_MASK_NOISE BIT(6)
+#define WPA_BSS_MASK_LEVEL BIT(7)
+#define WPA_BSS_MASK_TSF BIT(8)
+#define WPA_BSS_MASK_AGE BIT(9)
+#define WPA_BSS_MASK_IE BIT(10)
+#define WPA_BSS_MASK_FLAGS BIT(11)
+#define WPA_BSS_MASK_SSID BIT(12)
+#define WPA_BSS_MASK_WPS_SCAN BIT(13)
+#define WPA_BSS_MASK_P2P_SCAN BIT(14)
+#define WPA_BSS_MASK_INTERNETW BIT(15)
+
+
/* wpa_supplicant/hostapd control interface access */
/**