mac80211: fix a potential rate control related crash
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 8 Feb 2012 18:43:21 +0000 (18:43 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 8 Feb 2012 18:43:21 +0000 (18:43 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30388 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/300-pending_work.patch

index 83edd7e..b8cd51a 100644 (file)
        WLAN_STA_CLEAR_PS_FILT,
        WLAN_STA_MFP,
        WLAN_STA_BLOCK_BA,
+--- a/net/mac80211/rate.h
++++ b/net/mac80211/rate.h
+@@ -37,7 +37,7 @@ static inline void rate_control_tx_statu
+       struct ieee80211_sta *ista = &sta->sta;
+       void *priv_sta = sta->rate_ctrl_priv;
+-      if (!ref)
++      if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL))
+               return;
+       ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb);
This page took 0.026315 seconds and 4 git commands to generate.