diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2010-09-06 21:04:01 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-09-10 10:30:25 -0700 |
commit | ae3e342108d87672ceec1a799cac5bfe82067fae (patch) | |
tree | ecf86c6b6d87775d18d7985a0ecaf9fb57235bdb /src/p2p/p2p_go_neg.c | |
parent | 2f9929ffccf257eb70813e07990ee1c4536a4767 (diff) | |
download | external_wpa_supplicant_8_ti-ae3e342108d87672ceec1a799cac5bfe82067fae.zip external_wpa_supplicant_8_ti-ae3e342108d87672ceec1a799cac5bfe82067fae.tar.gz external_wpa_supplicant_8_ti-ae3e342108d87672ceec1a799cac5bfe82067fae.tar.bz2 |
P2P: Add peer timeout into group formation 15 second timeout
This adds some more time for WPS provisioning step in case the peer
takes long time to start group interface operations.
Diffstat (limited to 'src/p2p/p2p_go_neg.c')
-rw-r--r-- | src/p2p/p2p_go_neg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/p2p/p2p_go_neg.c b/src/p2p/p2p_go_neg.c index 1e64047..0a3d0c4 100644 --- a/src/p2p/p2p_go_neg.c +++ b/src/p2p/p2p_go_neg.c @@ -567,6 +567,11 @@ void p2p_process_go_neg_req(struct p2p_data *p2p, const u8 *sa, wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Peer operating " "channel preference: %d MHz", dev->oper_freq); + if (msg.config_timeout) { + dev->go_timeout = msg.config_timeout[0]; + dev->client_timeout = msg.config_timeout[1]; + } + wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: GO Negotiation with " MACSTR, MAC2STR(sa)); if (p2p->state != P2P_IDLE) @@ -810,6 +815,9 @@ void p2p_process_go_neg_resp(struct p2p_data *p2p, const u8 *sa, status = P2P_SC_FAIL_INVALID_PARAMS; goto fail; #endif /* CONFIG_P2P_STRICT */ + } else { + dev->go_timeout = msg.config_timeout[0]; + dev->client_timeout = msg.config_timeout[1]; } if (!msg.operating_channel && !go) { |