diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-01-20 13:55:23 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 21:35:11 +0100 |
commit | e1936e9407138b483e6d1332dd944afec8131f30 (patch) | |
tree | 65ec2b02b60e572f0067771da951bcf53b52aa9c /net/mac80211/rate.h | |
parent | iwlegacy: remove set_hw_params callback (diff) | |
download | linux-e1936e9407138b483e6d1332dd944afec8131f30.tar.xz linux-e1936e9407138b483e6d1332dd944afec8131f30.zip |
mac80211: call rate control only after init
There are situations where we don't have the
necessary rate control information yet for
station entries, e.g. when associating. This
currently doesn't really happen due to the
dummy station handling; explicitly disabling
rate control when it's not initialised will
allow us to remove dummy stations.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r-- | net/mac80211/rate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 8268457bd143..5fc3135a6b45 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h @@ -58,6 +58,7 @@ static inline void rate_control_rate_init(struct sta_info *sta) sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; ref->ops->rate_init(ref->priv, sband, ista, priv_sta); + set_sta_flag(sta, WLAN_STA_RATE_CONTROL); } static inline void rate_control_rate_update(struct ieee80211_local *local, |