Patchwork Fix wpas_dbus_getter_bss_expire_count

login
register
mail settings
Submitter Fernando Herrera
Date July 21, 2012, 2:41 p.m.
Message ID <1342881702-27403-1-git-send-email-fherrera@onirica.com>
Download mbox | patch
Permalink /patch/172433/
State Accepted
Commit c10fe8c1dfaa294290aaeb44885bb7efa4150abc
Headers show

Comments

Fernando Herrera - July 21, 2012, 2:41 p.m.
bss_expire_count getter was geting wrong value. Fix to return bss_expiration_scan_count
---
 wpa_supplicant/dbus/dbus_new_handlers.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jouni Malinen - Aug. 4, 2012, 9:44 p.m.
On Sat, Jul 21, 2012 at 04:41:42PM +0200, Fernando Herrera wrote:
> bss_expire_count getter was geting wrong value. Fix to return bss_expiration_scan_count

Thanks, applied.

Patch

diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index 8145a70..1f13c5a 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -2430,7 +2430,7 @@  dbus_bool_t wpas_dbus_getter_bss_expire_count(DBusMessageIter *iter,
 					      void *user_data)
 {
 	struct wpa_supplicant *wpa_s = user_data;
-	dbus_uint32_t expire_count = wpa_s->conf->bss_expiration_age;
+	dbus_uint32_t expire_count = wpa_s->conf->bss_expiration_scan_count;
 
 	return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_UINT32,
 						&expire_count, error);