aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/gas_query.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-12-20 17:58:05 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-20 19:07:33 (GMT)
commitc24f8e8e75b46f0b191cca788b6f4c10bed81861 (patch)
tree3e5234279ec85ea15d608b8f5da5a087943795c3 /wpa_supplicant/gas_query.c
parent70f2a3f4ab52cbf87f7015928ec81f2dcbf98071 (diff)
downloadhostap-c24f8e8e75b46f0b191cca788b6f4c10bed81861.zip
hostap-c24f8e8e75b46f0b191cca788b6f4c10bed81861.tar.gz
hostap-c24f8e8e75b46f0b191cca788b6f4c10bed81861.tar.bz2
GAS: Do not cancel initial offchannel wait with comeback delay 1
The minimum comeback delay 1 is used to indicate that fragmentation is needed instead of indicating that the response is going to be available only after some time. Do not cancel offchannel wait for this case between the initial and comeback exchanges to avoid delaying the full operation unnecessarily. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/gas_query.c')
-rw-r--r--wpa_supplicant/gas_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/gas_query.c b/wpa_supplicant/gas_query.c
index f6435bf..457f5fb 100644
--- a/wpa_supplicant/gas_query.c
+++ b/wpa_supplicant/gas_query.c
@@ -366,7 +366,7 @@ static void gas_query_tx_comeback_req_delay(struct gas_query *gas,
{
unsigned int secs, usecs;
- if (query->offchannel_tx_started) {
+ if (comeback_delay > 1 && query->offchannel_tx_started) {
offchannel_send_action_done(gas->wpa_s);
query->offchannel_tx_started = 0;
}