aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant_i.h
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2015-06-17 13:24:57 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-19 08:25:21 (GMT)
commite1dffa3b2ca99c2c429b82abd7ede2e8a2594273 (patch)
tree7e4065945b40488ee0aa3375d05a8cb8d156db26 /wpa_supplicant/wpa_supplicant_i.h
parentbab3191718a0e19ffe82575eb6b1ee8ce18710cf (diff)
downloadhostap-e1dffa3b2ca99c2c429b82abd7ede2e8a2594273.zip
hostap-e1dffa3b2ca99c2c429b82abd7ede2e8a2594273.tar.gz
hostap-e1dffa3b2ca99c2c429b82abd7ede2e8a2594273.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant_i.h')
-rw-r--r--wpa_supplicant/wpa_supplicant_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
index f39fe23..8ace44f 100644
--- a/wpa_supplicant/wpa_supplicant_i.h
+++ b/wpa_supplicant/wpa_supplicant_i.h
@@ -366,6 +366,8 @@ struct wps_ap_info {
} type;
unsigned int tries;
struct os_reltime last_attempt;
+ unsigned int pbc_active;
+ u8 uuid[WPS_UUID_LEN];
};
struct wpa_ssid_value {