Bob Copeland 6714349046 ath5k: clean up ath5k_hw_set_key
Status: O

With the addition of TKIP (and soon CCMP), key->alg is a more useful
guide to key type than the key length.

This patch cleans up key type assignment in ath5k_hw_set_key by
extracting it into its own function.  It also replaces the separate
memcpy() calls for extracting key material into the hardware format
with a loop that works regardless of key size.

Finally, the patch removes support for WEP-128 since it is a
non-standard key length that mac80211 also doesn't use.

Changes-licensed-under: ISC
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-12-05 09:32:12 -05:00
..
2008-11-29 20:42:28 -08:00
2008-10-28 17:46:02 +09:00
2008-11-30 10:03:36 -08:00
2008-12-01 19:55:25 -08:00
2008-12-02 20:40:04 +01:00
2008-12-03 20:59:57 -08:00
2008-11-01 09:50:12 -07:00
2008-11-30 10:03:37 -08:00
2008-10-21 07:48:33 -04:00
2008-12-05 09:32:12 -05:00
2008-10-16 11:21:30 -07:00
2008-10-27 19:15:41 +01:00
2008-11-19 21:40:23 -08:00
2008-11-04 08:18:19 -08:00
2008-11-30 10:03:37 -08:00
2008-11-01 09:49:46 -07:00
2008-11-17 19:11:26 +01:00
2008-10-28 21:47:17 +00:00