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:
parent
15e2c77d03
commit
0098ce6d29
1 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue