[RFC 1/4] driver: Add a packet filtering function declaration
Ilan Peer
ilan.peer at intel.com
Mon Mar 7 08:55:46 PST 2016
From: Matti Gottlieb <matti.gottlieb at intel.com>
Add a new function declaration that will allow the 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 HS20:
1. Gratuitous ARP.
2. Unsolicited NA.
3. GTK
Signed-off-by: Matti Gottlieb <matti.gottlieb at intel.com>
---
src/drivers/driver.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 642276c..505e7e4 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -54,6 +54,13 @@
#define HOSTAPD_CHAN_VHT_130_30 0x04000000
#define HOSTAPD_CHAN_VHT_150_10 0x08000000
+/* Filter gratuitous ARP */
+#define WPA_DATA_FRAME_FILTER_FLAG_ARP BIT(0)
+/* Filter unsolicited Neighbor Advertisment */
+#define WPA_DATA_FRAME_FILTER_FLAG_NA BIT(1)
+/* Filter frames encrypted using the GTK */
+#define WPA_DATA_FRAME_FILTER_FLAG_GTK BIT(2)
+
/**
* enum reg_change_initiator - Regulatory change initiator
*/
@@ -3528,6 +3535,14 @@ struct wpa_driver_ops {
* Returns 0 on success, -1 on failure
*/
int (*abort_scan)(void *priv);
+
+ /**
+ * configure_data_frame_filters - Request to configure frame filters
+ * @priv: Private driver interface data
+ * @filter_flags: The type of frames to filter.
+ * Returns: 0 on success or -1 on failure
+ */
+ int (*configure_data_frame_filters)(void *priv, u32 filter_flags);
};
--
1.9.1
More information about the Hostap
mailing list