Add Interworking configuration in set_ap() driver_ops

Drivers that implement SME/MLME may find it easier to use separated
information to configure Interworking related parameters.
This commit is contained in:
Jouni Malinen 2011-10-17 21:35:41 +03:00 committed by Jouni Malinen
parent a194b06c81
commit 8a33a63f58
2 changed files with 14 additions and 0 deletions

View file

@ -573,6 +573,10 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
else else
params.ht_opmode = hapd->iface->ht_op_mode; params.ht_opmode = hapd->iface->ht_op_mode;
#endif /* NEED_AP_MLME */ #endif /* NEED_AP_MLME */
params.interworking = hapd->conf->interworking;
if (hapd->conf->interworking &&
!is_zero_ether_addr(hapd->conf->hessid))
params.hessid = hapd->conf->hessid;
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

@ -650,6 +650,16 @@ struct wpa_driver_ap_params {
* ht_opmode - HT operation mode or -1 if HT not in use * ht_opmode - HT operation mode or -1 if HT not in use
*/ */
int ht_opmode; int ht_opmode;
/**
* interworking - Whether Interworking is enabled
*/
int interworking;
/**
* hessid - Homogeneous ESS identifier or %NULL if not set
*/
const u8 *hessid;
}; };
/** /**