Преглед изворни кода

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];
 		}
 	}