diff options
author | Vasanthakumar <vasanth@atheros.com> | 2010-02-01 18:49:07 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-01 15:40:09 -0500 |
commit | 3c384053ce4cb1949f5575c28e30e6ceea8cb39b (patch) | |
tree | 5cfe0c3803dc8182c722a2a9cc992eec68cdc812 /net/mac80211/rate.h | |
parent | b4d57adb727ec7c34020390eeb0eeb9e0a2959bc (diff) | |
download | linux-3c384053ce4cb1949f5575c28e30e6ceea8cb39b.tar.gz linux-3c384053ce4cb1949f5575c28e30e6ceea8cb39b.tar.xz |
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/mac80211/rate.h')
-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, struct rate_control_ref *ref = local->rate_ctrl; struct ieee80211_sta *ista = &sta->sta; void *priv_sta = sta->rate_ctrl_priv; + + if (!ref) + return; + ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); } |