dbus: Add D-Bus methods to flush the BSS cache
authorSam Leffler <sleffler@chromium.org>
Sun, 20 Mar 2011 10:02:33 +0000 (12:02 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Mar 2011 10:02:33 +0000 (12:02 +0200)
commit2b65b30da86f550dc8c228cb2c6456e76dbc7978
treebea30bd5a65afb8b2b743b7bad261b658cb89c98
parentd4c1ec56f11b7844a955bdf5ef4678bd0e44e121
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).
wpa_supplicant/bss.c
wpa_supplicant/bss.h
wpa_supplicant/dbus/dbus_new.c
wpa_supplicant/dbus/dbus_new_handlers.c
wpa_supplicant/dbus/dbus_new_handlers.h
wpa_supplicant/dbus/dbus_old.c
wpa_supplicant/dbus/dbus_old_handlers.c
wpa_supplicant/dbus/dbus_old_handlers.h