P2P: Allow configuring CTWindow when working as GO
Read p2p_go_ctwindow (0-127 TUs) from the config file, and pass it to the driver on GO start. Use p2p_go_ctwindow=0 (no CTWindow) by default. Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
This commit is contained in:
parent
c77ffc6daf
commit
0b8bcaa50f
8 changed files with 37 additions and 0 deletions
|
@ -629,6 +629,10 @@ struct hostapd_config {
|
|||
u8 vht_oper_centr_freq_seg0_idx;
|
||||
u8 vht_oper_centr_freq_seg1_idx;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
u8 p2p_go_ctwindow;
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
double ignore_probe_probability;
|
||||
double ignore_auth_probability;
|
||||
|
|
|
@ -1008,6 +1008,9 @@ int ieee802_11_build_ap_params(struct hostapd_data *hapd,
|
|||
params->hessid = hapd->conf->hessid;
|
||||
params->access_network_type = hapd->conf->access_network_type;
|
||||
params->ap_max_inactivity = hapd->conf->ap_max_inactivity;
|
||||
#ifdef CONFIG_P2P
|
||||
params->p2p_go_ctwindow = hapd->iconf->p2p_go_ctwindow;
|
||||
#endif /* CONFIG_P2P */
|
||||
#ifdef CONFIG_HS20
|
||||
params->disable_dgaf = hapd->conf->disable_dgaf;
|
||||
if (hapd->conf->osen) {
|
||||
|
|
|
@ -1017,6 +1017,11 @@ struct wpa_driver_ap_params {
|
|||
*/
|
||||
int ap_max_inactivity;
|
||||
|
||||
/**
|
||||
* ctwindow - Client Traffic Window (in TUs)
|
||||
*/
|
||||
u8 p2p_go_ctwindow;
|
||||
|
||||
/**
|
||||
* smps_mode - SMPS mode
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue