summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@codeaurora.org>2016-10-18 15:27:21 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-19 10:45:30 -0700
commit02c084dd6c6526ae07d3892fb970ccd3c172a599 (patch)
tree40f5e27544a7aea8b51efb0e9cc25bf80b7da746
parent6147c58dff00905c59dc4f432e6487aa8d278bb6 (diff)
qcacld-3.0: Delete SSR timer after WLAN reinitiation is complete
This is a qcacld-2.0 to qcacld-3.0 propagation. In hdd_wlan_re_init(), SSR timer is deleted before WLAN reinitiation is fully complete. Between SSR timer delete and WLAN reinitiation is complete, there are NL socket related calls which can sleep under low memory conditions (or etc) because of which timer is deleted but isLogpInProgress is not reset to FALSE. This can potentially fail the south-bound requests for a brief amount of time. Hence it is always better to delete the SSR timer only after WLAN reinitiation is complete. Change-Id: I699438ff3e0c2f7b81e0bbf81be6f514841e194b CRs-Fixed: 1017011
-rw-r--r--core/hdd/src/wlan_hdd_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c
index c4dfdcb7666e..7e6e0bd5571f 100644
--- a/core/hdd/src/wlan_hdd_power.c
+++ b/core/hdd/src/wlan_hdd_power.c
@@ -1567,7 +1567,6 @@ QDF_STATUS hdd_wlan_re_init(void)
pHddCtx->hdd_mcastbcast_filter_set = false;
pHddCtx->btCoexModeSet = false;
- hdd_ssr_timer_del();
wlan_hdd_send_svc_nlink_msg(pHddCtx->radio_index,
WLAN_SVC_FW_CRASHED_IND, NULL, 0);
@@ -1618,6 +1617,7 @@ err_re_init:
return -EPERM;
success:
+ hdd_ssr_timer_del();
return QDF_STATUS_SUCCESS;
}