From: Dan Williams <dcbw@redhat.com>
To: Tomas Winkler <tomasw@gmail.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
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:23:28 -0400 [thread overview]
Message-ID: <1205789008.9583.12.camel@localhost.localdomain> (raw)
In-Reply-To: <1ba2fa240803170320i4805e055ofebbbd9928a59354@mail.gmail.com>
On Mon, 2008-03-17 at 12:20 +0200, Tomas Winkler wrote:
> On Mon, Mar 17, 2008 at 11:58 AM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> >
> > > > Also, looking at what you do here, I found this comment:
> > > > /* FIXME: need to differenciate between static and dynamic key
> > > > * in the level of mac80211 */
> > > > static_key = !iwl4965_is_associated(priv);
> > > >
> > > > I think that is pretty bogus because there isn't really a distinction
> > > > between dynamic and static keys, what's the reason for differentiating
> > > > in the driver? Also, the driver will do rather odd things when
> > > > * associate
> > > > * set a key
> > > > * disassociate
> > > > * delete the key
> > > >
> > >
> > > This is actually quite a bug in mac80211. There is substantial
> > > difference between dynamic and static key.
> > > While static key is used for crypto of all stations in BSS. Dynamic
> > > key is also called pairwise key and is generated for 'pair'
> >
> > Gee, can you then please stick to terminology used in the spec so other
> > people can understand it?
>
> What spec. ieee80211i. WPA, WPA2? .
>
> >
> > > Currently mac80211 set static key with broadcast address which iis
> > > wrong cause driver cannot distinguish whether this key is
> > > multicast/broadcast dynamic key or a static key. Shell it use it for
> > > all traffic or only for mcast/bcast? Who can tell?
> >
> > Actually, you're making it look like a much larger problem than it is.
> > If you assume anything WEP is a "static key" and everything else is a
> > "dynamic key" (using your terminology), the only problem will be with
> > dynamic WEP, and even then it's not really a problem because as far as I
> > understand even dynamic WEP doesn't distinguish between group and
> > pairwise keys.
>
> This is incorrect. WPA enable using WEP as dynamic key and this
> setting is very common.
> WEP key is enabled for legacy stations this force also broadcast to be
> WEP. This setup is still quite common.
Also sort of wrong; there are plenty of situations where the AP can be
put into essentially Dynamic WEP mode (I actually test this quite often
since there are a lot of people who use it) where it is still backed by
RADIUS but uses only WEP as the cipher and does _NOT_ broadcast WPA/RSN
information elements at all.
The _only_ guarantee you have for Dynamic WEP is that the privacy bit is
set to 1. Here's an iwlist dump for such a configuration, taken with an
ipw2200, so it would be reporting WPA/RSN IEs if there were any, but
there aren't:
Cell 30 - Address: 00:1A:xx:xx:xx:xx
ESSID:"foobar"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.422 GHz (Channel 3)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=82/100 Signal level=-16 dBm
Extra: Last beacon: 35ms ago
Looks like static WEP, but it's actually a Cisco AIR-AP1131AG backed by
RADIUS using EAP-TLS.
Unfortunately for dynamic WEP, as a user you simply have to _know_ that
the AP is using one of:
- Open System auth
- Shared Key auth
- WEP 104
- WEP 40
- LEAP
- Dynamic WEP
since it doesn't beacon, you're just fucked unless your sysadmin tells
you what the AP is doing. Yay for WEP.
Dan
>
> >
> > > Other difference while there can be 4 static key installed that the
> > > same time possible switching between indexes There can be only one
> > > dynamic key per station if you also consider mcast/bcast station to be
> > > an entity. (TKIP actally uses different key index for bcast but
> > > that's just little execption)
> > > The terminology which is used is also wrong and I guess this is just
> > > wrong interpretation of old implementation - 'default key' is used
> > > for static key. Key mapping key is used for dynamic keys.
> >
> > I don't think I understand the last paragraph?
>
> Nothing imporatant just that term 'default key' is used usually on in
> context of static/legacy WEP key
> while term 'key mapping key' is used for what I call dynamic key.
>
> >
> > In any case, actual TX key selection is done by mac80211 anyway, so
> > you're never interested in that. Only RX key selection is interesting to
> > the driver, and as far as I can tell it ought to work if you simply
> > always use the broadcast address key when it's WEP, and otherwise the
> > pairwise keys and/or the broadcast key for bc/mc frames.
>
> Nothing to add to just that the assumption about WEP and broadcast is wrong.
>
> > Note that there's another case in AP mode where bc/mc keys are TX-only,
> > those are added with a zeroed MAC address.
>
> I would prefer also in this case a clear flag rather then playing with
> ambiguity of destination address.
>
> > johannes
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-03-17 21:28 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
2008-03-17 23:26 ` Tomas Winkler
2008-03-17 21:23 ` Dan Williams [this message]
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=1205789008.9583.12.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox