Browse Source

qcacld-3.0: Add new ini to enable/disable R-STA 11az support

Add new ini "enable_responder_11az_support" to enable/disable
R-STA 11az support.

Change-Id: If99f19eb88a6db31364f010db0f257ece45e6527
CRs-Fixed: 3295310
Pragaspathi Thilagaraj 2 years ago
parent
commit
b70d93c705

+ 3 - 0
components/mlme/core/src/wlan_mlme_main.c

@@ -2348,7 +2348,10 @@ mlme_init_wifi_pos_11az_config(struct wlan_objmgr_psoc *psoc,
 {
 	bool rsta_sec_ltf_enabled =
 			cfg_get(psoc, CFG_RESPONDER_SECURE_LTF_SUPPORT);
+	bool rsta_11az_ranging_enabled = cfg_get(psoc,
+						 CFG_RESPONDER_11AZ_SUPPORT);
 
+	wifi_pos_set_rsta_11az_ranging_cap(rsta_11az_ranging_enabled);
 	wifi_pos_set_rsta_sec_ltf_cap(rsta_sec_ltf_enabled);
 }
 #else

+ 25 - 1
components/mlme/dispatcher/inc/cfg_mlme_wifi_pos.h

@@ -116,9 +116,33 @@
 		false, \
 		"enable Responder secure LTF support")
 
+/*
+ * <ini>
+ * enable_responder_11az_support - R-STA 11az ranging support
+ * @Min: false
+ * @Max: true
+ * @Default: false
+ *
+ * This ini is used to enable R-STA advertising 11az ranging
+ * capabilities.
+ *
+ * Related: None
+ *
+ * Supported Feature: WIFI POS
+ *
+ * Usage: Internal/External
+ *
+ * </ini>
+ */
+#define CFG_RESPONDER_11AZ_SUPPORT CFG_INI_BOOL( \
+		"enable_responder_11az_support", \
+		false, \
+		"enable Responder 11az support")
+
 #define CFG_WIFI_POS_ALL \
 	CFG(CFG_FINE_TIME_MEAS_CAPABILITY) \
 	CFG(CFG_OEM_SIXG_SUPPORT_DISABLE) \
-	CFG(CFG_RESPONDER_SECURE_LTF_SUPPORT)
+	CFG(CFG_RESPONDER_SECURE_LTF_SUPPORT) \
+	CFG(CFG_RESPONDER_11AZ_SUPPORT)
 
 #endif /* __CFG_MLME_WIFI_POS_H */