cfg80211: fix reporting 64-bit station info tx bytes
PATCH 1/1 cfg80211: fix reporting 64-bit station info tx bytes
Copy & paste mistake - STATION_INFO_TX_BYTES64 is the name of the flag, not NL80211_STA_INFO_TX_BYTES64.
Signed-off-by Felix Fietkau <[email protected]>
--- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/nl80211.c +1 -1
@@ -3411,7 +3411,7 @@ static int nl80211_send_station(struct sk_buff *msg, u32 portid, u32 seq, (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;
Signature · 1 line
1.8.0.2
Quoted 2 lines · Felix Fietkau
Copy & paste mistake -
STATION_INFO_TX_BYTES64is the name of the flag, notNL80211_STA_INFO_TX_BYTES64.
Applied, thanks.
johannes