aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-07 10:51:17 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-07 10:51:17 (GMT)
commit409ca9a84daee279d743d87f9b78d61ecccbc401 (patch)
tree2815a1a2123a3b7ca35f17a8dc7b4e1342ff404e /wpa_supplicant
parent9f42d49c55f233bf536e3a06dbe9a4e5ef0249aa (diff)
downloadhostap-409ca9a84daee279d743d87f9b78d61ecccbc401.zip
hostap-409ca9a84daee279d743d87f9b78d61ecccbc401.tar.gz
hostap-409ca9a84daee279d743d87f9b78d61ecccbc401.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/p2p_supplicant.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index b755545..53c9009 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -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 "
"frequency %d MHz", params->freq);
} 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;
wpa_printf(MSG_DEBUG, "P2P: Set GO freq based on configured "
"frequency %d MHz", params->freq);