diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2011-05-04 07:52:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-05 14:59:18 -0400 |
commit | 9b571e24a9922f79ed2440b4482cb9f11a8f1889 (patch) | |
tree | 1374a43c52b6d146d4b070c13a97329b84977602 /drivers | |
parent | f0dc7999b54ae0464d7144b81d21e1d39a389d49 (diff) |
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 <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
3997 | mwl8k_vif->wep_key_conf[idx].enabled = 1; | 3997 | mwl8k_vif->wep_key_conf[idx].enabled = 1; |
3998 | } | 3998 | } |
3999 | 3999 | ||
4000 | keymlen = 0; | 4000 | keymlen = key->keylen; |
4001 | action = MWL8K_ENCR_SET_KEY; | 4001 | action = MWL8K_ENCR_SET_KEY; |
4002 | break; | 4002 | break; |
4003 | case WLAN_CIPHER_SUITE_TKIP: | 4003 | case WLAN_CIPHER_SUITE_TKIP: |