diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-11-14 20:32:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-11-14 20:32:36 +0000 |
commit | d923eab86ec8844d1b35fafae18e89347fd327cc (patch) | |
tree | 8068a7e2e4980f85bc50f0fd5fb7421d40a4b2a8 /package/kernel/mac80211/patches/300-pending_work.patch | |
parent | ff17114ba17f8e7c8b256f6f3a04640062a6d797 (diff) | |
download | mtk-20170518-d923eab86ec8844d1b35fafae18e89347fd327cc.zip mtk-20170518-d923eab86ec8844d1b35fafae18e89347fd327cc.tar.gz mtk-20170518-d923eab86ec8844d1b35fafae18e89347fd327cc.tar.bz2 |
rt2x00: fix a crash in the recent update (#14467)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38808
Diffstat (limited to 'package/kernel/mac80211/patches/300-pending_work.patch')
-rw-r--r-- | package/kernel/mac80211/patches/300-pending_work.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch index 33f7264..b0788e0 100644 --- a/package/kernel/mac80211/patches/300-pending_work.patch +++ b/package/kernel/mac80211/patches/300-pending_work.patch @@ -4508,3 +4508,22 @@ #define AR_CH0_TOP (AR_SREV_9300(ah) ? 0x16288 : \ (((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x1628c : 0x16280))) #define AR_CH0_TOP_XPABIASLVL (AR_SREV_9550(ah) ? 0x3c0 : 0x300) +--- a/drivers/net/wireless/rt2x00/rt2x00dev.c ++++ b/drivers/net/wireless/rt2x00/rt2x00dev.c +@@ -181,6 +181,7 @@ static void rt2x00lib_autowakeup(struct + static void rt2x00lib_bc_buffer_iter(void *data, u8 *mac, + struct ieee80211_vif *vif) + { ++ struct ieee80211_tx_control control = {}; + struct rt2x00_dev *rt2x00dev = data; + struct sk_buff *skb; + +@@ -195,7 +196,7 @@ static void rt2x00lib_bc_buffer_iter(voi + */ + skb = ieee80211_get_buffered_bc(rt2x00dev->hw, vif); + while (skb) { +- rt2x00mac_tx(rt2x00dev->hw, NULL, skb); ++ rt2x00mac_tx(rt2x00dev->hw, &control, skb); + skb = ieee80211_get_buffered_bc(rt2x00dev->hw, vif); + } + } |