diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-07-02 01:39:04 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-03 22:29:21 +0400 |
commit | 701a9e619347ac06d59481db14bbc4df99763270 (patch) | |
tree | ed80d875448559c6bd062cafbbbe717066f5a1c9 /drivers/net/wireless/mwifiex/sta_tx.c | |
parent | e055a6e20a9105551295da164c31179b82c6227e (diff) | |
download | linux-701a9e619347ac06d59481db14bbc4df99763270.tar.xz |
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/sta_tx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_tx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_tx.c b/drivers/net/wireless/mwifiex/sta_tx.c index 5fce7e78a36e..70eb863c7249 100644 --- a/drivers/net/wireless/mwifiex/sta_tx.c +++ b/drivers/net/wireless/mwifiex/sta_tx.c @@ -150,6 +150,7 @@ int mwifiex_send_null_packet(struct mwifiex_private *priv, u8 flags) return -1; 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 = data_len - (sizeof(struct txpd) + INTF_HEADER_LEN); |