diff options
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r-- | net/mac80211/rate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 5fc3135a6b45..fbb1efdc4d04 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -37,7 +37,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, | |||
37 | struct ieee80211_sta *ista = &sta->sta; | 37 | struct ieee80211_sta *ista = &sta->sta; |
38 | void *priv_sta = sta->rate_ctrl_priv; | 38 | void *priv_sta = sta->rate_ctrl_priv; |
39 | 39 | ||
40 | if (!ref) | 40 | if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) |
41 | return; | 41 | return; |
42 | 42 | ||
43 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); | 43 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); |