소스 검색

qcacmn: Update policy mgr device mode conversion API

Currently policy mgr api policy_mgr_convert_device_mode_to_qdf_type
accepts only QDF_OPMODE as an argument and converts it to
policy_mgr_con_mode. Also, name of this api does not reflect
the task this is doing.
With the new SAP mode for low latency low throughput SAP,
to convert the QDF_OPMODE to policy_mgr_con_mode, host driver
needs to know if it is ll_lt_sap or normal sap. To get this
information, update policy_mgr_convert_device_mode_to_qdf_type
api to accept the psoc and vdev id as parameters. Also, rename
this api to reflect the task this apiis doing.

Change-Id: Ib182d8091305fd9c4f35b424d7b4a751a61730ad
CRs-Fixed: 3525427
Ashish Kumar Dhanotiya 2 년 전
부모
커밋
8775d1b518
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      umac/dfs/dispatcher/src/wlan_dfs_utils_api.c

+ 4 - 2
umac/dfs/dispatcher/src/wlan_dfs_utils_api.c

@@ -813,6 +813,7 @@ static void utils_dfs_get_channel_list(struct wlan_objmgr_pdev *pdev,
 	uint32_t conn_count = 0;
 	enum policy_mgr_con_mode mode;
 	uint8_t vdev_id = WLAN_INVALID_VDEV_ID;
+	enum QDF_OPMODE op_mode;
 
 	psoc = wlan_pdev_get_psoc(pdev);
 	if (!psoc) {
@@ -825,9 +826,10 @@ static void utils_dfs_get_channel_list(struct wlan_objmgr_pdev *pdev,
 	weight_len = QDF_ARRAY_SIZE(weight_list);
 
 	if (vdev) {
-		mode = policy_mgr_convert_device_mode_to_qdf_type(
-				wlan_vdev_mlme_get_opmode(vdev));
 		vdev_id = wlan_vdev_get_id(vdev);
+		op_mode = wlan_vdev_mlme_get_opmode(vdev);
+		mode = policy_mgr_qdf_opmode_to_pm_con_mode(psoc, op_mode,
+							    vdev_id);
 	} else {
 		mode = PM_SAP_MODE;
 	}