summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2017-08-01 01:38:23 +0000
committerKalle Valo <kvalo@codeaurora.org>2017-08-03 13:11:53 +0300
commite37f6483dc282267ebf12cb94c40e8a0c8823722 (patch)
tree5c37773c605da7f48a292a4be50c98b2fb45eff1 /drivers/net/wireless/marvell
parentcc5becd38e87518671f68f17670f13c98bd62be0 (diff)
downloadop-kernel-dev-e37f6483dc282267ebf12cb94c40e8a0c8823722.zip
op-kernel-dev-e37f6483dc282267ebf12cb94c40e8a0c8823722.tar.gz
mwifiex: make addba request command clean
uninitilized variable, such as .add_req_result might be magic stack value. Initialize the structure to make it clean. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/11n.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/11n.c b/drivers/net/wireless/marvell/mwifiex/11n.c
index 16c77c2..7252069 100644
--- a/drivers/net/wireless/marvell/mwifiex/11n.c
+++ b/drivers/net/wireless/marvell/mwifiex/11n.c
@@ -572,6 +572,8 @@ int mwifiex_send_addba(struct mwifiex_private *priv, int tid, u8 *peer_mac)
mwifiex_dbg(priv->adapter, CMD, "cmd: %s: tid %d\n", __func__, tid);
+ memset(&add_ba_req, 0, sizeof(add_ba_req));
+
if ((GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) &&
ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) &&
priv->adapter->is_hw_11ac_capable &&
OpenPOWER on IntegriCloud