[PATCH] supplicant: add dbus getter method for nl80211 iftype

Patrik Flykt Patrik.Flykt
Mon Nov 10 06:09:34 PST 2014


	Hi,

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
> events.

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
wpas_dbus_getter_capabilities() 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.


Cheers,

	Patrik




More information about the Hostap mailing list