[PATCH] supplicant: add dbus getter method for nl80211 iftype
Mon Nov 10 06:09:34 PST 2014
On Thu, 2014-11-06 at 12:44 +0530, Avinash Patil wrote:
> This patch adds dbus getter method for nl80211 iftype.
> This is required by certain applications which intend to start
> AP operations only if current interface type is AP.
> Getter method for capabilities cannot be used for this purpose as
> this enumarates all the supported interface types.
> Patch also adds notification handlers for interface type change
I'm perhaps now missing something essential with wpa_supplicant, but
isn't this information supposed to already be part of "Capabilities" in
wpas_dbus_interface_properties array? I noticed code checking for
WPA_DRIVER_FLAGS_AP and WPA_DRIVER_FLAGS_P2P_CAPABLE in
wpa_supplicant/dbus/dbus_new_handlers.c, with the assumption that they
are returned to the caller in the D-Bus method call return.
More information about the Hostap