aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMatti Gottlieb <matti.gottlieb@intel.com>2016-04-06 14:14:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 12:21:18 (GMT)
commitece4ac5f4e0da9d76916abc07b0adeb053725f7c (patch)
tree2d408be0aadbdad3f0969c1539cc418df4ce59ae /wpa_supplicant/events.c
parente42adb9a75d140ea504203dfffbad492fa4e5c73 (diff)
downloadhostap-ece4ac5f4e0da9d76916abc07b0adeb053725f7c.zip
hostap-ece4ac5f4e0da9d76916abc07b0adeb053725f7c.tar.gz
hostap-ece4ac5f4e0da9d76916abc07b0adeb053725f7c.tar.bz2
HS 2.0: Add support for configuring frame filters
When a station starts an association to a Hotspot 2.0 network, request the driver to do the following, based on the BSS capabilities: 1. Enable gratuitous ARP filtering 2. Enable unsolicited Neighbor Advertisement filtering 3. Enable unicast IP packet encrypted with GTK filtering if DGAF disabled bit is zero Clear the filter configuration when the station interface is disassociated. Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 4c1bf7b..dbc01e2 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -281,6 +281,11 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
wpa_supplicant_ap_deinit(wpa_s);
#endif /* CONFIG_AP */
+#ifdef CONFIG_HS20
+ /* Clear possibly configured frame filters */
+ wpa_drv_configure_frame_filters(wpa_s, 0);
+#endif /* CONFIG_HS20 */
+
if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED)
return;