qcacmn: Send rf path WMI command

Prepare and Send WMI command to fw to set the rf path. Also, add module
ID for rf path switch for qdf log prints.

CRs-Fixed: 3568221
Change-Id: I7ef0ffe66eaed837424699641d3e5b8537cd0304
This commit is contained in:
Krunalsinh Padhar
2023-04-27 12:20:53 -07:00
committed by Rahul Choudhary
parent f7142b0fd4
commit d3e95e7607
7 changed files with 147 additions and 0 deletions

View File

@@ -816,6 +816,20 @@ uint16_t wmi_get_max_msg_len(wmi_unified_t wmi_handle);
QDF_STATUS wmi_unified_soc_set_hw_mode_cmd(wmi_unified_t wmi_handle,
uint32_t hw_mode_index);
/**
* wmi_unified_soc_set_rf_path_cmd() - WMI_PDEV_SET_RF_PATH_CMDID to FW
* @wmi_handle: wmi handle
* @rf_path_index: RF path index to switch to
* @pdev_id: pdev id
*
* Request RF path change to WLAN firmware
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_soc_set_rf_path_cmd(wmi_unified_t wmi_handle,
uint32_t rf_path_index,
uint8_t pdev_id);
/**
* wmi_unified_extract_hw_mode_resp() - Extract HW mode change response
* @wmi: WMI handle
@@ -829,6 +843,19 @@ wmi_unified_extract_hw_mode_resp(wmi_unified_t wmi,
void *evt_buf,
uint32_t *cmd_status);
/**
* wmi_unified_extract_rf_path_resp() - Extract RF path change response
* @wmi: WMI handle
* @evt_buf: Buffer holding event data
* @cmd_status: command status
*
* Return: QDF_STATUS_SUCCESS if success, else returns proper error code.
*/
QDF_STATUS
wmi_unified_extract_rf_path_resp(wmi_unified_t wmi,
void *evt_buf,
uint32_t *cmd_status);
/**
* wmi_unified_extract_roam_trigger_stats() - Extract roam trigger related
* stats

View File

@@ -5346,6 +5346,7 @@ typedef enum {
#ifdef QCA_SUPPORT_PRIMARY_LINK_MIGRATE
wmi_peer_ptqm_migration_response_eventid,
#endif
wmi_pdev_set_rf_path_resp_eventid,
wmi_events_max,
} wmi_conv_event_id;

View File

@@ -581,6 +581,10 @@ QDF_STATUS
(*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
uint32_t hw_mode_index);
QDF_STATUS
(*send_pdev_set_rf_path_cmd)(wmi_unified_t wmi_handle,
uint32_t hw_mode_index, uint8_t pdev_id);
QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
struct suspend_params *param,
uint8_t mac_id);
@@ -2859,6 +2863,9 @@ QDF_STATUS (*send_rtt_pasn_deauth_cmd)(wmi_unified_t wmi_handle,
QDF_STATUS (*extract_hw_mode_resp_event)(wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *cmd_status);
QDF_STATUS (*extract_rf_path_resp)(wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *cmd_status);
#ifdef WLAN_FEATURE_ELNA
QDF_STATUS (*send_set_elna_bypass_cmd)(wmi_unified_t wmi_handle,
struct set_elna_bypass_request *req);