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

Dan Williams dcbw at redhat.com
Mon Nov 10 12:13:04 EST 2014


On Mon, 2014-11-10 at 16:09 +0200, Patrik Flykt wrote:
> 	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.

Capabilities is the list of all interface types that *could* be used,
but I think the point of this patch is to indicate what the current
interface type actually is right now.

Dan



More information about the HostAP mailing list