From: Felix Fietkau Date: Thu, 23 May 2013 13:06:17 +0000 (+0000) Subject: mac80211: fix station info tx bytes (#13567) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=53a56dd8499dc696b19ecf2242800e1f7dbe75c7;hp=50953cf5bdd2977a2ade5306b53c278692ad8982 mac80211: fix station info tx bytes (#13567) Signed-off-by: Felix Fietkau SVN-Revision: 36697 --- diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index ef023eede0..305cb8f8ec 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -3756,6 +3756,15 @@ static int nl80211_send_station(struct sk_buff *msg, u32 portid, u32 seq, int flags, struct cfg80211_registered_device *rdev, +@@ -3402,7 +3428,7 @@ static int nl80211_send_station(struct s + (u32)sinfo->rx_bytes)) + goto nla_put_failure; + if ((sinfo->filled & (STATION_INFO_TX_BYTES | +- NL80211_STA_INFO_TX_BYTES64)) && ++ STATION_INFO_TX_BYTES64)) && + nla_put_u32(msg, NL80211_STA_INFO_TX_BYTES, + (u32)sinfo->tx_bytes)) + goto nla_put_failure; @@ -3438,6 +3464,18 @@ static int nl80211_send_station(struct s default: break;