소스 검색

qcacld-3.0: Enable crash dump for peer delete timeout

Use QDF_BUG to create a crash dump when peer attach operation detects
that the peer already exists even after waiting for 500 ms. It will
detect failure to complete peer delete operation in firmware and
missing peer unmap events.
Crash dump is enabled only when compiled with PANIC_ON_BUG, otherwise
it will print a warning.

CRs-Fixed: 1075798
Change-Id: I0131f4f706bc76feb86894975ff9f3c30f873b9b
Deepak Dhamdhere 8 년 전
부모
커밋
4835a5b1f0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/dp/txrx/ol_txrx.c

+ 2 - 0
core/dp/txrx/ol_txrx.c

@@ -2213,6 +2213,8 @@ ol_txrx_peer_attach(void *pvdev, uint8_t *peer_mac_addr)
 			TXRX_PRINT(TXRX_PRINT_LEVEL_ERR,
 				"error waiting for peer(%d) deletion, status %d\n",
 				vdev->wait_on_peer_id, (int) rc);
+			/* Added for debugging only */
+			QDF_BUG(0);
 			vdev->wait_on_peer_id = OL_TXRX_INVALID_LOCAL_PEER_ID;
 			return NULL;
 		}