aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-15 23:19:11 +0300
committerArik Nemtsov <arik@wizery.com>2012-09-04 16:00:30 +0300
commitc811c2a5582055a3939511b6d21e8eb23fe25009 (patch)
treee875f8c7876a3e468b78e5e8e07dee86b4e36a27 /wpa_supplicant
parentd6800fcaed9648e29b0ae52f0289c46852cf25b4 (diff)
downloadexternal_wpa_supplicant_8_ti-c811c2a5582055a3939511b6d21e8eb23fe25009.zip
external_wpa_supplicant_8_ti-c811c2a5582055a3939511b6d21e8eb23fe25009.tar.gz
external_wpa_supplicant_8_ti-c811c2a5582055a3939511b6d21e8eb23fe25009.tar.bz2
P2P: Use larger GO config timeout if HT40 is used
Increase GO config timeout if HT40 is used since it takes some time to scan channels for coex purposes before the BSS can be started. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/p2p_supplicant.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index fb0c45b..89bd5ae 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -2683,6 +2683,13 @@ static int wpas_p2p_start_go_neg(struct wpa_supplicant *wpa_s,
force_freq, persistent_group);
}
+ /*
+ * Increase GO config timeout if HT40 is used since it takes some time
+ * to scan channels for coex purposes before the BSS can be started.
+ */
+ p2p_set_config_timeout(wpa_s->global->p2p,
+ wpa_s->p2p_go_ht40 ? 255 : 100, 20);
+
return p2p_connect(wpa_s->global->p2p, peer_addr, wps_method,
go_intent, own_interface_addr, force_freq,
persistent_group, ssid ? ssid->ssid : NULL,