aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-10-11 15:29:31 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-11 15:29:31 (GMT)
commit4458d91554cce6c8a78916701c2701162cbbfad1 (patch)
tree18e94af3de3b8093d17cea8b9e8222762c5c7bc1 /src/p2p/p2p_i.h
parentc3fea272747f738f5723fc577371fe03711d988f (diff)
downloadhostap-4458d91554cce6c8a78916701c2701162cbbfad1.zip
hostap-4458d91554cce6c8a78916701c2701162cbbfad1.tar.gz
hostap-4458d91554cce6c8a78916701c2701162cbbfad1.tar.bz2
P2P: Do not change SSID during GO negotiation
If GO Negotiation Request (or in theory, also GO Negotiation Response) frame is delivered multiple time for processing, the SSID of the group could end up getting changed. This could result in possible issues if the peer ended up using different SSID. To avoid this, make sure the SSID does not get changed unless the negotiation is for a new group.
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 52d9311..0e73136 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -273,6 +273,11 @@ struct p2p_data {
size_t ssid_len;
/**
+ * ssid_set - Whether SSID is already set for GO Negotiation
+ */
+ int ssid_set;
+
+ /**
* Regulatory class for own operational channel
*/
u8 op_reg_class;