summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2017-03-14 10:18:27 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-17 12:10:48 -0700
commitad71b98fd6aafcae5af6907bbda878ebacd0a673 (patch)
tree124092af8230f109ad0f5f651e809243a02d3e07
parent6e6c71fee66c2ae96aacd837f4009b16dc8ef6bd (diff)
qcacld-3.0: Fix FEATURE_AP_MCC_CH_AVOIDANCE compilation error
Fix a compilation error when FEATURE_AP_MCC_CH_AVOIDANCE is defined, introduced by a previous commit. Change-Id: Ic85b805f590ce5acc5cd0caeff107b8315baefaf CRs-Fixed: 2019332
-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) {