Explorar el Código

qcacmn: Remove QDF_BUG in htc_completion_handler

Remove the QDF_BUG in the htc_completion handler
which detects Rx netbuf packet corruption

Host sometimes receives HTC packets with corrupted
endpoint id during rapid wifi down/up tests. This
can be ignored hence remove QDF_BUG and add QDF_TRACE

CRs-Fixed: 2286058

Change-Id: I9b2d3ee2054461258d1196d5ace7d7cfe807332a
phadiman hace 6 años
padre
commit
3952f2b86c
Se han modificado 1 ficheros con 14 adiciones y 2 borrados
  1. 14 2
      htc/htc_recv.c

+ 14 - 2
htc/htc_recv.c

@@ -287,7 +287,13 @@ QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
 					sizeof(HTC_FRAME_HDR),
 					"BAD HTC Header");
 			status = QDF_STATUS_E_FAILURE;
-			QDF_BUG(0);
+			DPTRACE(qdf_dp_trace(
+					    netbuf,
+					    QDF_DP_TRACE_HTC_PACKET_PTR_RECORD,
+					    QDF_TRACE_DEFAULT_PDEV_ID,
+					    qdf_nbuf_data_addr(netbuf),
+					    sizeof(qdf_nbuf_data(netbuf)),
+					    QDF_RX));
 			break;
 		}
 
@@ -323,7 +329,13 @@ QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
 					 sizeof(HTC_FRAME_HDR),
 					 "BAD RX packet length");
 			status = QDF_STATUS_E_FAILURE;
-			QDF_BUG(0);
+			DPTRACE(qdf_dp_trace(
+					    netbuf,
+					    QDF_DP_TRACE_HTC_PACKET_PTR_RECORD,
+					    QDF_TRACE_DEFAULT_PDEV_ID,
+					    qdf_nbuf_data_addr(netbuf),
+					    sizeof(qdf_nbuf_data(netbuf)),
+					    QDF_RX));
 			break;
 #endif
 		}