diff options
author | Vasanthakumar <vasanth@atheros.com> | 2010-02-01 08:19:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-01 15:40:09 -0500 |
commit | 3c384053ce4cb1949f5575c28e30e6ceea8cb39b (patch) | |
tree | 5cfe0c3803dc8182c722a2a9cc992eec68cdc812 /net | |
parent | b4d57adb727ec7c34020390eeb0eeb9e0a2959bc (diff) |
mac80211: Don't call rate control when HW handles it
Rate control should not be called to update the tx status
when HW does the RC.
Signed-off-by: Vasanthakumar <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/rate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 669dddd40521..998cf7a935b6 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -44,6 +44,10 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, | |||
44 | struct rate_control_ref *ref = local->rate_ctrl; | 44 | struct rate_control_ref *ref = local->rate_ctrl; |
45 | struct ieee80211_sta *ista = &sta->sta; | 45 | struct ieee80211_sta *ista = &sta->sta; |
46 | void *priv_sta = sta->rate_ctrl_priv; | 46 | void *priv_sta = sta->rate_ctrl_priv; |
47 | |||
48 | if (!ref) | ||
49 | return; | ||
50 | |||
47 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); | 51 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); |
48 | } | 52 | } |
49 | 53 | ||