aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-09-05 16:38:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-05 16:38:06 (GMT)
commitb308a304d4289a0d9cf4f003ae8fa7aeba8c6b45 (patch)
treecd074e7c8bf537d1bb4e5e3a9ca1425cbaf6a660 /src/ap/ieee802_11.c
parentc4f0c4d67dc6ee2fbd9623e189756c4e6b0e7d78 (diff)
downloadhostap-b308a304d4289a0d9cf4f003ae8fa7aeba8c6b45.zip
hostap-b308a304d4289a0d9cf4f003ae8fa7aeba8c6b45.tar.gz
hostap-b308a304d4289a0d9cf4f003ae8fa7aeba8c6b45.tar.bz2
Add station tracking based on other management frame subtypes
This extends the previous tracking design to add a station entry based on other management frames than Probe Request frames. For example, this covers a case where the station is using passive scanning. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ieee802_11.c')
-rw-r--r--src/ap/ieee802_11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 78355d6..19c6a12 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2335,6 +2335,9 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
return 0;
}
+ if (hapd->iconf->track_sta_max_num)
+ sta_track_add(hapd->iface, mgmt->sa);
+
switch (stype) {
case WLAN_FC_STYPE_AUTH:
wpa_printf(MSG_DEBUG, "mgmt::auth");