mac80211: refactor the WEP code to be directly usable
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 7 Jul 2009 01:45:18 +0000 (03:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:02:31 +0000 (15:02 -0400)
commitc9cf01226e0bd1fa4f7f7024d8d53e982fad208f
tree3d42b42b814b77554ade322923af86035ed4d141
parent77fdaa12cea26c204cc12c312fe40bc0f3dcdfd8
mac80211: refactor the WEP code to be directly usable

The new key work for cfg80211 will only give us the WEP
key for shared auth to do that authentication, and not
via the regular key settings, so we need to be able to
encrypt a single frame in software, and that without a
key struct. Thus, refactor the WEP code to not require
a key structure but use the key, len and idx directly.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wep.c
net/mac80211/wep.h