From 16991cffd60baf5e73abc388b57f0faaa782fda1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 21 Oct 2011 12:12:36 +0300 Subject: [PATCH] Interworking: Include Access Network Type in set_ap() driver_ops This may be needed for drivers that process Probe Request frames internally. --- src/ap/beacon.c | 1 + src/drivers/driver.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 831506c9a..096a446c7 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -590,6 +590,7 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd) if (hapd->conf->interworking && !is_zero_ether_addr(hapd->conf->hessid)) params.hessid = hapd->conf->hessid; + params.access_network_type = hapd->conf->access_network_type; if (hostapd_drv_set_ap(hapd, ¶ms)) wpa_printf(MSG_ERROR, "Failed to set beacon parameters"); hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp); diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 7009289ed..2a926e586 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -660,6 +660,14 @@ struct wpa_driver_ap_params { * hessid - Homogeneous ESS identifier or %NULL if not set */ const u8 *hessid; + + /** + * access_network_type - Access Network Type (0..15) + * + * This is used for filtering Probe Request frames when Interworking is + * enabled. + */ + u8 access_network_type; }; /**