prima: RTT3: Add feature info for RTT3
Currently, feature flag for RTT3 is not added. Add feature flag
for RTT3 so that the same will be printed when get_supported_features
is invoked.
Change-Id: Iec8a209599741644b9af5de02c4ad27df5377ff9
CRs-Fixed: 949871
diff --git a/CORE/HDD/inc/wlan_hdd_cfg80211.h b/CORE/HDD/inc/wlan_hdd_cfg80211.h
index d54f7a9..5627d9a 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg80211.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg80211.h
@@ -1125,6 +1125,8 @@
Concurrency */
#define WIFI_FEATURE_LINK_LAYER_STATS 0x10000 /* Link layer stats */
+#define WIFI_FEATURE_RTT3 0x20000 /* RTT3 */
+
/* WIFI CONFIG Parameter defines */
#define WIFI_CONFIG_SET_AVG_STATS_FACTOR 0x0001 /* Average stats factor */
#define WIFI_CONFIG_SET_GUARD_TIME 0x0002 /* Guard Time */
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index dc655c1..9d4a9cc 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5543,6 +5543,11 @@
fset |= WIFI_FEATURE_D2AP_RTT;
}
+ if (sme_IsFeatureSupportedByFW(RTT3)) {
+ hddLog(LOG1, FL("RTT3 is supported by firmware"));
+ fset |= WIFI_FEATURE_RTT3;
+ }
+
#ifdef FEATURE_WLAN_BATCH_SCAN
if (fset & WIFI_FEATURE_EXTSCAN) {
hddLog(LOG1, FL("Batch scan is supported as extscan is supported"));
diff --git a/CORE/MAC/src/include/sirParams.h b/CORE/MAC/src/include/sirParams.h
index 28757c8..57acd51 100644
--- a/CORE/MAC/src/include/sirParams.h
+++ b/CORE/MAC/src/include/sirParams.h
@@ -127,6 +127,7 @@
#ifdef FEATURE_WLAN_TDLS
TDLS_OFF_CHANNEL = 51,
#endif
+ RTT3 = 52,
MGMT_FRAME_LOGGING = 53,
ENHANCED_TXBD_COMPLETION = 54,
LOGGING_ENHANCEMENT = 55,
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 0960678..a8d24cb 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -200,7 +200,7 @@
#else
,FEATURE_NOT_SUPPORTED //51
#endif
- ,FEATURE_NOT_SUPPORTED //52
+ ,RTT3 //52
,MGMT_FRAME_LOGGING //53
,ENHANCED_TXBD_COMPLETION //54
,LOGGING_ENHANCEMENT //55
@@ -1551,6 +1551,9 @@
case EXT_LL_STAT: snprintf(pCapStr, sizeof("EXT_LL_STAT"), "%s", "EXT_LL_STAT");
pCapStr += strlen("EXT_LL_STAT");
break;
+ case RTT3: snprintf(pCapStr, sizeof("RTT3"), "%s", "RTT3");
+ pCapStr += strlen("RTT3");
+ break;
}
*pCapStr++ = ',';