diff options
| author | Mahesh Kumar Kalikot Veetil <mkalikot@qca.qualcomm.com> | 2014-08-01 13:11:25 -0700 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-08-04 19:31:45 -0700 |
| commit | 6f66377d124d2c4efdfa65cd52bc42f088e50be6 (patch) | |
| tree | 273d7e48717b49a98c6c73febf027fd4f711b2fc | |
| parent | 474b861ee2c2202b131d060da978508fc794a1e6 (diff) | |
wlan: wma: Check VDEV is up before setting power
In AP+AP mode with OBSS and ACS, there is a chance that IWPRIV command to
set transmit power can come on STA interface even before VDEV is UP.
Change-Id: Ibd0442123538e6b56341ea4b780b67a47d38f051
CRs-fixed: 703446
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index a0678c08d8c9..992d5cda814a 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -13950,6 +13950,14 @@ static void wma_set_tx_power(WMA_HANDLE handle, vos_mem_free(tx_pwr_params); return; } + + if (!(wma_handle->interfaces[vdev_id].vdev_up)) { + WMA_LOGE("%s: vdev id %d is not up for %pM", __func__, vdev_id, + tx_pwr_params->bssId); + vos_mem_free(tx_pwr_params); + return; + } + if (tx_pwr_params->power == 0) { /* set to default. Since the app does not care the tx power * we keep the previous setting */ |
