qcacld-3.0: Use the refined Link Layer Stats Unified API

Change Ifdc1fada55a559f3b3d0837ec20cceb653c45c40 ("qcacmn: Refine the
Link Layer Stats Unified API") is updating the Link Layer Stats
Unified API, so concurrently update the legacy driver to align with
these changes.

Change-Id: Ifd7c8de2358121dae4752525ff57021a32be85d3
CRs-Fixed: 2409294
This commit is contained in:
Jeff Johnson 2019-03-04 14:34:10 -08:00 • committed by nshrivas
commit 5ba1df79d3

View file

@ -2045,11 +2045,12 @@ QDF_STATUS wma_process_ll_stats_clear_req(tp_wma_handle wma,
}
cmd.stop_req = clearReq->stopReq;
cmd.sta_id = clearReq->staId;
cmd.vdev_id = clearReq->staId;
cmd.stats_clear_mask = clearReq->statsClearReqMask;
ret = wmi_unified_process_ll_stats_clear_cmd(wma->wmi_handle, &cmd,
wma->interfaces[clearReq->staId].addr);
qdf_mem_copy(cmd.peer_macaddr.bytes,
wma->interfaces[clearReq->staId].addr,
QDF_MAC_ADDR_SIZE);
ret = wmi_unified_process_ll_stats_clear_cmd(wma->wmi_handle, &cmd);
if (ret) {
WMA_LOGE("%s: Failed to send clear link stats req", __func__);
return QDF_STATUS_E_FAILURE;
@ -2116,10 +2117,12 @@ QDF_STATUS wma_process_ll_stats_get_req(tp_wma_handle wma,
cmd.req_id = getReq->reqId;
cmd.param_id_mask = getReq->paramIdMask;
cmd.sta_id = getReq->staId;
cmd.vdev_id = getReq->staId;
qdf_mem_copy(cmd.peer_macaddr.bytes,
wma->interfaces[getReq->staId].addr,
QDF_MAC_ADDR_SIZE);
ret = wmi_unified_process_ll_stats_get_cmd(wma->wmi_handle, &cmd,
wma->interfaces[getReq->staId].addr);
ret = wmi_unified_process_ll_stats_get_cmd(wma->wmi_handle, &cmd);
if (ret) {
WMA_LOGE("%s: Failed to send get link stats request", __func__);
return QDF_STATUS_E_FAILURE;