mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
HT: Pass the smps_mode in AP parameters
The driver needs to know what SMPS mode it should use. Signed-off-by: Eliad Peller <eliad@wizery.com>
This commit is contained in:
parent
04ee647d58
commit
8f461b50cf
@ -919,6 +919,7 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
params->isolate = hapd->conf->isolate;
|
params->isolate = hapd->conf->isolate;
|
||||||
|
params->smps_mode = hapd->iconf->ht_capab & HT_CAP_INFO_SMPS_MASK;
|
||||||
#ifdef NEED_AP_MLME
|
#ifdef NEED_AP_MLME
|
||||||
params->cts_protect = !!(ieee802_11_erp_info(hapd) &
|
params->cts_protect = !!(ieee802_11_erp_info(hapd) &
|
||||||
ERP_INFO_USE_PROTECTION);
|
ERP_INFO_USE_PROTECTION);
|
||||||
|
@ -902,6 +902,14 @@ struct wpa_driver_ap_params {
|
|||||||
*/
|
*/
|
||||||
int ap_max_inactivity;
|
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
|
* disable_dgaf - Whether group-addressed frames are disabled
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user