On Sat, Jun 28, 2008 at 1:50 AM, Tomas Winkler <tomas.winkler@xxxxxxxxx> wrote: > From: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx> > > This patch makes mac80211 refuse a WEP key whose length is not WEP40 nor > WEP104. > > Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx> > Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx> > --- > include/net/mac80211.h | 9 +++++++++ > net/mac80211/wext.c | 7 +++++++ > 2 files changed, 16 insertions(+), 0 deletions(-) > > diff --git a/include/net/mac80211.h b/include/net/mac80211.h > index 02c79e6..6a6c4bc 100644 > --- a/include/net/mac80211.h > +++ b/include/net/mac80211.h > @@ -557,6 +557,15 @@ enum ieee80211_key_alg { > ALG_CCMP, > }; > > +/** > + * enum ieee80211_key_len - key length > + * @WEP40: WEP 5 byte long key > + * @WEP104: WEP 13 byte long key > + */ > +enum ieee80211_key_len { > + LEN_WEP40 = 5, > + LEN_WEP104 = 13, > +}; What about 0 ? See http://marc.info/?l=linux-wireless&m=121458316301507&w=2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html