qcacld-3.0: 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 api is doing. Change-Id: Idcf1321038ba4852d2aa3d8157b558423a738765 CRs-Fixed: 3524247
Šī revīzija ir iekļauta:

revīziju iesūtīja
Rahul Choudhary

vecāks
73a7bec9a5
revīzija
749fd3fe37
@@ -2482,7 +2482,8 @@ QDF_STATUS tdls_process_antenna_switch(struct tdls_antenna_switch_request *req)
|
||||
|
||||
vdev_id = wlan_vdev_get_id(vdev);
|
||||
opmode = wlan_vdev_mlme_get_opmode(vdev);
|
||||
mode = policy_mgr_convert_device_mode_to_qdf_type(opmode);
|
||||
mode = policy_mgr_qdf_opmode_to_pm_con_mode(wlan_vdev_get_psoc(vdev),
|
||||
opmode, vdev_id);
|
||||
freq = policy_mgr_get_channel(soc_obj->soc,
|
||||
mode,
|
||||
&vdev_id);
|
||||
|
@@ -505,7 +505,8 @@ static void tdls_determine_channel_opclass(struct tdls_soc_priv_obj *soc_obj,
|
||||
uint32_t vdev_id;
|
||||
enum QDF_OPMODE opmode;
|
||||
struct wlan_objmgr_pdev *pdev = NULL;
|
||||
|
||||
struct wlan_objmgr_psoc *psoc = NULL;
|
||||
enum policy_mgr_con_mode mode;
|
||||
/*
|
||||
* If tdls offchannel is not enabled then we provide base channel
|
||||
* and in that case pass opclass as 0 since opclass is mainly needed
|
||||
@@ -517,10 +518,13 @@ static void tdls_determine_channel_opclass(struct tdls_soc_priv_obj *soc_obj,
|
||||
vdev_id = wlan_vdev_get_id(vdev_obj->vdev);
|
||||
opmode = wlan_vdev_mlme_get_opmode(vdev_obj->vdev);
|
||||
pdev = wlan_vdev_get_pdev(vdev_obj->vdev);
|
||||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
|
||||
mode = policy_mgr_qdf_opmode_to_pm_con_mode(psoc, opmode,
|
||||
vdev_id);
|
||||
*channel = wlan_reg_freq_to_chan(pdev, policy_mgr_get_channel(
|
||||
soc_obj->soc,
|
||||
policy_mgr_convert_device_mode_to_qdf_type(opmode),
|
||||
mode,
|
||||
&vdev_id));
|
||||
*opclass = 0;
|
||||
} else {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user