summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorVasanthakumar <vasanth@atheros.com>2010-02-01 18:49:07 +0530
committerJohn W. Linville <linville@tuxdriver.com>2010-02-01 15:40:09 -0500
commit3c384053ce4cb1949f5575c28e30e6ceea8cb39b (patch)
tree5cfe0c3803dc8182c722a2a9cc992eec68cdc812 /net
parentb4d57adb727ec7c34020390eeb0eeb9e0a2959bc (diff)
downloadop-kernel-dev-3c384053ce4cb1949f5575c28e30e6ceea8cb39b.zip
op-kernel-dev-3c384053ce4cb1949f5575c28e30e6ceea8cb39b.tar.gz
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.h4
1 files changed, 4 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud