From: Dan Williams <dcbw@redhat.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Tomas Winkler <tomasw@gmail.com>,
Reinette Chatre <reinette.chatre@intel.com>,
Emmanuel Grumbach <emmanuel.grumbach@intel.com>,
linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net
Subject: Re: [ipw3945-devel] [PATCH 1/5] mac80211: allows driver to request a Phase 2 key
Date: Mon, 17 Mar 2008 17:06:45 -0400 [thread overview]
Message-ID: <1205788005.9583.4.camel@localhost.localdomain> (raw)
In-Reply-To: <1205761758.1614.79.camel@johannes.berg>
On Mon, 2008-03-17 at 14:49 +0100, Johannes Berg wrote:
> > > Huh ok. But how would the WEP legacy station be able to determine that?
> >
> > Legacy user get the key written on 'positit' yellow paper :).
>
> Heh yeah.
>
> > > Or does it just try to use WEP and succeed? TBH, I was unaware that this
> > > existed, this does make it a bit more of a problem than I thought then.
> > >
> >
> > > >
> > > > On second thought is that AP has only TX group key while STA has only
> > > > RX group key so I
> > > > m not seeing here any need for flag.
> > >
> > > Hm, well, I didn't really want to require the driver to keep track of
> > > the current operating mode, so that's why I used 00:...:00 vs. FF:...:FF
> > > for the group keys.
> >
> > Isn't if on integer faster then comparing 6 bytes?
>
> Probably. Does it matter though? Setting keys isn't going to be
> performance critical in any way.
>
> > > Is that really done though? I mean, does wpa_supplicant not also use
> > > encodeext for WEP keys?
> > >
> > Unfortunately yes.
>
> So that doesn't really help us either way, no?
>
> > First of all we don't need 4 keys per station but for the whole
> > system.
>
> Not sure I understand this. You need pairwise (per-station) keys as well
> as four default keys, no?
>
> > Even in AP mode with multiple SSID meaning multiple security
> > setting you cannot distinguish between networks in static WEP key
> > setting so 4 is enough.
>
> Not sure I get what you're thinking here.
>
> > Beside that you need place holder for group key. They might be
> > multiple groups key in case of multiple SSIDs in AP mode, iwlwifi
> > doesn't support it in HW but in general it is possible.
>
> Well, no, because we can add multiple keys with a zeroed MAC address,
> since we have the local MAC address in there as well. Also, in an AP,
> these are only used for TX so it doesn't matter since mac80211 does the
> key selection completely on its own.
>
> > We need a flag in set_key which says whether the WEP key is static or not.
>
> Let's actually try to gather all the cases first.
>
> Is this it?
>
> * TKIP/CCMP/WEP group or pairwise key
> * WEP legacy ('static') key
So the problem with this is, how does Dynamic WEP work here? Dynamic
WEP uses 802.1x/EAP to rekey stations periodically just like
WPA[2]-Enterprise, but of courses uses WEP only. It's not "static" WEP
as you guys have been talking about it (you could call static WEP
"WEP-PSK" if you like).
The problem here is that with WEXT, there's not a good way to
distinguish between the two. Both static & dynamic WEP might look the
same to the driver when the call comes through SIWENCODE/SIWENCODEEXT.
So you've got to be careful here classifying all WEP key requests as
static.
Dan
> where the first is completely covered by what we have now and the
> assumption is that if only WEP keys are present then it'll be a legacy
> WEP key?
>
> johannes
next prev parent reply other threads:[~2008-03-17 21:11 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 0:05 [PATCH 0/5] iwlwifi driver updates Reinette Chatre
2008-03-13 0:05 ` [PATCH 1/5] mac80211: allows driver to request a Phase 2 key Reinette Chatre
2008-03-13 0:05 ` [PATCH 2/5] mac80211: allows driver to request a Phase 1 RX key Reinette Chatre
2008-03-13 0:06 ` [PATCH 3/5] iwlwifi-2.6: Cleans up set_key flow Reinette Chatre
2008-03-13 0:06 ` [PATCH 4/5] iwlwifi-2.6: enables HW TKIP security Reinette Chatre
2008-03-13 0:06 ` [PATCH 5/5] iwlwifi-2.6: RX status translation to old scheme Reinette Chatre
2008-03-15 19:11 ` [PATCH 2/5] mac80211: allows driver to request a Phase 1 RX key Johannes Berg
2008-03-17 0:04 ` [ipw3945-devel] " Tomas Winkler
2008-03-17 11:39 ` Johannes Berg
2008-03-17 13:03 ` Tomas Winkler
2008-03-17 13:13 ` Johannes Berg
2008-03-17 14:45 ` Tomas Winkler
2008-03-17 15:04 ` Johannes Berg
2008-03-17 19:54 ` Tomas Winkler
2008-03-17 20:02 ` Johannes Berg
2008-03-17 20:20 ` Tomas Winkler
2008-03-15 14:38 ` [PATCH 1/5] mac80211: allows driver to request a Phase 2 key Johannes Berg
2008-03-17 0:21 ` [ipw3945-devel] " Tomas Winkler
2008-03-17 9:58 ` Johannes Berg
2008-03-17 10:20 ` Tomas Winkler
2008-03-17 10:57 ` Johannes Berg
2008-03-17 12:40 ` Tomas Winkler
2008-03-17 12:51 ` Johannes Berg
2008-03-17 13:36 ` Tomas Winkler
2008-03-17 13:49 ` Johannes Berg
2008-03-17 19:12 ` Tomas Winkler
2008-03-17 19:19 ` Johannes Berg
2008-03-17 19:39 ` Tomas Winkler
2008-03-17 20:04 ` Johannes Berg
2008-03-17 20:27 ` Tomas Winkler
2008-03-17 20:59 ` Johannes Berg
2008-03-18 8:04 ` Jouni Malinen
2008-03-18 9:18 ` Johannes Berg
2008-03-18 10:23 ` Jouni Malinen
[not found] ` <8704f27d0803190942h19b5a9ebjd3b27537c30ef719@mail.gmail.com>
2008-03-19 17:39 ` Jouni Malinen
2008-03-19 18:41 ` Tomas Winkler
2008-03-19 20:10 ` Jouni Malinen
2008-03-19 20:15 ` Johannes Berg
2008-03-19 22:04 ` Tomas Winkler
2008-03-19 22:11 ` Johannes Berg
2008-03-19 20:56 ` Tomas Winkler
2008-03-20 7:09 ` Emmanuel Grumbach
2008-03-20 7:36 ` Jouni Malinen
2008-03-17 21:06 ` Dan Williams [this message]
2008-03-17 23:26 ` Tomas Winkler
2008-03-17 21:23 ` Dan Williams
2008-03-17 23:35 ` Tomas Winkler
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=1205788005.9583.4.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=emmanuel.grumbach@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=reinette.chatre@intel.com \
--cc=tomasw@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.