P2P: Fix PBC overlap detection
authorAvraham Stern <avraham.stern@intel.com>
Wed, 17 Jun 2015 13:24:57 +0000 (16:24 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 08:25:21 +0000 (11:25 +0300)
commite1dffa3b2ca99c2c429b82abd7ede2e8a2594273
tree7e4065945b40488ee0aa3375d05a8cb8d156db26
parentbab3191718a0e19ffe82575eb6b1ee8ce18710cf
P2P: Fix PBC overlap detection

PBC overlap detection searches for another BSS with active PBC in the
BSS table. However, when a separate P2P interface is used, scan results
without P2P IE are not saved in the BSS table, so non-P2P BSS's with
active PBC will not be detected.

Fix this by iterating only the WPS AP array instead of the BSS table.
This is also more efficient since only WPS APs may have active PBC. This
also fixes hwsim test "grpform_pbc_overlap" when a dedicated P2P Device
is used.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant/wps_supplicant.c