diff options
| author | Rajeev Kumar <rajekuma@qca.qualcomm.com> | 2014-04-03 11:14:41 -0700 |
|---|---|---|
| committer | Nandini Suresh <snandini@qca.qualcomm.com> | 2014-04-03 18:24:25 -0700 |
| commit | 4871fad1b30e69743d01c0f8bfc5327cac291ce0 (patch) | |
| tree | 5bd7f74200f1f7b4f359c736c77d9a49ccdf693e | |
| parent | c71037b5e497121871b17a9ed7b8c8ea13176e81 (diff) | |
qcacld: Fix of target ASSERT after sending MAX TX power
In WMA make sure that VDEV is up before sending max tx power
VDEV param to target
Change-Id: Ie5db0c5daa7cc52fad937b7999fcf6fa715e7176
CRs-fixed: 643185
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 7bb577752dd5..34632b1553a8 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -10163,6 +10163,12 @@ static void wma_set_max_tx_power(WMA_HANDLE handle, return; } + if (! (wma_handle->interfaces[vdev_id].vdev_up)) { + WMA_LOGE("%s: vdev id %d is not up",__func__, vdev_id); + vos_mem_free(tx_pwr_params); + return; + } + if (wma_handle->interfaces[vdev_id].max_tx_power == tx_pwr_params->power) { ret = 0; goto end; |
