diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-02-20 14:47:17 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-20 14:47:17 -0500 |
commit | 9d4990a260ce395493848640bed94fb55f440f10 (patch) | |
tree | ab6505e7c7420234575df3f4451f4da0ac38e6dd /net/mac80211/rate.h | |
parent | 64f0a836f600e9c31ffd511713ab5d328aa96ac8 (diff) | |
parent | 2504a6423b9ab4c36df78227055995644de19edb (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r-- | net/mac80211/rate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 168427b0ffdc..80cfc006dd74 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h @@ -41,7 +41,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, struct ieee80211_sta *ista = &sta->sta; void *priv_sta = sta->rate_ctrl_priv; - if (!ref) + if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) return; ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); @@ -62,6 +62,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, |