]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/mac80211/rate.h
mac80211: rate control status only for controlled packets
[linux-2.6-omap-h63xx.git] / net / mac80211 / rate.h
index b9164c9a9563750ebd1f604931d0548b3242be07..2ab5ad9e71ce206a7c93efce93c80a4ce75c42b5 100644 (file)
@@ -44,8 +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;
+       struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
 
-       ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb);
+       if (likely(info->flags & IEEE80211_TX_INTFL_RCALGO))
+               ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb);
 }