aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-20 15:06:15 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-20 18:38:02 (GMT)
commit8d82c2105bd8d6b689adfd67498e3c958cacf06e (patch)
tree250ca8d8bf8b426319315236a603e29361425477 /src/p2p/p2p_i.h
parent033e48ee2d50861b17bc7dc9208b27bff1651942 (diff)
downloadhostap-8d82c2105bd8d6b689adfd67498e3c958cacf06e.zip
hostap-8d82c2105bd8d6b689adfd67498e3c958cacf06e.tar.gz
hostap-8d82c2105bd8d6b689adfd67498e3c958cacf06e.tar.bz2
P2P: Fix PD retry channel on join-a-group case
Join-a-group needs to force the current operating channel of the target group as the frequency to use for the PD exchange. When the channel was selected based on a BSS entry for the GO, this worked only for the first PD Request frame while the retries reverted to a potentially different channel based on a P2P peer entry. Fix this by maintaining the forced channel through the PD retry sequence. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 6e57f45..e12e6f0 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -442,6 +442,14 @@ struct p2p_data {
*/
int pd_retries;
+ /**
+ * pd_force_freq - Forced frequency for PD retries or 0 to auto-select
+ *
+ * This is is used during PD retries for join-a-group case to use the
+ * correct operating frequency determined from a BSS entry for the GO.
+ */
+ int pd_force_freq;
+
u8 go_timeout;
u8 client_timeout;