lede/package/kernel/mt76/patches/003-Revert-changed-IEEE80211_MAX_AMPDU_BUF-defi.patch
lovehackintosh b2eafb1cbc
mt76: refresh patches (#10689)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-12-28 01:15:34 +08:00

31 lines
1.0 KiB
Diff

From 2994307fe092a9627e12ad7cd9f32f4d36c201d8 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Sun, 25 Sep 2022 15:58:37 +0200
Subject: [PATCH] mt76: mt7915: fix changed IEEE80211_MAX_AMPDU_BUF define in
new kernel
New kernel use IEEE80211_MAX_AMPDU_BUF_HE instead of
IEEE80211_MAX_AMPDU_BUF.
This got backported to stable kernel 5.15.61 and cause compilation
error.
Add required ifdef to handle this changed define.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
mt7915/init.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/mt7915/init.c
+++ b/mt7915/init.c
@@ -329,8 +329,8 @@ mt7915_init_wiphy(struct mt7915_phy *phy
struct mt7915_dev *dev = phy->dev;
hw->queues = 4;
- hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
- hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE;
+ hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;
+ hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF;
hw->netdev_features = NETIF_F_RXCSUM;
hw->radiotap_timestamp.units_pos =