P2P: Fix regression in GO Negotiation
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 1 Mar 2013 09:53:46 +0000 (11:53 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Mar 2013 09:53:46 +0000 (11:53 +0200)
commit3a2a7c3da64563bfff7a0f46e3654f54a1eacbd1
tree23b498a9ae1ec148bd3ef1338f522797d6795dba
parentfb8984fd6f4b49d9178dd87a880dd7add514b7d1
P2P: Fix regression in GO Negotiation

Commit fb8984fd6f4b49d9178dd87a880dd7add514b7d1 cleared wps_method to
WPS_NOT_READY in p2p_stop_find_for_freq() as an attempt to clear
authorization when a group formation is cancelled. However, this code
path is hit also in cases where the user did not actually cancel
anything (e.g., from p2p_process_go_neg_req()). As such, it is not fine
to clear wps_method here even if it could be proper for some cases. For
now, revert that part to avoid regressions and consider clearing
wps_method on cancel separately.

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