From: Yogesh Ashok Powar Date: Wed, 4 May 2011 11:52:16 +0000 (+0530) Subject: mwl8k: Fix broken WEP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b571e24a9922f79ed2440b4482cb9f11a8f1889;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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: