[PATCH] dbus: Export max scan ssids supported by driver.
Jukka Rissanen
jukka.rissanen
Tue Aug 23 07:11:43 PDT 2011
From: Mohamed Abbas <mohamed.abbas at intel.com>
This is needed for network managers that want to know how
many SSIDs they can scan at the same time.
---
wpa_supplicant/dbus/dbus_new_handlers.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index c9c53d6..bb68079 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -1977,6 +1977,14 @@ dbus_bool_t wpas_dbus_getter_capabilities(DBusMessageIter *iter,
goto nomem;
/***** Modes end */
+ if (res >= 0) {
+ dbus_int32_t max_scan_ssid = capa.max_scan_ssids;
+
+ if (!wpa_dbus_dict_append_int32(&iter_dict, "MaxScanSSID",
+ max_scan_ssid))
+ goto nomem;
+ }
+
if (!wpa_dbus_dict_close_write(&variant_iter, &iter_dict))
goto nomem;
if (!dbus_message_iter_close_container(iter, &variant_iter))
--
1.7.1
More information about the Hostap
mailing list