mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-08 00:57:07 +08:00
mt76: update to Git HEAD (2024-04-19)
This commit is contained in:
parent
12be5cfdd6
commit
5d1aadf436
@ -14,14 +14,11 @@ PKG_SOURCE_DATE:=2022-12-22
|
|||||||
PKG_SOURCE_VERSION:=5b509e80384ab019ac11aa90c81ec0dbb5b0d7f2
|
PKG_SOURCE_VERSION:=5b509e80384ab019ac11aa90c81ec0dbb5b0d7f2
|
||||||
PKG_MIRROR_HASH:=6fc25df4d28becd010ff4971b23731c08b53e69381a9e4c868091899712f78a9
|
PKG_MIRROR_HASH:=6fc25df4d28becd010ff4971b23731c08b53e69381a9e4c868091899712f78a9
|
||||||
PATCH_DIR:=./patches-5.4
|
PATCH_DIR:=./patches-5.4
|
||||||
else ifdef CONFIG_LINUX_6_1
|
else ifndef ($(filter on,$(CONFIG_LINUX_6_1) $(CONFIG_LINUX_6_6)),)
|
||||||
PKG_SOURCE_DATE:=2024-02-03
|
PKG_SOURCE_DATE:=2024-04-19
|
||||||
PKG_SOURCE_VERSION:=9827df56b241601f29bf496b62545713c67afb61
|
PKG_SOURCE_VERSION:=1d0bd57e58899d9c526c7c25cbaa04dc4a0559bf
|
||||||
PKG_MIRROR_HASH:=d758db4228eed55c93fff8f87ec92d482b8507a68698b28dcf273e12b02ddf5f
|
PKG_MIRROR_HASH:=09e2256ca6efcc8375f96722f0aabe539b83e35fc93d4fec44b71a0efe3f7914
|
||||||
else ifdef CONFIG_LINUX_6_6
|
PATCH_DIR:=./patches-6.x
|
||||||
PKG_SOURCE_DATE:=2024-02-03
|
|
||||||
PKG_SOURCE_VERSION:=9827df56b241601f29bf496b62545713c67afb61
|
|
||||||
PKG_MIRROR_HASH:=d758db4228eed55c93fff8f87ec92d482b8507a68698b28dcf273e12b02ddf5f
|
|
||||||
else
|
else
|
||||||
PKG_SOURCE_DATE:=2023-08-14
|
PKG_SOURCE_DATE:=2023-08-14
|
||||||
PKG_SOURCE_VERSION:=b14c2351ddb8601c322576d84029e463d456caef
|
PKG_SOURCE_VERSION:=b14c2351ddb8601c322576d84029e463d456caef
|
||||||
@ -582,9 +579,9 @@ define KernelPackage/mt7922-firmware/install
|
|||||||
$(1)/lib/firmware/mediatek
|
$(1)/lib/firmware/mediatek
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/mt76-test/install
|
define Build/InstallDev
|
||||||
mkdir -p $(1)/usr/sbin
|
mkdir -p $(STAGING_DIR_IMAGE)
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mt76-test $(1)/usr/sbin
|
$(CP) $(PKG_BUILD_DIR)/firmware/mt7981_eeprom_mt7976_dbdc.bin $(STAGING_DIR_IMAGE)/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,mt76-core))
|
$(eval $(call KernelPackage,mt76-core))
|
||||||
|
59
package/kernel/mt76/patches-6.x/001-allow-vht-on-2g.patch
Normal file
59
package/kernel/mt76/patches-6.x/001-allow-vht-on-2g.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
From ed0b9c38becdbf9379787ca0b4db557f03a31dd7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
|
||||||
|
Date: Mon, 23 Nov 2020 10:46:37 +0800
|
||||||
|
Subject: [PATCH] mt76: allow VHT rate on 2.4GHz
|
||||||
|
|
||||||
|
Allow chips that support 11ac to use 256QAM on 2.4GHz
|
||||||
|
|
||||||
|
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
|
||||||
|
---
|
||||||
|
mac80211.c | 10 +++++-----
|
||||||
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/mac80211.c b/mac80211.c
|
||||||
|
index 766681a4..06aa4228 100644
|
||||||
|
--- a/mac80211.c
|
||||||
|
+++ b/mac80211.c
|
||||||
|
@@ -282,7 +282,7 @@ static void mt76_init_stream_cap(struct mt76_phy *phy,
|
||||||
|
void mt76_set_stream_caps(struct mt76_phy *phy, bool vht)
|
||||||
|
{
|
||||||
|
if (phy->cap.has_2ghz)
|
||||||
|
- mt76_init_stream_cap(phy, &phy->sband_2g.sband, false);
|
||||||
|
+ mt76_init_stream_cap(phy, &phy->sband_2g.sband, vht);
|
||||||
|
if (phy->cap.has_5ghz)
|
||||||
|
mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht);
|
||||||
|
if (phy->cap.has_6ghz)
|
||||||
|
@@ -349,13 +349,13 @@ mt76_init_sband(struct mt76_phy *phy, struct mt76_sband *msband,
|
||||||
|
|
||||||
|
static int
|
||||||
|
mt76_init_sband_2g(struct mt76_phy *phy, struct ieee80211_rate *rates,
|
||||||
|
- int n_rates)
|
||||||
|
+ int n_rates, bool vht)
|
||||||
|
{
|
||||||
|
phy->hw->wiphy->bands[NL80211_BAND_2GHZ] = &phy->sband_2g.sband;
|
||||||
|
|
||||||
|
return mt76_init_sband(phy, &phy->sband_2g, mt76_channels_2ghz,
|
||||||
|
ARRAY_SIZE(mt76_channels_2ghz), rates,
|
||||||
|
- n_rates, true, false);
|
||||||
|
+ n_rates, true, vht);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
@@ -508,7 +508,7 @@ int mt76_register_phy(struct mt76_phy *phy, bool vht,
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
if (phy->cap.has_2ghz) {
|
||||||
|
- ret = mt76_init_sband_2g(phy, rates, n_rates);
|
||||||
|
+ ret = mt76_init_sband_2g(phy, rates, n_rates, vht);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
@@ -691,7 +691,7 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
if (phy->cap.has_2ghz) {
|
||||||
|
- ret = mt76_init_sband_2g(phy, rates, n_rates);
|
||||||
|
+ ret = mt76_init_sband_2g(phy, rates, n_rates, vht);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user