qca-wifi: Fix dependencies in WMI
Fix dependencies in WMI after changing inconsistent naming followed for vdev id for wmi_unified_param.h, these structures are moved to converged mlme and will be in use here on, which have these naming convention inconsistency fixed Change-Id: If6442e4325d2b5c21e8ce19809ad7c40b253c281 CRs-Fixed: 2391766
This commit is contained in:
@@ -1378,7 +1378,11 @@ static QDF_STATUS send_multiple_vdev_restart_req_cmd_tlv(
|
||||
uint8_t *buf_ptr;
|
||||
uint32_t *vdev_ids;
|
||||
wmi_channel *chan_info;
|
||||
#ifndef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
struct channel_param *tchan_info;
|
||||
#else
|
||||
struct mlme_channel_param *tchan_info;
|
||||
#endif
|
||||
uint16_t len = sizeof(*cmd) + WMI_TLV_HDR_SIZE;
|
||||
|
||||
len += sizeof(wmi_channel);
|
||||
|
@@ -57,12 +57,20 @@ static QDF_STATUS send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
}
|
||||
cmd = (wmi_vdev_create_cmd *)wmi_buf_data(buf);
|
||||
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
cmd->vdev_id = param->vdev_id;
|
||||
#else
|
||||
cmd->vdev_id = param->if_id;
|
||||
#endif
|
||||
cmd->vdev_type = param->type;
|
||||
cmd->vdev_subtype = param->subtype;
|
||||
WMI_CHAR_ARRAY_TO_MAC_ADDR(macaddr, &cmd->vdev_macaddr);
|
||||
WMI_LOGD("%s: ID = %d Type = %d, Subtype = %d VAP Addr = %02x:%02x:%02x:%02x:%02x:%02x:",
|
||||
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
__func__, param->vdev_id, param->type, param->subtype,
|
||||
#else
|
||||
__func__, param->if_id, param->type, param->subtype,
|
||||
#endif
|
||||
macaddr[0], macaddr[1], macaddr[2],
|
||||
macaddr[3], macaddr[4], macaddr[5]);
|
||||
return wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||
@@ -1347,7 +1355,11 @@ static QDF_STATUS send_set_sta_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||
|
||||
cmd = (wmi_sta_powersave_param_cmd *)wmi_buf_data(buf);
|
||||
cmd->vdev_id = param->vdev_id;
|
||||
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
cmd->param = param->param_id;
|
||||
#else
|
||||
cmd->param = param->param;
|
||||
#endif
|
||||
cmd->value = param->value;
|
||||
|
||||
return wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
|
||||
@@ -1477,7 +1489,11 @@ static QDF_STATUS send_vdev_set_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
cmd = (wmi_vdev_set_param_cmd *)wmi_buf_data(buf);
|
||||
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
cmd->vdev_id = param->vdev_id;
|
||||
#else
|
||||
cmd->vdev_id = param->if_id;
|
||||
#endif
|
||||
cmd->param_id = wmi_handle->vdev_param[param->param_id];
|
||||
cmd->param_value = param->param_value;
|
||||
return wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||
@@ -1506,7 +1522,11 @@ QDF_STATUS send_vdev_sifs_trigger_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
}
|
||||
cmd = (wmi_vdev_sifs_trigger_time_cmd *)wmi_buf_data(buf);
|
||||
#ifdef CMN_VDEV_MGR_TGT_IF_ENABLE
|
||||
cmd->vdev_id = param->vdev_id;
|
||||
#else
|
||||
cmd->vdev_id = param->if_id;
|
||||
#endif
|
||||
cmd->sifs_trigger_time = param->param_value;
|
||||
|
||||
return wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||
|
Reference in New Issue
Block a user