P2P: Allow local configuration to use 5 GHz band 40 MHz channels
These channels were already enabled for P2P use, but the local configuration parameter was not allowed to use the operating class in which the 40 MHz channels are specified. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
9f42d49c55
commit
409ca9a84d
1 changed files with 5 additions and 1 deletions
|
@ -3856,7 +3856,11 @@ static int wpas_p2p_init_go_params(struct wpa_supplicant *wpa_s,
|
||||||
wpa_printf(MSG_DEBUG, "P2P: Set GO freq based on configured "
|
wpa_printf(MSG_DEBUG, "P2P: Set GO freq based on configured "
|
||||||
"frequency %d MHz", params->freq);
|
"frequency %d MHz", params->freq);
|
||||||
} else if (wpa_s->conf->p2p_oper_reg_class == 115 ||
|
} else if (wpa_s->conf->p2p_oper_reg_class == 115 ||
|
||||||
wpa_s->conf->p2p_oper_reg_class == 124) {
|
wpa_s->conf->p2p_oper_reg_class == 116 ||
|
||||||
|
wpa_s->conf->p2p_oper_reg_class == 117 ||
|
||||||
|
wpa_s->conf->p2p_oper_reg_class == 124 ||
|
||||||
|
wpa_s->conf->p2p_oper_reg_class == 126 ||
|
||||||
|
wpa_s->conf->p2p_oper_reg_class == 127) {
|
||||||
params->freq = 5000 + 5 * wpa_s->conf->p2p_oper_channel;
|
params->freq = 5000 + 5 * wpa_s->conf->p2p_oper_channel;
|
||||||
wpa_printf(MSG_DEBUG, "P2P: Set GO freq based on configured "
|
wpa_printf(MSG_DEBUG, "P2P: Set GO freq based on configured "
|
||||||
"frequency %d MHz", params->freq);
|
"frequency %d MHz", params->freq);
|
||||||
|
|
Loading…
Reference in a new issue