Skip to contentSkip to conversation

mac80211: Don't call rate control when HW handles it

PATCH New Vasanthakumar Thiagarajan 1 participant 1 message Feb 1, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Don't call rate control when HW handles it

From: Vasanthakumar <[email protected]>

Rate control should not be called to update the tx status when HW does the RC.

---
 net/mac80211/rate.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
net/mac80211/rate.h +4 -0
index 669dddd..998cf7a 100644
@@ -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);
 }
 
Signature · 1 line
1.6.3.3