diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-07-01 14:39:04 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-03 14:29:21 -0400 |
commit | 701a9e619347ac06d59481db14bbc4df99763270 (patch) | |
tree | ed80d875448559c6bd062cafbbbe717066f5a1c9 /drivers/net/wireless/mwifiex/cfg80211.c | |
parent | e055a6e20a9105551295da164c31179b82c6227e (diff) | |
download | linux-701a9e619347ac06d59481db14bbc4df99763270.tar.bz2 |
mwifiex: initialize Tx/Rx info of a packet correctly
There are few places at the begining of Tx/Rx paths where
tx_info/rx_info is not correctly initialized. This patch
takes care of it.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index e95dec91a561..b511613bba2d 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c @@ -220,6 +220,7 @@ mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, } tx_info = MWIFIEX_SKB_TXCB(skb); + memset(tx_info, 0, sizeof(*tx_info)); tx_info->bss_num = priv->bss_num; tx_info->bss_type = priv->bss_type; tx_info->pkt_len = pkt_len; |