P2P: Fail GO Negotiation on missing Group ID
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 26 Feb 2013 15:22:11 +0000 (17:22 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 26 Feb 2013 15:27:17 +0000 (17:27 +0200)
commit4284a0b1b03239b5ef0afb24c950233df25b409a
treed719ebc38d76a5897299acc13fe54d72f897ead1
parent003c45804ff0e148a7c6a0b3fe3ee79a28b3b531
P2P: Fail GO Negotiation on missing Group ID

The device that is selected as the GO shall incode P2P Group ID
attribute in GO Negotiation Response/Confirm message. Previously we did
not reject a message without that attribute since it was possible to
continue operations even without knowing the SSID. However, this can
potentially result in confusing results since missing P2P Group ID
attribute can be a sign of conflicting GO role determination (both
devices assuming the peer is the GO). To get clearer end result for the
GO Negotiation, reject this as a fatal error. In addition, stop GO
Negotiation if GO Negotiation Confirm indicates non-zero status since
that is also a fatal error.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p_go_neg.c