wlan: Dump stats when apps power collapse is not allowed
Dump stats related to connection and TDLS if apps power collapse
is not allowed
CRs-Fixed: 1085484
Change-Id: I3f81ab4f49b0acd10a9ce56fc7fd270872e8d4cd
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 08481e7..8060732 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -13103,9 +13103,13 @@
return TRUE;
}
hddLog( LOGE, "%s: do not allow APPS power collapse-"
- "pmcState = %d scanRspPending = %d inMiddleOfRoaming = %d",
- __func__, pmcState, scanRspPending, inMiddleOfRoaming );
- return FALSE;
+ "pmcState = %d scanRspPending = %d "
+ "inMiddleOfRoaming = %d connected = %d",
+ __func__, pmcState, scanRspPending,
+ inMiddleOfRoaming, hdd_connIsConnected(
+ WLAN_HDD_GET_STATION_CTX_PTR( pAdapter )));
+ wlan_hdd_get_tdls_stats(pAdapter);
+ return FALSE;
}
}
status = hdd_get_next_adapter ( pHddCtx, pAdapterNode, &pNext );