]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Force BSSID for WPS provisioning step connection
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 10 Oct 2016 21:25:20 +0000 (00:25 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Oct 2016 21:25:20 +0000 (00:25 +0300)
commit4b5b8a53a145edd9e6486322689c93f5f426f3e9
tree73d3ae758438e1037732e083746ebc2236b0d8d7
parentbf07e0534947a9b793be5a4295c13b10b2ca6977
WPS: Force BSSID for WPS provisioning step connection

This was already done for most driver cases, but it is possible that the
BSSID/frequency is not forced if the driver reports BSS selection
capability (e.g., NL80211_ATTR_ROAM_SUPPORT). That could potentially
result in the driver ignoring the BSSID/frequency hint and associating
with another (incorrect) AP for the WPS provisioning step if that
another AP in the same ESS is more preferred (e.g., better signal
strength) by the driver and only one of the APs (the not preferred one)
is in active WPS registrar state.

While most drivers follow the BSSID hint for the initial connection to
an ESS, not doing it here for the WPS provisioning would break the
protocol. Fix this by enforcing a single BSSID/frequency to disallow the
driver from selecting an incorrect AP for the WPS provisioning
association.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wpa_supplicant.c