]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
P2P: Handle improper WPS termination on GO during group formation
authorSunil Dutt <usdutt@qti.qualcomm.com>
Wed, 1 Oct 2014 12:36:53 +0000 (18:06 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 10 Oct 2014 15:40:57 +0000 (18:40 +0300)
commit61fc90483fec17b69a26b16e42723474daccec24
tree1c6863d1ce430f3eabc578b182fff174a4b90a3d
parent58b40fdbfd32a238bf47489c824537152cd7bf82
P2P: Handle improper WPS termination on GO during group formation

A P2P Client may be able to connect to the GO even if the WPS
provisioning step has not terminated cleanly (e.g., P2P Client does not
send WSC_Done). Such group formation attempt missed the event
notification about started group on the GO and also did not set the
internal state corresponding to the successful group formation.

This commit addresses the missing part by completing GO side group
formation on a successful first data connection if WPS does not complete
cleanly. Also, this commit reorders the STA authorization indications to
ensure that the group formation success notification is given prior to
the first STA connection to handle such scenarios.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/sta_info.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h