|
@@ -64,6 +64,27 @@ typedef const enum policy_mgr_conc_next_action
|
|
|
((channel_select_logic_conc & PM_FW_MODE_STA_P2P_BIT_MASK) >> \
|
|
|
PM_FW_MODE_STA_P2P_BIT_POS)
|
|
|
|
|
|
+/**
|
|
|
+ * enum PM_AP_DFS_MASTER_MODE - AP dfs master mode
|
|
|
+ * @PM_STA_SAP_ON_DFS_DEFAULT - Disallow STA+SAP SCC on DFS channel
|
|
|
+ * @PM_STA_SAP_ON_DFS_MASTER_MODE_DISABLED - Allow STA+SAP SCC
|
|
|
+ * on DFS channel with master mode disabled
|
|
|
+ * @PM_STA_SAP_ON_DFS_MASTER_MODE_FLEX - enhance
|
|
|
+ * "PM_STA_SAP_ON_DFS_MASTER_MODE_DISABLED" with below requirement:
|
|
|
+ * a. Allow single SAP (GO) start on DFS channel.
|
|
|
+ * b. Allow CAC process on DFS channel in single SAP (GO) mode
|
|
|
+ * c. Allow DFS radar event process in single SAP (GO) mode
|
|
|
+ * d. Disallow CAC and radar event process in SAP (GO) + STA mode.
|
|
|
+ *
|
|
|
+ * This enum value will be used to set to INI g_sta_sap_scc_on_dfs_chan to
|
|
|
+ * config the sta+sap on dfs channel behaviour expected by user.
|
|
|
+ */
|
|
|
+enum PM_AP_DFS_MASTER_MODE {
|
|
|
+ PM_STA_SAP_ON_DFS_DEFAULT,
|
|
|
+ PM_STA_SAP_ON_DFS_MASTER_MODE_DISABLED,
|
|
|
+ PM_STA_SAP_ON_DFS_MASTER_MODE_FLEX,
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* policy_mgr_get_allow_mcc_go_diff_bi() - to get information on whether GO
|
|
|
* can have diff BI than STA in MCC
|
|
@@ -130,6 +151,33 @@ QDF_STATUS policy_mgr_get_force_1x1(struct wlan_objmgr_psoc *psoc,
|
|
|
QDF_STATUS
|
|
|
policy_mgr_get_sta_sap_scc_on_dfs_chnl(struct wlan_objmgr_psoc *psoc,
|
|
|
uint8_t *sta_sap_scc_on_dfs_chnl);
|
|
|
+
|
|
|
+/**
|
|
|
+ * policy_mgr_get_dfs_master_dynamic_enabled() - support dfs master or not
|
|
|
+ * on AP interafce when STA+SAP(GO) concurrency
|
|
|
+ * @psoc: pointer to psoc
|
|
|
+ * @vdev_id: sap vdev id
|
|
|
+ *
|
|
|
+ * This API is used to check AP dfs master functionality enabled or not when
|
|
|
+ * STA+SAP(GO) concurrency.
|
|
|
+ * If g_sta_sap_scc_on_dfs_chan is non-zero, the STA+SAP(GO) concurrency
|
|
|
+ * is allowed on DFS channel SCC and the SAP's DFS master functionality
|
|
|
+ * should be enable/disable according to:
|
|
|
+ * 1. g_sta_sap_scc_on_dfs_chan is 0: function return true - dfs master
|
|
|
+ * capability enabled.
|
|
|
+ * 2. g_sta_sap_scc_on_dfs_chan is 1: function return false - dfs master
|
|
|
+ * capability disabled.
|
|
|
+ * 3. g_sta_sap_scc_on_dfs_chan is 2: dfs master capability based on STA on
|
|
|
+ * 5G or not:
|
|
|
+ * a. 5G STA active - return false
|
|
|
+ * b. no 5G STA active -return true
|
|
|
+ *
|
|
|
+ * Return: true if dfs master functionality should be enabled.
|
|
|
+ */
|
|
|
+bool
|
|
|
+policy_mgr_get_dfs_master_dynamic_enabled(struct wlan_objmgr_psoc *psoc,
|
|
|
+ uint8_t vdev_id);
|
|
|
+
|
|
|
/**
|
|
|
* policy_mgr_get_sta_sap_scc_lte_coex_chnl() - to find out if STA & SAP
|
|
|
* SCC is allowed on LTE COEX
|