|
|
@@ -1980,7 +1980,9 @@ brcmf_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
if (!check_vif_up(ifp->vif))
|
|
|
return -EIO;
|
|
|
|
|
|
- if (mac_addr) {
|
|
|
+ if (mac_addr &&
|
|
|
+ (params->cipher != WLAN_CIPHER_SUITE_WEP40) &&
|
|
|
+ (params->cipher != WLAN_CIPHER_SUITE_WEP104)) {
|
|
|
brcmf_dbg(TRACE, "Exit");
|
|
|
return brcmf_add_keyext(wiphy, ndev, key_idx, mac_addr, params);
|
|
|
}
|