diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /net/mac80211/ethtool.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
| download | linux-7731b8bc94e599c9a79e428f3359ff2c34b7576a.tar.xz | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'net/mac80211/ethtool.c')
| -rw-r--r-- | net/mac80211/ethtool.c | 13 | 
1 files changed, 7 insertions, 6 deletions
diff --git a/net/mac80211/ethtool.c b/net/mac80211/ethtool.c index 9cc986deda61..690c142a7a44 100644 --- a/net/mac80211/ethtool.c +++ b/net/mac80211/ethtool.c @@ -4,6 +4,7 @@   * Copied from cfg.c - originally   * Copyright 2006-2010	Johannes Berg <johannes@sipsolutions.net>   * Copyright 2014	Intel Corporation (Author: Johannes Berg) + * Copyright (C) 2018 Intel Corporation   *   * This file is GPLv2 as found in COPYING.   */ @@ -106,8 +107,8 @@ static void ieee80211_get_stats(struct net_device *dev,  		if (!(sta && !WARN_ON(sta->sdata->dev != dev)))  			goto do_survey; -		sinfo.filled = 0; -		sta_set_sinfo(sta, &sinfo); +		memset(&sinfo, 0, sizeof(sinfo)); +		sta_set_sinfo(sta, &sinfo, false);  		i = 0;  		ADD_STA_STATS(sta); @@ -116,11 +117,11 @@ static void ieee80211_get_stats(struct net_device *dev,  		if (sinfo.filled & BIT(NL80211_STA_INFO_TX_BITRATE)) -			data[i] = 100000 * +			data[i] = 100000ULL *  				cfg80211_calculate_bitrate(&sinfo.txrate);  		i++;  		if (sinfo.filled & BIT(NL80211_STA_INFO_RX_BITRATE)) -			data[i] = 100000 * +			data[i] = 100000ULL *  				cfg80211_calculate_bitrate(&sinfo.rxrate);  		i++; @@ -133,8 +134,8 @@ static void ieee80211_get_stats(struct net_device *dev,  			if (sta->sdata->dev != dev)  				continue; -			sinfo.filled = 0; -			sta_set_sinfo(sta, &sinfo); +			memset(&sinfo, 0, sizeof(sinfo)); +			sta_set_sinfo(sta, &sinfo, false);  			i = 0;  			ADD_STA_STATS(sta);  		}  | 
