mac80211: fix station info tx bytes (#13567)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36697
This commit is contained in:
parent
75bb3138aa
commit
10a697faaf
1 changed files with 9 additions and 0 deletions
|
@ -3756,6 +3756,15 @@
|
||||||
static int nl80211_send_station(struct sk_buff *msg, u32 portid, u32 seq,
|
static int nl80211_send_station(struct sk_buff *msg, u32 portid, u32 seq,
|
||||||
int flags,
|
int flags,
|
||||||
struct cfg80211_registered_device *rdev,
|
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
|
@@ -3438,6 +3464,18 @@ static int nl80211_send_station(struct s
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue