From: Eliad Peller Date: Mon, 20 Oct 2014 03:21:40 +0000 (-0400) Subject: HT: Pass the smps_mode in AP parameters X-Git-Tag: hostap_2_4~1264 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f461b50cfe4;p=thirdparty%2Fhostap.git HT: Pass the smps_mode in AP parameters The driver needs to know what SMPS mode it should use. Signed-off-by: Eliad Peller --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 22aef9f60..f73f83af2 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -919,6 +919,7 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd, break; } params->isolate = hapd->conf->isolate; + params->smps_mode = hapd->iconf->ht_capab & HT_CAP_INFO_SMPS_MASK; #ifdef NEED_AP_MLME params->cts_protect = !!(ieee802_11_erp_info(hapd) & ERP_INFO_USE_PROTECTION); diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 5fecd04db..f10414b27 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -902,6 +902,14 @@ struct wpa_driver_ap_params { */ int ap_max_inactivity; + /** + * smps_mode - SMPS mode + * + * SMPS mode to be used by the AP, specified as the relevant bits of + * ht_capab (i.e. HT_CAP_INFO_SMPS_*). + */ + unsigned int smps_mode; + /** * disable_dgaf - Whether group-addressed frames are disabled */