From 2627bab94940583e37f36ffa9f635e35a335c33d Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Tue, 15 Jan 2013 15:16:31 -0800 Subject: [PATCH] net: wireless: bcmdhd: Fix PEAP with dynamic WEP Change-Id: I62dffdb3b759ea5ccdf9f7ea0f0e67f928ace92b Signed-off-by: Dmitry Shmidt --- drivers/net/wireless/bcmdhd/wl_cfg80211.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index 2f28bf1d3f78..d653b3e09714 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -2786,7 +2786,9 @@ wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev, bssidx = wl_cfgp2p_find_idx(wl, dev); - if (mac_addr) { + if (mac_addr && + ((params->cipher != WLAN_CIPHER_SUITE_WEP40) && + (params->cipher != WLAN_CIPHER_SUITE_WEP104))) { wl_add_keyext(wiphy, dev, key_idx, mac_addr, params); goto exit; } -- 2.34.1