D-Bus: Check driver capability for IBSS in Modes property of Capabilities
Instead of hardcoding "ad-hoc" in the array of supported capabilities, add this only if the driver indicates support for IBSS. Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
This commit is contained in:
parent
7a1887faec
commit
e8a1b6b8e9
1 changed files with 3 additions and 2 deletions
|
@ -2639,8 +2639,9 @@ dbus_bool_t wpas_dbus_getter_capabilities(
|
|||
&iter_array) ||
|
||||
!wpa_dbus_dict_string_array_add_element(
|
||||
&iter_array, "infrastructure") ||
|
||||
!wpa_dbus_dict_string_array_add_element(
|
||||
&iter_array, "ad-hoc") ||
|
||||
(res >= 0 && (capa.flags & WPA_DRIVER_FLAGS_IBSS) &&
|
||||
!wpa_dbus_dict_string_array_add_element(
|
||||
&iter_array, "ad-hoc")) ||
|
||||
(res >= 0 && (capa.flags & WPA_DRIVER_FLAGS_AP) &&
|
||||
!wpa_dbus_dict_string_array_add_element(
|
||||
&iter_array, "ap")) ||
|
||||
|
|
Loading…
Reference in a new issue