From: Vasanthakumar Date: Mon, 1 Feb 2010 13:19:07 +0000 (+0530) Subject: mac80211: Don't call rate control when HW handles it X-Git-Tag: v2.6.34-rc1~233^2~49^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c384053ce4cb1949f5575c28e30e6ceea8cb39b;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: John W. Linville --- diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 669dddd..998cf7a 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); }