P2P: Include operating class 124 (channels 149,153,157,161)
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 16 May 2011 18:07:05 +0000 (21:07 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 May 2011 18:07:05 +0000 (21:07 +0300)
When using the p2p_oper_reg_class configuration option instead of
p2p_group_add freq parameter, the operating class 124 was not
processed correctly. Include that class in the list of 5 GHz classes
for the p2p_oper_reg_class to resolve this.

wpa_supplicant/p2p_supplicant.c

index d7f7473..03d1672 100644 (file)
@@ -3110,7 +3110,7 @@ static void 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 == 118) {
+                  wpa_s->conf->p2p_oper_reg_class == 124) {
                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);