summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/cfg80211.c
diff options
context:
space:
mode:
authorUjjal Roy2013-12-03 08:17:55 +0100
committerJohn W. Linville2013-12-09 21:35:30 +0100
commita1ed484960066c413712cd9c4d50a350cf67eba3 (patch)
tree0fe8b84ef22c0d2fd231a898563dd99d525a4f67 /drivers/net/wireless/mwifiex/cfg80211.c
parentmwifiex: correct RX byte count statistics (diff)
downloadkernel-qcow2-linux-a1ed484960066c413712cd9c4d50a350cf67eba3.tar.gz
kernel-qcow2-linux-a1ed484960066c413712cd9c4d50a350cf67eba3.tar.xz
kernel-qcow2-linux-a1ed484960066c413712cd9c4d50a350cf67eba3.zip
mwifiex: correct TX byte count statistics
The skb is modified in sending the TX packet. Save the original packet length to a variable so that we can get the correct statistics update. Signed-off-by: Ujjal Roy <royujjal@gmail.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index d9b7330c902f..4d23647faef0 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -222,6 +222,7 @@ mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
tx_info = MWIFIEX_SKB_TXCB(skb);
tx_info->bss_num = priv->bss_num;
tx_info->bss_type = priv->bss_type;
+ tx_info->pkt_len = pkt_len;
mwifiex_form_mgmt_frame(skb, buf, len);
mwifiex_queue_tx_pkt(priv, skb);