From: Yogesh Ashok Powar Date: Wed, 4 May 2011 11:52:16 +0000 (+0530) Subject: mwl8k: Fix broken WEP X-Git-Tag: Ubuntu-5.0.0-8.9~18596^2~16^2~163 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9b571e24a9922f79ed2440b4482cb9f11a8f1889;p=mirror_ubuntu-disco-kernel.git mwl8k: Fix broken WEP The WEP key length was being set to 0 erroneously which broke WEP support. Fix the same by setting the key length appropriately. Signed-off-by: Yogesh Ashok Powar Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 9f5ecef297e5..d06591a7e566 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -3997,7 +3997,7 @@ static int mwl8k_cmd_encryption_set_key(struct ieee80211_hw *hw, mwl8k_vif->wep_key_conf[idx].enabled = 1; } - keymlen = 0; + keymlen = key->keylen; action = MWL8K_ENCR_SET_KEY; break; case WLAN_CIPHER_SUITE_TKIP: