Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b571e24 authored by Yogesh Ashok Powar's avatar Yogesh Ashok Powar Committed by John W. Linville
Browse files

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: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f0dc7999
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3997,7 +3997,7 @@ static int mwl8k_cmd_encryption_set_key(struct ieee80211_hw *hw,
			mwl8k_vif->wep_key_conf[idx].enabled = 1;
			mwl8k_vif->wep_key_conf[idx].enabled = 1;
		}
		}


		keymlen = 0;
		keymlen = key->keylen;
		action = MWL8K_ENCR_SET_KEY;
		action = MWL8K_ENCR_SET_KEY;
		break;
		break;
	case WLAN_CIPHER_SUITE_TKIP:
	case WLAN_CIPHER_SUITE_TKIP: