WPS: Check Device Password ID attribute only if present in AP search
authorMasashi Honma <honma@ictec.co.jp>
Thu, 22 Jan 2009 13:12:18 +0000 (15:12 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 22 Jan 2009 13:12:18 +0000 (15:12 +0200)
commite29bcf9eab020e4bd9aae87a7b9602264d228f49
tree79e2ae42ac5740b8592826d1f4030e1578c7e4e2
parent695e2b48e246da80164f06b19abab3dca2ea3d92
WPS: Check Device Password ID attribute only if present in AP search

I can't pass the "Wi-Fi WPS Test Plan Version 1.0 [5.1.4. Add to AP
using PIN Config method and PASS PHRASE through wired external
registrar]". The wpa_supplicant-0.6.7 can't recoginize the testbed
AP(BCM94704AGRRev-E.2.4) as WPS PIN AP. Because after PIN entered, the
AP sends Selected Registrar attribute=0 and not send Device Password ID
attribute.

The proposed change as-is removed validation of Selected Registrar
attribute completely. However, that part is not included in this commit
since it can cause problems for environments with multiple WPS-enabled
APs. Another workaround for this will be considered in wpa_supplicant
scanning process (e.g., start trying to use WPS with APs that do not set
Selected Registrar to TRUE after couple of scan runs that do not find
any APs with Selected Registrar TRUE).
src/wps/wps.c