|
@@ -3241,7 +3241,7 @@ static int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
|
|
|
auth = os_strstr(pos, " auth") != NULL;
|
|
|
automatic = os_strstr(pos, " auto") != NULL;
|
|
|
pd = os_strstr(pos, " provdisc") != NULL;
|
|
|
- ht40 = os_strstr(pos, " ht40") != NULL;
|
|
|
+ ht40 = (os_strstr(cmd, " ht40") != NULL) || wpa_s->conf->p2p_go_ht40;
|
|
|
|
|
|
pos2 = os_strstr(pos, " go_intent=");
|
|
|
if (pos2) {
|
|
@@ -3672,7 +3672,7 @@ static int p2p_ctrl_invite_persistent(struct wpa_supplicant *wpa_s, char *cmd)
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
- ht40 = os_strstr(cmd, " ht40") != NULL;
|
|
|
+ ht40 = (os_strstr(cmd, " ht40") != NULL) || wpa_s->conf->p2p_go_ht40;
|
|
|
|
|
|
return wpas_p2p_invite(wpa_s, _peer, ssid, NULL, freq, ht40);
|
|
|
}
|
|
@@ -3748,7 +3748,7 @@ static int p2p_ctrl_group_add(struct wpa_supplicant *wpa_s, char *cmd)
|
|
|
if (pos)
|
|
|
freq = atoi(pos + 5);
|
|
|
|
|
|
- ht40 = os_strstr(cmd, "ht40") != NULL;
|
|
|
+ ht40 = (os_strstr(cmd, "ht40") != NULL) || wpa_s->conf->p2p_go_ht40;
|
|
|
|
|
|
if (os_strncmp(cmd, "persistent=", 11) == 0)
|
|
|
return p2p_ctrl_group_add_persistent(wpa_s, cmd + 11, freq,
|