diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-07-23 13:01:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-23 13:01:14 -0400 |
commit | 3b8de0749276abcb86bd7a6ca6691769a4ba7987 (patch) | |
tree | d8fb187da3f8caca8c4557b76b5b4fe6f85348b5 /net | |
parent | 0eeb315b20774296f977cecf0010794cd690c594 (diff) | |
parent | fa8f136fe9a8fbdcb11a1db94f30146cae6d8777 (diff) |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/cfg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index d7513a503be1..592f4b152ba8 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -472,12 +472,15 @@ static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo) | |||
472 | { | 472 | { |
473 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 473 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
474 | struct ieee80211_local *local = sdata->local; | 474 | struct ieee80211_local *local = sdata->local; |
475 | struct rate_control_ref *ref = local->rate_ctrl; | 475 | struct rate_control_ref *ref = NULL; |
476 | struct timespec uptime; | 476 | struct timespec uptime; |
477 | u64 packets = 0; | 477 | u64 packets = 0; |
478 | u32 thr = 0; | 478 | u32 thr = 0; |
479 | int i, ac; | 479 | int i, ac; |
480 | 480 | ||
481 | if (test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) | ||
482 | ref = local->rate_ctrl; | ||
483 | |||
481 | sinfo->generation = sdata->local->sta_generation; | 484 | sinfo->generation = sdata->local->sta_generation; |
482 | 485 | ||
483 | sinfo->filled = STATION_INFO_INACTIVE_TIME | | 486 | sinfo->filled = STATION_INFO_INACTIVE_TIME | |