aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-04-23 18:12:04 (GMT)
committerJouni Malinen <j@w1.fi>2013-04-23 18:15:54 (GMT)
commit63a965c313a0e263ae8a4ef360c960de5ad60a91 (patch)
treec0402e13575fc90c292c474399607db1aa4258b2 /src/p2p/p2p_i.h
parent06b7f58def4fb24f53fc844870fad0bd8ccde52b (diff)
downloadhostap-63a965c313a0e263ae8a4ef360c960de5ad60a91.zip
hostap-63a965c313a0e263ae8a4ef360c960de5ad60a91.tar.gz
hostap-63a965c313a0e263ae8a4ef360c960de5ad60a91.tar.bz2
P2P: Fix after_scan_tx processing during ongoing operations
When Action frame TX is postponed until a pending p2p_scan completes, there may be additional operations that need to be continued after the postponed Action frame TX operation completes. Fix this by starting pending operation (if any) from TX status event for after_scan_tx frames. This fixes common errors seen with the test_discovery hwsim test case. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index dff226a..c428c20 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -385,6 +385,7 @@ struct p2p_data {
} start_after_scan;
u8 after_scan_peer[ETH_ALEN];
struct p2p_pending_action_tx *after_scan_tx;
+ unsigned int after_scan_tx_in_progress:1;
/* Requested device types for find/search */
unsigned int num_req_dev_types;