Commit e13bae4f authored by Johannes Berg's avatar Johannes Berg Committed by Johannes Berg

mac80211: fix ethtool stats for non-station interfaces

As reported in,
the station loop never initialises 'sinfo' and therefore adds up
a stack values, leaking stack information (the number of times it
adds values is easily obtained another way.)

Fix this by initialising the sinfo for each station to add.

Signed-off-by: default avatarJohannes Berg <>
parent 1cd15857
......@@ -666,6 +666,8 @@ static void ieee80211_get_et_stats(struct wiphy *wiphy,
if (sta->sdata->dev != dev)
sinfo.filled = 0;
sta_set_sinfo(sta, &sinfo);
i = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment