From: Vladimir Kondratiev <vkondra@mail.ru>
To: netdev@oss.sgi.com
Cc: Gerald Britton <gbritton@doomcom.org>,
Scott Feldman <sfeldma@pobox.com>,
Gertjan van Wingerde <gwingerde@home.nl>
Subject: Re: [RFC] Wireless extensions rethink
Date: Wed, 16 Jun 2004 20:40:07 +0300 [thread overview]
Message-ID: <200406162040.12747.vkondra@mail.ru> (raw)
In-Reply-To: <20040616152808.GA6270@fog.sekrit.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 16 June 2004 18:28, Gerald Britton wrote:
> A few comments below.
>
> On Wed, Jun 16, 2004 at 02:13:18AM -0700, Scott Feldman wrote:
> > +/* for getting/setting wireless settings */
> > +struct ethtool_wx_cmd {
> > + u32 cmd;
> > + u16 nwid; /* Wireless network ID; 0 = disabled */
> > + struct {
> > + u32 mantissa;
> > + u16 exponent;
> > + } freq; /* Operating frequency */
> > + u32 mode; /* Operating mode (ETH_WX_MODE_xxx) */
> > + u16 sens; /* Sensitivity threshold (-dBm) */
> > + struct sockaddr wap; /* Register with access point */
> > + /* auto = 00:00:00:00:00:00 */
> > + char essid[32]; /* ESSID; any = NULL string */
>
> This isn't sufficient as you can have \0 bytes in the ESSID so treating it
> as a null-terminated string is probably not ideal. Also the spec specifies
> 32 characters as a max, but the 802.11 management IE's could support upto
> 255 character essid's, this probably needs a little extra thought.
... And WiFi compliance tests include testing for ESSID with \0 and other
non-printable characters in all places.
Sure, ESSID length should be added. One byte is sufficient. In all places
within MAC, it is used as "info element" like
struct ie {
u8 id;
u8 length;
u8 content[0];
};
Is it worth to keep it in this format?
Other candidates to include:
- - supported rates
- - Channel width. In Japan, in addition to 20Mhz channels, there are 10Mzh
ones.
- - country information. Country code and Tx power limit per channel group
- - there are 2 independent keys: unicast and mcast, each may belong to
different suite (AES, TKIP, WEP...)
- - TGe data: air access parameters per access category, list of TSPECs, whether
STA uses aggregate schedule, whether STA uses APSD (automatic power save
delivery)
>
> > + u32 rate; /* Bit rate b/s; 0 = auto */
> > + u16 rts; /* Smallest packet size for which */
> > + /* the node sends RTS; 0 = off */
> > + u16 frag; /* Maximum fragment size; 0 = no frag */
> > + u16 tx_power; /* Transmit power in dBm */
> > + struct { /* TODO: thit needs work */
> > + u16 limit;
> > + u32 lifetime; /* usec */
> > + } retry; /* MAC retransmission */
> > + u32 sec_mode; /* Security mode (ETH_WX_SEC_MODE_xxx) */
> > + char sec_key[32]; /* Security mode encryption key */
>
> Similar here, is 32 characters worth of "key" enough here.
>
> > + /* TODO: add struct power */
> > + u32 reserved[16];
> > +};
>
> Also a quick thought to settings many drivers have in their iwpriv
> commands such as operating modes .11b/.11a/.11g/auto. A survey of a bunch
> of drivers is probably worth doing to collect where the previous wireless
> extentions didn't really fit their needs.
>
> -- Gerald
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA0IX8qxdj7mhC6o0RAu6pAJ9gZsba1Fv7PE4ELFZTr6Tj7KkgfQCgrwIw
/H6eBtA6jETvx2N/YzhAvTw=
=pOUh
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2004-06-16 17:40 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-11 18:49 [RFC] Wireless extensions rethink Feldman, Scott
2004-06-15 16:39 ` Gertjan van Wingerde
2004-06-15 17:22 ` Vladimir Kondratiev
2004-06-16 9:13 ` Scott Feldman
2004-06-16 15:28 ` Gerald Britton
2004-06-16 17:40 ` Vladimir Kondratiev [this message]
2004-06-16 17:53 ` Scott Feldman
2004-06-16 19:06 ` Gerald Britton
2004-06-17 5:57 ` Luis R. Rodriguez
2004-06-16 17:46 ` Gertjan van Wingerde
2004-06-16 19:06 ` Scott Feldman
2004-06-16 19:49 ` Jeff Garzik
2004-06-16 22:25 ` Scott Feldman
2004-06-16 20:50 ` Jean Tourrilhes
2004-06-16 20:42 ` Jean Tourrilhes
2004-06-16 21:36 ` Jeff Garzik
2004-06-16 22:33 ` Jean Tourrilhes
2004-06-16 23:06 ` Jeff Garzik
2004-06-16 23:11 ` Jean Tourrilhes
2004-06-17 17:47 ` Jean Tourrilhes
2004-06-17 18:23 ` Jeff Garzik
2004-06-17 18:26 ` Jeff Garzik
2004-06-17 18:30 ` Gertjan van Wingerde
2004-06-17 18:51 ` Stephen Hemminger
2004-06-17 19:00 ` Jean Tourrilhes
2004-06-17 19:10 ` Jeff Garzik
2004-06-17 18:58 ` Jean Tourrilhes
2004-06-17 19:02 ` Jeff Garzik
2004-06-17 19:13 ` Jean Tourrilhes
2004-06-17 19:34 ` Jeff Garzik
2004-06-17 19:44 ` Jean Tourrilhes
2004-06-17 20:06 ` Jeff Garzik
2004-06-17 20:39 ` Jean Tourrilhes
2004-06-17 18:56 ` Jean Tourrilhes
2004-06-17 19:09 ` Jeff Garzik
2004-06-17 19:11 ` Jeff Garzik
2004-06-17 19:31 ` Jean Tourrilhes
2004-06-17 19:52 ` Jeff Garzik
2004-06-17 20:46 ` Jean Tourrilhes
2004-06-18 22:11 ` Andrew Morton
2004-06-18 22:54 ` Jeff Garzik
2004-06-16 22:48 ` Scott Feldman
-- strict thread matches above, loose matches on Subject: below --
2004-06-07 19:51 Gertjan van Wingerde
2004-06-07 20:52 ` Ben Greear
2004-06-07 18:33 Feldman, Scott
2004-06-07 18:39 ` Stephen Hemminger
2004-06-08 11:19 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406162040.12747.vkondra@mail.ru \
--to=vkondra@mail.ru \
--cc=gbritton@doomcom.org \
--cc=gwingerde@home.nl \
--cc=netdev@oss.sgi.com \
--cc=sfeldma@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).