netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: "Andonieh, Joe" <joe.andonieh@intel.com>
Cc: Jouni Malinen <jkmaline@cc.hut.fi>, netdev@oss.sgi.com
Subject: Re: RFC: Linux wireless extensions and WPA support
Date: Mon, 14 Jun 2004 15:50:58 -0700	[thread overview]
Message-ID: <20040614225058.GA3160@bougret.hpl.hp.com> (raw)
In-Reply-To: <386CBF9421521B41835E2BF21BEF80B89B6211@hasmsx402.ger.corp.intel.com>

On Mon, Jun 14, 2004 at 11:56:03AM +0300, Andonieh, Joe wrote:
> 
> > Of course, we could change the IW_AUTH_ parameters for cipher and key
> > Management suites to use bit field. This limits the number of options
> to
> > 32, but that should be enough and if not, can be extended in the
> future.
> > IW_AUTH_ALG_ is already doing this anyway and IW_AUTH_WPA_VERSION_ has
> > Only two values, so it works as a bit field already (just needs to be
> > Documented as such).
> 
> I Guess this is a better approach to have it as a bit mask -- Maybe I s
> till do not understand the interface correctly, but still I can't see
> how the user can set the pairwise cipher separately from the group
> cipher? The interface show 
> +/* IW_AUTH_PAIRWISE_CIPHER and IW_AUTH_GROUP_CIPHER values */
> +#define IW_AUTH_CIPHER_NONE	0
> +#define IW_AUTH_CIPHER_WEP40	1
> +#define IW_AUTH_CIPHER_TKIP	2
> +#define IW_AUTH_CIPHER_CCMP	4
> +#define IW_AUTH_CIPHER_WEP104	5
> 
> But not specify which is what?

	You missed the other part of the API :

+/* SIOCSIWAUTH/SIOCGIWAUTH parameters (0 .. 4095)
+ * (IW_AUTH_INDEX mask in struct iw_param flags; this is the index of the
+ * parameter that is being set/get to; value will be read/written to
+ * struct iw_param value field) */
+#define IW_AUTH_WPA_VERSION    0
+#define IW_AUTH_CIPHER_PAIRWISE        1
+#define IW_AUTH_CIPHER_GROUP   2
+#define IW_AUTH_KEY_MGMT       3
+#define IW_AUTH_TKIP_COUNTERMEASURES   4
+#define IW_AUTH_DROP_UNENCRYPTED       5
+#define IW_AUTH_80211_AUTH_ALG 6

	If you combine both definitions, you get exactly what you
want.
	Note that in this case, I'm with Jouni, I think a bitmask
may be too limitative in the long run...

> Thanks
> Joe

	Have fun...

	Jean

  reply	other threads:[~2004-06-14 22:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-14  8:56 RFC: Linux wireless extensions and WPA support Andonieh, Joe
2004-06-14 22:50 ` Jean Tourrilhes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-09  6:23 Andonieh, Joe
2004-06-13 20:11 ` Jouni Malinen
2004-06-08  7:36 Andonieh, Joe
2004-06-08 16:58 ` Jean Tourrilhes
2004-06-07  2:34 Jouni Malinen
2004-06-08  0:26 ` Jean Tourrilhes
2004-06-09  3:45   ` Jouni Malinen

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=20040614225058.GA3160@bougret.hpl.hp.com \
    --to=jt@bougret.hpl.hp.com \
    --cc=jkmaline@cc.hut.fi \
    --cc=joe.andonieh@intel.com \
    --cc=jt@hpl.hp.com \
    --cc=netdev@oss.sgi.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).