Interworking: Include Access Network Type in set_ap() driver_ops

This may be needed for drivers that process Probe Request frames
internally.
This commit is contained in:
Jouni Malinen 2011-10-21 12:12:36 +03:00 committed by Jouni Malinen
parent e8b5e24e04
commit 16991cffd6
2 changed files with 9 additions and 0 deletions

View file

@ -590,6 +590,7 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
if (hapd->conf->interworking && if (hapd->conf->interworking &&
!is_zero_ether_addr(hapd->conf->hessid)) !is_zero_ether_addr(hapd->conf->hessid))
params.hessid = hapd->conf->hessid; params.hessid = hapd->conf->hessid;
params.access_network_type = hapd->conf->access_network_type;
if (hostapd_drv_set_ap(hapd, &params)) if (hostapd_drv_set_ap(hapd, &params))
wpa_printf(MSG_ERROR, "Failed to set beacon parameters"); wpa_printf(MSG_ERROR, "Failed to set beacon parameters");
hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp); hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp);

View file

@ -660,6 +660,14 @@ struct wpa_driver_ap_params {
* hessid - Homogeneous ESS identifier or %NULL if not set * hessid - Homogeneous ESS identifier or %NULL if not set
*/ */
const u8 *hessid; 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;
}; };
/** /**