]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2PS: Cleanup pending_p2ps_group flag
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 3 Apr 2019 15:17:19 +0000 (18:17 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 15 Apr 2019 21:19:03 +0000 (00:19 +0300)
commit710c692381617a690a35f8f843559ddc24f9d9cf
tree91d9ee67f412eeeb00c6cbad7227980e015d7536
parent0be8b9238f6ca95731f215304458d4d954a31cd8
P2PS: Cleanup pending_p2ps_group flag

pending_p2ps_group flag is not always cleaned, which may later result
in an unexpected GO bring up, after PD response is transmitted in
wpas_prov_disc_resp_cb().
This can be seen when running the following hwsim tests together:
 - p2ps_channel_sta_connected_disallow_freq_mcc
 - p2ps_channel_active_go_and_station_different_mcc
Fix this by clearing pending_p2ps_group flag also when processing new
PD requests. In addition, set this flag only when really needed.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/p2p_supplicant.c