]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Fix regression in post-WPS scan optimization
authorJouni Malinen <j@w1.fi>
Sun, 12 Feb 2012 11:54:15 +0000 (13:54 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 12 Feb 2012 11:54:15 +0000 (13:54 +0200)
commita565c23bf3783f95f67107551404093c28d371c0
treeae57cbcfae8a9e81a13da1a3ba4bdcf294799fce
parent0f3d578efcff5f29d3b8af13edc3c1a9a3222129
WPS: Fix regression in post-WPS scan optimization

Commit 3c85f144ce7aa3967f881a7584a5b125061ca436 fixed issues with P2P
Action frame TX after disconnection by clearing wpa_s->assoc_freq.
This resulted in a regression to the post-WPS scan optimization that
used wpa_s->assoc_freq to enable fast single-channel scan. Fix this by
copying wpa_s->assoc_freq to a local variable before calling
wpa_supplicant_deauthenticate() that ends up calling
wpa_supplicant_mark_disassoc() which will clear assoc_freq.

Reported-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/wps_supplicant.c