Skip to contentSkip to conversation

mwl8k: Fix broken WEP

PATCH New Yogesh Ashok Powar 1 participant 1 message May 4, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/wireless/mwl8k.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/mwl8k.c +1 -1
index 3223eea..1e8b8fa 100644
@@ -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:
Signature · 1 line
1.5.4.1