瀏覽代碼

qcacld-3.0: Explicit convert QDF_STATUS to tSirMacStatusCodes

Fix implicit conversion warning/error by explicitly converting QDF_STATUS
to tSirMacStatusCodes in function lim_ft_send_aggr_qos_rsp.

Change-Id: I4b554411588225150659921b42cd2db65761261b
CRs-Fixed: 2071677
Naveen Rawat 7 年之前
父節點
當前提交
25735af347
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      core/mac/src/pe/lim/lim_ft.c

+ 6 - 1
core/mac/src/pe/lim/lim_ft.c

@@ -860,7 +860,12 @@ lim_ft_send_aggr_qos_rsp(tpAniSirGlobal pMac, uint8_t rspReqd,
 	rsp->aggrInfo.tspecIdx = aggrQosRsp->tspecIdx;
 	for (i = 0; i < SIR_QOS_NUM_AC_MAX; i++) {
 		if ((1 << i) & aggrQosRsp->tspecIdx) {
-			rsp->aggrInfo.aggrRsp[i].status = aggrQosRsp->status[i];
+			if (QDF_IS_STATUS_SUCCESS(aggrQosRsp->status[i]))
+				rsp->aggrInfo.aggrRsp[i].status =
+					eSIR_MAC_SUCCESS_STATUS;
+			else
+				rsp->aggrInfo.aggrRsp[i].status =
+					eSIR_MAC_UNSPEC_FAILURE_STATUS;
 			rsp->aggrInfo.aggrRsp[i].tspec = aggrQosRsp->tspec[i];
 		}
 	}