aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-03-31 14:15:39 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-31 15:05:42 (GMT)
commit702621e6dd35360543974f3674f59dcbdd1ce1af (patch)
tree17f849a6a24e53e251d3a4197ebf03e0dcd730af /wpa_supplicant/bss.h
parent347c77e6cc363b63313454ce658381d13b9f71a5 (diff)
downloadhostap-702621e6dd35360543974f3674f59dcbdd1ce1af.zip
hostap-702621e6dd35360543974f3674f59dcbdd1ce1af.tar.gz
hostap-702621e6dd35360543974f3674f59dcbdd1ce1af.tar.bz2
WPS: Use latest updated BSS entry if multiple BSSID matches found
If the AP (P2P GO) has changes its channel of SSID recently, the BSS table may have multiple entries for a BSSID. Select the one which was most recently updated for WPS/P2P operations in such case to increase the likelihood of using current information. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/bss.h')
-rw-r--r--wpa_supplicant/bss.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/bss.h b/wpa_supplicant/bss.h
index 9f14d0e..2b41948 100644
--- a/wpa_supplicant/bss.h
+++ b/wpa_supplicant/bss.h
@@ -109,6 +109,8 @@ struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid,
const u8 *ssid, size_t ssid_len);
struct wpa_bss * wpa_bss_get_bssid(struct wpa_supplicant *wpa_s,
const u8 *bssid);
+struct wpa_bss * wpa_bss_get_bssid_latest(struct wpa_supplicant *wpa_s,
+ const u8 *bssid);
struct wpa_bss * wpa_bss_get_p2p_dev_addr(struct wpa_supplicant *wpa_s,
const u8 *dev_addr);
struct wpa_bss * wpa_bss_get_id(struct wpa_supplicant *wpa_s, unsigned int id);