wlan: feature check before enabling wiphy roaming capability flag
Check for LFR/CCX/11r feature before enabling the wiphy roaming
capability flag
Change-Id: Ib27b4d29c95c6868bd29c5e60a642b081be59c84
CRs-Fixed: 466813
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 060b7c1..62e3c0c 100755
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -550,8 +550,18 @@
| WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL
| WIPHY_FLAG_OFFCHAN_TX;
#endif
+#if defined (WLAN_FEATURE_VOWIFI_11R) || defined (FEATURE_WLAN_CCX) || defined(FEATURE_WLAN_LFR)
+ if (pCfg->isFastTransitionEnabled
#ifdef FEATURE_WLAN_LFR
- wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
+ || pCfg->isFastRoamIniFeatureEnabled
+#endif
+#ifdef FEATURE_WLAN_CCX
+ || pCfg->isCcxIniFeatureEnabled
+#endif
+ )
+ {
+ wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM;
+ }
#endif
#ifdef FEATURE_WLAN_TDLS
wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS