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.
This commit is contained in:
Mohamed Abbas 2011-10-02 13:27:09 +03:00 committed by Jouni Malinen
parent 15e2c77d03
commit 0098ce6d29

View file

@ -1977,6 +1977,14 @@ dbus_bool_t wpas_dbus_getter_capabilities(DBusMessageIter *iter,
goto nomem; goto nomem;
/***** Modes end */ /***** 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)) if (!wpa_dbus_dict_close_write(&variant_iter, &iter_dict))
goto nomem; goto nomem;
if (!dbus_message_iter_close_container(iter, &variant_iter)) if (!dbus_message_iter_close_container(iter, &variant_iter))