瀏覽代碼

qcacld-3.0: Add ini config for enabling EPCS

Currently EPCS is enabled only via the vendor command hook,
add the ini configuration to enable/disable the EPCS

CRs-Fixed: 3838932
Change-Id: I1a887fa2a91dd68877d96169d39ea868ee675241
Arun Kumar Khandavalli 9 月之前
父節點
當前提交
47afce51f1
共有 2 個文件被更改,包括 31 次插入2 次删除
  1. 4 1
      components/mlme/core/src/wlan_mlme_main.c
  2. 27 1
      components/mlme/dispatcher/inc/cfg_mlme_sta.h

+ 4 - 1
components/mlme/core/src/wlan_mlme_main.c

@@ -2587,6 +2587,8 @@ static void mlme_init_sta_mlo_cfg(struct wlan_objmgr_psoc *psoc,
 		cfg_default(CFG_MLO_SAME_LINK_MLD_ADDR);
 	sta->mlo_5gl_5gh_mlsr =
 		cfg_get(psoc, CFG_MLO_MLO_5GL_5GH_MLSR);
+	sta->epcs_capability =
+		cfg_get(psoc, CFG_MLO_EPCS_SUPPORT_ENABLE);
 
 	mlme_debug("mlo_support_link_num: %d, mlo_support_link_band: 0x%x",
 		   sta->mlo_support_link_num, sta->mlo_support_link_band);
@@ -2804,7 +2806,8 @@ static void mlme_init_sta_cfg(struct wlan_objmgr_psoc *psoc,
 		cfg_get(psoc, CFG_MAX_LI_MODULATED_DTIM_MS);
 
 	mlme_init_sta_mlo_cfg(psoc, sta);
-	wlan_mlme_set_epcs_capability(psoc, false);
+	wlan_mlme_set_epcs_capability(psoc,
+				      wlan_mlme_get_epcs_capability(psoc));
 	wlan_mlme_set_usr_disable_sta_eht(psoc, false);
 	wlan_mlme_set_eht_disable_punct_in_us_lpi(psoc,
 						  cfg_default(CFG_EHT_DISABLE_PUNCT_IN_US_LPI));

+ 27 - 1
components/mlme/dispatcher/inc/cfg_mlme_sta.h

@@ -767,8 +767,33 @@
 		"enable 5GL+5GH MLSR")
 
 #define CFG_MLO_MLO_5GL_5GH_MLSR_CFG CFG(CFG_MLO_MLO_5GL_5GH_MLSR)
+
+/*
+ * <ini>
+ * epcs_support_enable - enable/disable epcs
+ * @Min: false
+ * @Max: true
+ * @Default: false
+ *
+ * Related: None
+ *
+ * Supported Feature: emergency preparedness communications service (EPCS)
+ * priority access
+ *
+ * Usage: External
+ *
+ * </ini>
+ */
+
+#define CFG_MLO_EPCS_SUPPORT_ENABLE CFG_INI_BOOL( \
+		"epcs_support_enable",\
+		0, \
+		"enable epcs support")
+
+#define CFG_MLO_EPCS_SUPPORT_ENABLE_CFG CFG(CFG_MLO_EPCS_SUPPORT_ENABLE)
 #else
 #define CFG_MLO_MLO_5GL_5GH_MLSR_CFG
+#define CFG_MLO_EPCS_SUPPORT_ENABLE_CFG
 #endif
 
 #define CFG_STA_ALL \
@@ -798,5 +823,6 @@
 	CFG_MLO_PREFER_PERCENTAGE_CFG \
 	CFG_MLO_SAME_LINK_MLD_ADDR_CFG \
 	CFG_EHT_DISABLE_PUNCT_IN_US_LPI_CFG \
-	CFG_MLO_MLO_5GL_5GH_MLSR_CFG
+	CFG_MLO_MLO_5GL_5GH_MLSR_CFG \
+	CFG_MLO_EPCS_SUPPORT_ENABLE_CFG
 #endif /* CFG_MLME_STA_H__ */