[PATCH] supplicant: add dbus getter method for nl80211 iftype
Tue Nov 11 03:04:48 PST 2014
As Dan said, a device can advertise support for muliple interface
types e.g station, AP, P2P client, GO. Capabilities is bitmap for
But at certain time, device would have only one of these modes
configured e.g. station mode or AP mode. Purpose of this patch is to
get current interface type of device.
Hope this helps.
On Mon, Nov 10, 2014 at 10:43 PM, Dan Williams <dcbw at redhat.com> wrote:
> On Mon, 2014-11-10 at 16:09 +0200, Patrik Flykt wrote:
>> 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.
More information about the Hostap