qcacld-3.0: Do not assert when dumping state info

When memory dump config is enabled, the lim/sme state info
dump api's are invoked. These api's are also invoked after wlan
modules are stopped.
Change is to remove the assert and return if mac context is null.

Change-Id: Ie1b71bb62c490b9c79430dd997db3f09bbe6ef31
CRs-Fixed: 3579391
This commit is contained in:
Amruta Kulkarni
2023-08-14 09:35:56 -07:00
committed by Rahul Choudhary
parent 3b7bf0f80f
commit ccc3316187
2 changed files with 0 additions and 2 deletions

View File

@@ -509,7 +509,6 @@ static void lim_state_info_dump(char **buf_ptr, uint16_t *size)
mac = cds_get_context(QDF_MODULE_ID_PE);
if (!mac) {
QDF_ASSERT(0);
return;
}

View File

@@ -681,7 +681,6 @@ static void sme_state_info_dump(char **buf_ptr, uint16_t *size)
mac_handle = cds_get_context(QDF_MODULE_ID_SME);
if (!mac_handle) {
QDF_ASSERT(0);
return;
}