linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* your nl80211 work
@ 2007-06-09  9:07 Johannes Berg
  2007-06-09 11:39 ` David Lamparter
  2007-06-09 11:49 ` Atheros Turbo modes / API [was: nl80211] David Lamparter
  0 siblings, 2 replies; 7+ messages in thread
From: Johannes Berg @ 2007-06-09  9:07 UTC (permalink / raw)
  To: David Lamparter; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]

Hey,

Just saw on IRC that you linked to
http://git.spaceboyz.net/nl80211/nl80211-dev.git and took a quick look.

Some comments.

You say that

+ * @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.

+       /* %input: wiphy */
+       NL80211_CMD_SET_CHANNEL,

The %... annotations were for my pynl80211 tool, feel free to leave them
off. In this case, it should probably be
 %input: wiphy, channel, phymode
but if you don't want to test it with pynl80211 don't bother.


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


+               case MODE_IEEE80211A:
+               case MODE_ATHEROS_TURBO:
+                       *phymode = NL80211_PHYMODE_A;

Are those Atheros Turbo modes actually useful these days in mac80211? If
so we probably should support them in nl80211 too, but I don't really
know, I guess Jouni is the only one who ever used them?

In any case, looks pretty good :)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-13  3:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-09  9:07 your nl80211 work Johannes Berg
2007-06-09 11:39 ` David Lamparter
2007-06-09 12:14   ` Johannes Berg
2007-06-09 13:54     ` Dan Williams
2007-06-11  8:16       ` Johannes Berg
2007-06-09 11:49 ` Atheros Turbo modes / API [was: nl80211] David Lamparter
2007-06-13  3:44   ` Jouni Malinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).