path: root/wpa_supplicant/bss.h
diff options
authorSam Leffler <sleffler@chromium.org>2011-03-20 10:02:33 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-20 10:02:33 (GMT)
commit2b65b30da86f550dc8c228cb2c6456e76dbc7978 (patch)
treebea30bd5a65afb8b2b743b7bad261b658cb89c98 /wpa_supplicant/bss.h
parentd4c1ec56f11b7844a955bdf5ef4678bd0e44e121 (diff)
dbus: Add D-Bus methods to flush the BSS cache
Add an "Interface.FlushBSS" method to the new D-Bus API and a "flush" method to the old API. Both take an age parameter that is a threshold (in seconds) for selecting entries to evict. Setting this parameter to zero flushes all entries from the cache. This mechanism is useful for a connection manager to clear state at startup and on resume (where the age parameter may be used to hold onto recent/valid data).
Diffstat (limited to 'wpa_supplicant/bss.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/bss.h b/wpa_supplicant/bss.h
index 1de4722..992b9c0 100644
--- a/wpa_supplicant/bss.h
+++ b/wpa_supplicant/bss.h
@@ -78,6 +78,8 @@ void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
int new_scan);
int wpa_bss_init(struct wpa_supplicant *wpa_s);
void wpa_bss_deinit(struct wpa_supplicant *wpa_s);
+void wpa_bss_flush(struct wpa_supplicant *wpa_s);
+void wpa_bss_flush_by_age(struct wpa_supplicant *wpa_s, int age);
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,