git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mac80211: Don't call rate control when HW handles it
[pandora-kernel.git]
/
net
/
mac80211
/
rate.h
diff --git
a/net/mac80211/rate.h
b/net/mac80211/rate.h
index
669dddd
..
998cf7a
100644
(file)
--- 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);
}