WPS: Fix BSSID filter handling
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 11 May 2012 10:29:43 +0000 (13:29 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 11 May 2012 10:29:43 +0000 (13:29 +0300)
commit2c1e5575079f18e97f5d5751d0300b2e7c6a1aba
tree0847e2cce4ef30caae52954cb78c763e306ce151
parentec4a5d32b1b344e2f33e6bc796c66e8549616b9a
WPS: Fix BSSID filter handling

If WPS commands are used with a specific BSSID instead of wildcard,
the BSSID that was supposed to be used only for the provisioning step
may end up getting copied to the network block that gets provisioned
based on the WPS credentials. Fix this by clearing ssid->bssid_set
when creating the network block by replacing the block used for WPS
provisioning.

This issue could show up with the provisioned network not getting
selected properly with APs that have multiple radios. Depending on
the driver, this could result in only a single one of the available
BSSes being available or the connection failing completely.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
intended-for: hostap-1
wpa_supplicant/wps_supplicant.c