wlan: Support to llstats on basis of ini parameter
Currently llstats feature is enabled irrespective of ini parameter.
with this fix llstats enable w.r.t to "gEnableLLStats = 1" in
WCNSS_qcom_cfg.ini file.
CRs-Fixed: 2146059
Change-Id: Iefa6de394b6614016dd52f8087aa35596287f22d
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 6b6012c..198384d 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5616,8 +5616,11 @@
#endif
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
+ if ((TRUE == pHddCtx->cfg_ini->fEnableLLStats) &&
+ (TRUE == sme_IsFeatureSupportedByFW(LINK_LAYER_STATS_MEAS))) {
fset |= WIFI_FEATURE_LINK_LAYER_STATS;
hddLog(LOG1, FL("Link layer stats is supported by driver"));
+ }
#endif
skb = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, sizeof(fset) +