diff options
-rw-r--r-- | bcmdhd.101.10.240.x/wl_cfg80211.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bcmdhd.101.10.240.x/wl_cfg80211.c b/bcmdhd.101.10.240.x/wl_cfg80211.c index f228438..4d77414 100644 --- a/bcmdhd.101.10.240.x/wl_cfg80211.c +++ b/bcmdhd.101.10.240.x/wl_cfg80211.c @@ -13448,6 +13448,7 @@ void wl_config_custom_regulatory(struct wiphy *wiphy) static s32 wl_setup_wiphy(struct wireless_dev *wdev, struct device *sdiofunc_dev, dhd_pub_t *context) { s32 err = 0; + uint chip; #ifdef CONFIG_PM #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) struct cfg80211_wowlan *brcm_wowlan_config = NULL; @@ -13457,7 +13458,7 @@ static s32 wl_setup_wiphy(struct wireless_dev *wdev, struct device *sdiofunc_dev //#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0) || defined(WL_COMPAT_WIRELESS)) dhd_pub_t *dhd = (dhd_pub_t *)context; BCM_REFERENCE(dhd); - + chip = dhd_conf_get_chip(dhd); if (!dhd) { WL_ERR(("DHD is NULL!!")); err = -ENODEV; @@ -13669,7 +13670,8 @@ static s32 wl_setup_wiphy(struct wireless_dev *wdev, struct device *sdiofunc_dev #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && defined(SUPPORT_RANDOM_MAC_SCAN) */ #if defined(WL_SAE) || defined(WL_CLIENT_SAE) - wdev->wiphy->features |= NL80211_FEATURE_SAE; + if (chip != BCM4356_CHIP_ID) + wdev->wiphy->features |= NL80211_FEATURE_SAE; #endif /* WL_SAE || WL_CLIENT_SAE */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0)) && defined(BCMSUP_4WAY_HANDSHAKE) if (FW_SUPPORTED(dhd, idsup)) { |