aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/ctrl_iface_common.h
diff options
context:
space:
mode:
authorbhagavathi perumal s <bperumal@qti.qualcomm.com>2017-11-01 17:09:55 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-23 18:12:34 (GMT)
commitcc79e06f0053ac85f04f08376a2269c634154c87 (patch)
tree7990274e07bdccfbf5bc676480ef451cce1d63ac /src/common/ctrl_iface_common.h
parent92fe5f567cb9611f4698f56c630f1d693f61c027 (diff)
downloadhostap-cc79e06f0053ac85f04f08376a2269c634154c87.zip
hostap-cc79e06f0053ac85f04f08376a2269c634154c87.tar.gz
hostap-cc79e06f0053ac85f04f08376a2269c634154c87.tar.bz2
hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA
This allows external applications to get event indication for Probe Request frames. Extend ctrl iface cmd "ATTACH" to enable this event on per-request basis. For example, user has to send ctrl iface cmd "ATTACH probe_rx_events=1" to enable the Probe Request frame events. Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
Diffstat (limited to 'src/common/ctrl_iface_common.h')
-rw-r--r--src/common/ctrl_iface_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/ctrl_iface_common.h b/src/common/ctrl_iface_common.h
index 0b6e3e7..85e258e 100644
--- a/src/common/ctrl_iface_common.h
+++ b/src/common/ctrl_iface_common.h
@@ -11,6 +11,9 @@
#include "utils/list.h"
+/* Events enable bits (wpa_ctrl_dst::events) */
+#define WPA_EVENT_RX_PROBE_REQUEST BIT(0)
+
/**
* struct wpa_ctrl_dst - Data structure of control interface monitors
*
@@ -23,13 +26,14 @@ struct wpa_ctrl_dst {
socklen_t addrlen;
int debug_level;
int errors;
+ u32 events; /* WPA_EVENT_* bitmap */
};
void sockaddr_print(int level, const char *msg, struct sockaddr_storage *sock,
socklen_t socklen);
int ctrl_iface_attach(struct dl_list *ctrl_dst, struct sockaddr_storage *from,
- socklen_t fromlen);
+ socklen_t fromlen, const char *input);
int ctrl_iface_detach(struct dl_list *ctrl_dst, struct sockaddr_storage *from,
socklen_t fromlen);
int ctrl_iface_level(struct dl_list *ctrl_dst, struct sockaddr_storage *from,