summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-08 18:43:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-02-08 18:43:21 +0000
commit1e54972caf091eed5babeb232774a5180e5de54f (patch)
tree681679262c421d2933796d3b62d9905f8d0ff266 /package
parentfb53d25fa4e8d8ae36e675b4c9202e0e9ac1805b (diff)
downloadmaster-31e0f0ae-1e54972caf091eed5babeb232774a5180e5de54f.tar.gz
master-31e0f0ae-1e54972caf091eed5babeb232774a5180e5de54f.tar.bz2
master-31e0f0ae-1e54972caf091eed5babeb232774a5180e5de54f.zip
mac80211: fix a potential rate control related crash
SVN-Revision: 30388
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/300-pending_work.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch
index 83edd7e6b4..b8cd51a09d 100644
--- a/package/mac80211/patches/300-pending_work.patch
+++ b/package/mac80211/patches/300-pending_work.patch
@@ -253,3 +253,14 @@
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);