aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-11-15 19:25:21 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-15 19:28:35 (GMT)
commit39185dfa549f076a6be114e0149a3649d302f477 (patch)
treebe2e5c6c11e8f03786a58a284969c4994424c5f5 /src/p2p/p2p_i.h
parent545cfc4bf34de70315da75c024602029d7f0a80e (diff)
downloadhostap-39185dfa549f076a6be114e0149a3649d302f477.zip
hostap-39185dfa549f076a6be114e0149a3649d302f477.tar.gz
hostap-39185dfa549f076a6be114e0149a3649d302f477.tar.bz2
P2P: Wait until ongoing scan completes before starting P2P find
The P2P_FIND command was failing if it was issued at the moment when a scan operation was in progress. Avoid returning failure in this case by scheduling the P2P find to start once the ongoing scan is completed. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 7ee6e07..9d72a1c 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -201,6 +201,11 @@ struct p2p_data {
* P2P_INVITE_LISTEN - Listen during Invite
*/
P2P_INVITE_LISTEN,
+
+ /**
+ * P2P_SEARCH_WHEN_READY - Waiting to start Search
+ */
+ P2P_SEARCH_WHEN_READY,
} state;
/**
@@ -355,6 +360,7 @@ struct p2p_data {
int inv_persistent;
enum p2p_discovery_type find_type;
+ unsigned int last_p2p_find_timeout;
u8 last_prog_scan_class;
u8 last_prog_scan_chan;
int p2p_scan_running;