summaryrefslogtreecommitdiff
path: root/core/wma/src/wma_mgmt.c
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-04-24 16:22:54 +0530
committerHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-05-23 16:39:02 +0530
commitea6cae4abbfcbfca6bfdba418df1e743a2a1e518 (patch)
tree6825031eb786ba4a5daef09bbbb883a4bca2f5fc /core/wma/src/wma_mgmt.c
parent7348f135cccced87c26dd0ae27ea340491943317 (diff)
downloadqcacld-ea6cae4abbfcbfca6bfdba418df1e743a2a1e518.tar.gz
qcacld-3.0: Add support for SSR within SSR
Add below changes to support SSR within SSR, 1.Add new driver state, CDS_DRIVER_STATE_BAD, which will be set on re-init failure and reset on re-init success and if this state is set, don't allow any north-bound calls. 2.Don't de-register wiphy/netdev on re-init failure. 3.BUG_ON if re-init or probe fails successively for two times. 4.During driver unload, don't wait for SSR to be completed. Change-Id: Id05a3e4b592664c9b56c7dd83b965b973f1d5ca5 CRs-Fixed: 2037628
Diffstat (limited to 'core/wma/src/wma_mgmt.c')
-rw-r--r--core/wma/src/wma_mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c
index 7732668ac2..126a3cadd9 100644
--- a/core/wma/src/wma_mgmt.c
+++ b/core/wma/src/wma_mgmt.c
@@ -3333,6 +3333,11 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
return -EINVAL;
}
+ if (cds_is_driver_in_bad_state()) {
+ WMA_LOGW(FL("Driver in bad state"));
+ return -EINVAL;
+ }
+
rx_pkt = qdf_mem_malloc(sizeof(*rx_pkt));
if (!rx_pkt) {
WMA_LOGE("Failed to allocate rx packet");