Browse Source

qca-wifi: Assert if HAL srng is NULL or not initilized

Assert if HAL srng is NULL or not initilized

Change-Id: I7af824f4c691ad9bc5c5c7537ba3513067a55eff
CRs-Fixed: 2709532
Amir 5 years ago
parent
commit
0f916220bf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dp/wifi3.0/dp_full_mon.c

+ 2 - 0
dp/wifi3.0/dp_full_mon.c

@@ -69,6 +69,7 @@ dp_rx_mon_status_buf_validate(struct dp_pdev *pdev, uint32_t mac_id)
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
 			  "%s %d : HAL Monitor Status Ring Init Failed -- %pK",
 			  __func__, __LINE__, mon_status_srng);
+		QDF_ASSERT(0);
 		return status;
 	}
 
@@ -80,6 +81,7 @@ dp_rx_mon_status_buf_validate(struct dp_pdev *pdev, uint32_t mac_id)
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
 			  "%s %d : HAL SRNG access Failed -- %pK",
 			  __func__, __LINE__, mon_status_srng);
+		QDF_ASSERT(0);
 		return status;
 	}