aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorMatti Gottlieb <matti.gottlieb@intel.com>2016-04-06 14:14:40 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 10:13:55 (GMT)
commite42adb9a75d140ea504203dfffbad492fa4e5c73 (patch)
tree1829470fd036421a72171ceed8597812818b832c /wpa_supplicant
parentae33239c555313e547b9a2a376c927ec50e2b9de (diff)
downloadhostap-e42adb9a75d140ea504203dfffbad492fa4e5c73.zip
hostap-e42adb9a75d140ea504203dfffbad492fa4e5c73.tar.gz
hostap-e42adb9a75d140ea504203dfffbad492fa4e5c73.tar.bz2
driver: Add a packet filtering function declaration
Add a new function declaration that will allow wpa_supplicant to request the driver to configure data frame filters for specific cases. Add definitions that will allow frame filtering for stations as required by Hotspot 2.0: 1. Gratuitous ARP 2. Unsolicited NA 3. Unicast IP packets encrypted with GTK Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/driver_i.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 699fd4f..7a213b6 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -917,4 +917,13 @@ static inline int wpa_drv_abort_scan(struct wpa_supplicant *wpa_s)
return wpa_s->driver->abort_scan(wpa_s->drv_priv);
}
+static inline int wpa_drv_configure_frame_filters(struct wpa_supplicant *wpa_s,
+ u32 filters)
+{
+ if (!wpa_s->driver->configure_data_frame_filters)
+ return -1;
+ return wpa_s->driver->configure_data_frame_filters(wpa_s->drv_priv,
+ filters);
+}
+
#endif /* DRIVER_I_H */