summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/wma/src/wma_dev_if.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c
index ae9caaa04675..b3a96b0901be 100644
--- a/core/wma/src/wma_dev_if.c
+++ b/core/wma/src/wma_dev_if.c
@@ -858,17 +858,18 @@ int wma_vdev_start_resp_handler(void *handle, uint8_t *cmd_param_info,
int err;
wmi_channel_width chanwidth;
- wma_release_wmi_resp_wakelock(wma);
-
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
tpAniSirGlobal mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
if (NULL == mac_ctx) {
+ wma_release_wmi_resp_wakelock(wma);
WMA_LOGE("%s: Failed to get mac_ctx", __func__);
cds_set_do_hw_mode_change_flag(false);
return -EINVAL;
}
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
+ wma_release_wmi_resp_wakelock(wma);
+
WMA_LOGD("%s: Enter", __func__);
param_buf = (WMI_VDEV_START_RESP_EVENTID_param_tlvs *) cmd_param_info;
if (!param_buf) {
@@ -1481,16 +1482,17 @@ int wma_vdev_stop_resp_handler(void *handle, uint8_t *cmd_param_info,
struct wma_txrx_node *iface;
int32_t status = 0;
- wma_release_wmi_resp_wakelock(wma);
-
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
tpAniSirGlobal mac_ctx = cds_get_context(QDF_MODULE_ID_PE);
if (NULL == mac_ctx) {
+ wma_release_wmi_resp_wakelock(wma);
WMA_LOGE("%s: Failed to get mac_ctx", __func__);
return -EINVAL;
}
#endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
+ wma_release_wmi_resp_wakelock(wma);
+
WMA_LOGD("%s: Enter", __func__);
param_buf = (WMI_VDEV_STOPPED_EVENTID_param_tlvs *) cmd_param_info;
if (!param_buf) {