qcacmn: Add status and num_extra_peers in wmi ready extract API

Add status recieved as part if WMI ready event into wmi_ready host param
structure to enable the removal of seperate API to extract status. Add
new param introduced by FW to indicate number of extra peers FW is
allocated for its internal use.

Change-Id: I7a9ed64d4a9d1f38397197c4c4a4114d8365eef7
CRs-Fixed: 2149878
This commit is contained in:
Kiran Venkatappa
2017-11-28 12:23:24 +05:30
committed by snandini
parent 9c625d28f1
commit b458a1c4e3
2 changed files with 4 additions and 0 deletions

View File

@@ -5847,6 +5847,7 @@ static QDF_STATUS extract_ready_event_params_non_tlv(wmi_unified_t wmi_handle,
{
wmi_ready_event *ev = (wmi_ready_event *) evt_buf;
ev_param->status = ev->status;
ev_param->num_dscp_table = ev->num_dscp_table;
if (ev->agile_capability)
ev_param->agile_capability = true;
@@ -5855,6 +5856,7 @@ static QDF_STATUS extract_ready_event_params_non_tlv(wmi_unified_t wmi_handle,
/* Following params not present in non-TLV target. Set Defaults */
ev_param->num_extra_mac_addr = 0;
ev_param->num_total_peer = 0;
ev_param->num_extra_peer = 0;
return QDF_STATUS_SUCCESS;
}

View File

@@ -16867,9 +16867,11 @@ static QDF_STATUS extract_ready_event_params_tlv(wmi_unified_t wmi_handle,
param_buf = (WMI_READY_EVENTID_param_tlvs *) evt_buf;
ev = param_buf->fixed_param;
ev_param->status = ev->status;
ev_param->num_dscp_table = ev->num_dscp_table;
ev_param->num_extra_mac_addr = ev->num_extra_mac_addr;
ev_param->num_total_peer = ev->num_total_peers;
ev_param->num_extra_peer = ev->num_extra_peers;
/* Agile_cap in ready event is not supported in TLV target */
ev_param->agile_capability = false;