Browse Source

dbus: Export max scan ssids supported by driver

This is needed for network managers that want to know how
many SSIDs they can scan at the same time.
Mohamed Abbas 13 years ago
parent
commit
0098ce6d29
1 changed files with 8 additions and 0 deletions
  1. 8 0
      wpa_supplicant/dbus/dbus_new_handlers.c

+ 8 - 0
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))