aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mt76/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/mt76/patches')
-rw-r--r--package/kernel/mt76/patches/001-backport_ieee80211_hw_set.patch12
-rw-r--r--package/kernel/mt76/patches/002-disable_fast_xmit.patch10
-rw-r--r--package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch18
3 files changed, 22 insertions, 18 deletions
diff --git a/package/kernel/mt76/patches/001-backport_ieee80211_hw_set.patch b/package/kernel/mt76/patches/001-backport_ieee80211_hw_set.patch
new file mode 100644
index 0000000000..e94574dc43
--- /dev/null
+++ b/package/kernel/mt76/patches/001-backport_ieee80211_hw_set.patch
@@ -0,0 +1,12 @@
+--- a/init.c
++++ b/init.c
+@@ -16,6 +16,9 @@
+ #include "eeprom.h"
+ #include "mcu.h"
+
++#define ieee80211_hw_set(hw, flag) \
++ do { (hw)->flags |= IEEE80211_HW_##flag; } while(0)
++
+ static bool
+ mt76_wait_for_mac(struct mt76_dev *dev)
+ {
diff --git a/package/kernel/mt76/patches/002-disable_fast_xmit.patch b/package/kernel/mt76/patches/002-disable_fast_xmit.patch
new file mode 100644
index 0000000000..f7a011b2e1
--- /dev/null
+++ b/package/kernel/mt76/patches/002-disable_fast_xmit.patch
@@ -0,0 +1,10 @@
+--- a/init.c
++++ b/init.c
+@@ -816,7 +816,6 @@ int mt76_register_device(struct mt76_dev
+ ieee80211_hw_set(hw, HOST_BROADCAST_PS_BUFFERING);
+ ieee80211_hw_set(hw, AMPDU_AGGREGATION);
+ ieee80211_hw_set(hw, SUPPORTS_RC_TABLE);
+- ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
+
+ hw->sta_data_size = sizeof(struct mt76_sta);
+ hw->vif_data_size = sizeof(struct mt76_vif);
diff --git a/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch b/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
deleted file mode 100644
index c29c9ba855..0000000000
--- a/package/kernel/mt76/patches/100-dma-fix-rx-buffer-allocation-size.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-From: Felix Fietkau <nbd@openwrt.org>
-Date: Sat, 18 Jul 2015 17:51:24 +0200
-Subject: [PATCH] dma: fix rx buffer allocation size
-
-Signed-off-by: Felix Fietkau <nbd@openwrt.org>
----
-
---- a/dma.c
-+++ b/dma.c
-@@ -158,7 +158,7 @@ mt76_dma_rx_fill(struct mt76_dev *dev, s
- while (q->queued < q->ndesc - 1) {
- int offset = mt76_rx_buf_offset(dev);
-
-- buf = kzalloc(len, GFP_ATOMIC);
-+ buf = kzalloc(q->buf_size, GFP_ATOMIC);
- if (!buf)
- break;
-