wlan: Enhance LLStats to Separate data between HDD and SME

This commit enhances LLStats implementation to ensure SME does a
separate copy of HDD data.Also , this commit checks for this feature
capability before functioning and returns failure if not enabled.

Change-Id: I4ec1ca0893ef82b991e1f1078a2ac8999f21d057
CRs-Fixed:  689686
diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c
index 3bb2212..0c2f800 100644
--- a/CORE/HDD/src/wlan_hdd_cfg.c
+++ b/CORE/HDD/src/wlan_hdd_cfg.c
@@ -2540,6 +2540,15 @@
               CFG_TDLS_SCAN_COEX_SUPPORT_ENABLE_MAX ),
 #endif
 
+#ifdef WLAN_FEATURE_LINK_LAYER_STATS
+REG_VARIABLE( CFG_LINK_LAYER_STATS_ENABLE, WLAN_PARAM_Integer,
+              hdd_config_t, fEnableLLStats,
+              VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
+              CFG_LINK_LAYER_STATS_ENABLE_DEFAULT,
+              CFG_LINK_LAYER_STATS_ENABLE_MIN,
+              CFG_LINK_LAYER_STATS_ENABLE_MAX ),
+#endif
+
 #ifdef WLAN_SOFTAP_VSTA_FEATURE
    REG_VARIABLE( CFG_VSTA_SUPPORT_ENABLE, WLAN_PARAM_Integer,
               hdd_config_t, fEnableVSTASupport,