From: Bob Copeland Date: Wed, 26 Nov 2008 01:55:21 +0000 (-0500) Subject: ath5k: clean up ath5k_hw_set_key X-Git-Tag: v2.6.29-rc1~581^2~305^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=671434904633876f89be70af415c35c89fb90115;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed