Skip to content

Commit

Permalink
mac80211: Don't call rate control when HW handles it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasanthakumar authored and John W. Linville committed Feb 1, 2010
1 parent b4d57ad commit 3c38405
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/mac80211/rate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3c38405

Please sign in to comment.