summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingying Tang <yintang@codeaurora.org>2016-09-29 16:41:26 +0800
committerqcabuildsw <qcabuildsw@localhost>2016-11-09 18:52:25 -0800
commit5bc5a0e76eec1d7317df39c72a62a9723d1742f1 (patch)
treeea6ea43fc14e7dc1d1249ab0838f7544571883d2
parentdf9614f05983963fa63270b652838f0402e5ba8d (diff)
qcacld-3.0: Initialize the local variable before use it
Propagete from qcacld-2.0 to qcacld-3.0 In wmi_unified_send_txbf() the local variable is not initialized, add initialization before use it to avoid some risk. Change-Id: I9172652f65886e8c95801af46554d75262fdf803 CRs-Fixed: 979671
-rw-r--r--core/wma/src/wma_data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c
index b3fdcb071b2a..8f8a4d9d1c0e 100644
--- a/core/wma/src/wma_data.c
+++ b/core/wma/src/wma_data.c
@@ -781,7 +781,7 @@ void wma_set_bss_rate_flags(struct wma_txrx_node *iface,
*/
int32_t wmi_unified_send_txbf(tp_wma_handle wma, tpAddStaParams params)
{
- wmi_vdev_txbf_en txbf_en;
+ wmi_vdev_txbf_en txbf_en = {0};
/* This is set when Other partner is Bformer
* and we are capable bformee(enabled both in ini and fw)
@@ -789,7 +789,6 @@ int32_t wmi_unified_send_txbf(tp_wma_handle wma, tpAddStaParams params)
txbf_en.sutxbfee = params->vhtTxBFCapable;
txbf_en.mutxbfee = params->vhtTxMUBformeeCapable;
txbf_en.sutxbfer = params->enable_su_tx_bformer;
- txbf_en.mutxbfer = 0;
/* When MU TxBfee is set, SU TxBfee must be set by default */
if (txbf_en.mutxbfee)