Search Linux Wireless

Re: your nl80211 work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> + * @NL80211_CMD_GET_INTERFACE: request an interface's configuration.
> + *     either a dump request on a %NL80211_ATTR_WIPHY or a specific get
> + *      on a %NL80211_ATTR_IFINDEX is supported.
> 
> unfortunately, it can't be a dump request. The problem is that when you
> have a dump request and possibly multiple virtual interfaces, and one of
> them is controlled by the userspace MLME, then you need to call out to
> the userspace MLME (via netlink too) to get the configuration. That,
> however, can't be done while holding locks which would be required for
> the dump request.

Ah, I didn't think about that. Well, next try next luck... Hmm. Maybe we
should include the list of interfaces into the GET_WIPHY command and have
GET_INTERFACE never return a list?

> +       int     (*get_channel)(struct wiphy *wiphy, int *chan, int *freq,
> +                              enum nl80211_phymode *phymode);
> +       int     (*set_channel)(struct wiphy *wiphy, int chan, int freq, /* XXX both?! */
> +                              enum nl80211_phymode *phymode);
> 
> I don't think both are useful. Somewhere we need a library function to
> convert from (chan, phymode) to frequency and back though. Although even
> frequency isn't unique when you get to .11N or the atheros turbo foo.

Yeah, I was hoping for feedback on this one. For one, do we even bother to
return the frequency via nl80211? There's no attribute for it yet, and I
don't know if this is too useful. Maybe it can be included in the channel
list, so if an application really wants to know the frequency, it can look
up the table using channel+phymode as key and get it.

(channel list needs to be outlined next...)

> In any case, looks pretty good :)

Well, more or less. I messed up somewhere, a dump request for wiphys is
endlessly returning me the one wiphy I have, only aborting when I kill my
app. But, let's say I'm happy my box didn't explode. Guess I need to try
harder.


-David


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux