qcacmn: Replace soc level references of set mac config
Replace the WMI command WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID and event WMI_SOC_SET_DUAL_MAC_CONFIG_RESP_EVENTID with WMI_PDEV_SET_MAC_CONFIG_CMDID and WMI_PDEV_SET_MAC_CONFIG_RESP_EVENTID respectively since the former are obsolete. The new WMI commands and events additionally carry the pdev id. Change-Id: I77eab3ead005bbb7f951ce7e077cd661813cb628 CRs-Fixed: 989502
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
1718378a88
commit
157a4de21d
@@ -9359,7 +9359,7 @@ QDF_STATUS send_pdev_set_hw_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
}
|
||||
|
||||
/**
|
||||
* send_soc_set_dual_mac_config_cmd_tlv() - Set dual mac config to FW
|
||||
* send_pdev_set_dual_mac_config_cmd_tlv() - Set dual mac config to FW
|
||||
* @wmi_handle: wmi handle
|
||||
* @msg: Dual MAC config parameters
|
||||
*
|
||||
@@ -9367,10 +9367,10 @@ QDF_STATUS send_pdev_set_hw_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
*
|
||||
* Return: QDF_STATUS. 0 on success.
|
||||
*/
|
||||
QDF_STATUS send_soc_set_dual_mac_config_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
QDF_STATUS send_pdev_set_dual_mac_config_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
struct wmi_dual_mac_config *msg)
|
||||
{
|
||||
wmi_soc_set_dual_mac_config_cmd_fixed_param *cmd;
|
||||
wmi_pdev_set_mac_config_cmd_fixed_param *cmd;
|
||||
wmi_buf_t buf;
|
||||
uint32_t len;
|
||||
|
||||
@@ -9382,19 +9382,21 @@ QDF_STATUS send_soc_set_dual_mac_config_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
cmd = (wmi_soc_set_dual_mac_config_cmd_fixed_param *) wmi_buf_data(buf);
|
||||
cmd = (wmi_pdev_set_mac_config_cmd_fixed_param *) wmi_buf_data(buf);
|
||||
WMITLV_SET_HDR(&cmd->tlv_header,
|
||||
WMITLV_TAG_STRUC_wmi_soc_set_dual_mac_config_cmd_fixed_param,
|
||||
WMITLV_TAG_STRUC_wmi_pdev_set_mac_config_cmd_fixed_param,
|
||||
WMITLV_GET_STRUCT_TLVLEN(
|
||||
wmi_soc_set_dual_mac_config_cmd_fixed_param));
|
||||
wmi_pdev_set_mac_config_cmd_fixed_param));
|
||||
|
||||
cmd->pdev_id = WMI_PDEV_ID_SOC;
|
||||
cmd->concurrent_scan_config_bits = msg->scan_config;
|
||||
cmd->fw_mode_config_bits = msg->fw_mode_config;
|
||||
WMI_LOGI("%s: scan_config:%x fw_mode_config:%x",
|
||||
__func__, msg->scan_config, msg->fw_mode_config);
|
||||
|
||||
if (wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||
WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID)) {
|
||||
WMI_LOGE("%s: Failed to send WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID",
|
||||
WMI_PDEV_SET_MAC_CONFIG_CMDID)) {
|
||||
WMI_LOGE("%s: Failed to send WMI_PDEV_SET_MAC_CONFIG_CMDID",
|
||||
__func__);
|
||||
qdf_nbuf_free(buf);
|
||||
}
|
||||
@@ -10491,8 +10493,8 @@ struct wmi_ops tlv_ops = {
|
||||
.send_flush_logs_to_fw_cmd = send_flush_logs_to_fw_cmd_tlv,
|
||||
.send_pdev_set_pcl_cmd = send_pdev_set_pcl_cmd_tlv,
|
||||
.send_pdev_set_hw_mode_cmd = send_pdev_set_hw_mode_cmd_tlv,
|
||||
.send_soc_set_dual_mac_config_cmd =
|
||||
send_soc_set_dual_mac_config_cmd_tlv,
|
||||
.send_pdev_set_dual_mac_config_cmd =
|
||||
send_pdev_set_dual_mac_config_cmd_tlv,
|
||||
.send_enable_arp_ns_offload_cmd =
|
||||
send_enable_arp_ns_offload_cmd_tlv,
|
||||
.send_app_type1_params_in_fw_cmd =
|
||||
|
Reference in New Issue
Block a user