Commit Graph

131 Commits

Author SHA1 Message Date
coolsnowwolf
6008d24ba8 mt76: update 6.x to Git HEAD (2024-05-17) 2025-04-12 01:27:10 +08:00
coolsnowwolf
97d3d1c6aa mt76: fix mt7916 160Mhz support in kernel 5.4 2025-03-20 12:54:19 +08:00
coolsnowwolf
1609903030 mt76: add kernel 6.12 support 2024-11-29 17:20:57 +08:00
Daniel Pawlik
2fdd47aff0 mt76: Add firmware files into mt7925 package
The firmware binaries were missing in kmod-mt7925-firmware package.
There was a typo done for mt7925e and mt7925u in the KernelPackage
definitions, which caused the system to load the wrong kernel modules.

Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
2024-08-27 21:30:15 +08:00
coolsnowwolf
150b745250 mt76: fixes build for older kernel
Fixes: #12343
2024-07-22 20:35:30 +08:00
coolsnowwolf
665cedd251 mt76: fixes build error for mt7925
Fixes: #12328
2024-07-13 23:02:08 +08:00
coolsnowwolf
983de37cf8 mt76: update to Git HEAD (2024-05-17) 2024-07-04 13:36:18 +08:00
coolsnowwolf
0397de1060 mt76: add MediaTek MT7996 (PCIe) support 2024-07-03 14:34:32 +08:00
coolsnowwolf
5d1aadf436 mt76: update to Git HEAD (2024-04-19) 2024-07-03 13:42:54 +08:00
coolsnowwolf
e5017ff7ca mt76: fix linux kernel 6.1 support for mediatek 2024-07-02 15:58:53 +08:00
coolsnowwolf
6924a18f35 mt76: add linux kernel 6.6 support for mediatek 2024-06-30 11:12:58 +08:00
coolsnowwolf
b0ea62c2c9 Revert "mt76: update to the latest version"
This reverts commit 16005ae688.
2023-10-03 11:39:42 +08:00
lean
16005ae688 mt76: update to the latest version 2023-09-30 17:44:03 +08:00
Felix Fietkau
8e4e1a06be mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-09-05 21:36:39 +08:00
Felix Fietkau
965f4854a5 mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-01 20:09:31 +08:00
coolsnowwolf
bafee3f48c mt76: enable wed wireless acc for filogic target by default 2023-07-07 00:19:58 +08:00
AmadeusGhost
4eb245c4b5 ramips: switch back to kernel 5.4
Fixes: #11222
2023-05-30 15:38:30 +08:00
AmadeusGhost
c993397693 Revert "mt76: drop upstream patches"
Fixes: #11256
2023-05-29 23:50:19 +08:00
shi JiaY
154993916a mt76: fix filogic target support 2023-05-15 23:28:11 +08:00
AmadeusGhost
9efea60e99 mt76: drop upstream patches 2023-05-14 22:56:12 +08:00
AmadeusGhost
ef12a97354 ramips: mt7621: add kernel 5.10 support with mtk_hnat 2023-05-08 23:50:09 +08:00
coolsnowwolf
4fbb5202f4 mt76: reseve for kernel 5.4 2023-05-07 02:00:08 +08:00
Daniel Golle
4fc24cc4ad mt76: add support for MT7981
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-06 00:18:36 +08:00
AmadeusGhost
081798a6ff mt76: add back kernel 5.4 support
Also refresh all patches.
2023-05-06 00:16:39 +08:00
Felix Fietkau
3167333946 mac80211: update to v6.1.24
Drop patches accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-04 17:20:37 +08:00
Shiji Yang
1823afb3f0 mt76: add stand-alone MT7622 firmware package
Add a separate firmware package to avoid installing the MT7615 firmware
on all MT7622 target devices by default. Now we only add MT7615 firmware
packages for devices that use MT7615E. This commit also removes the
explicit dependency on kmod-mt7615e to refine the package dependency.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:19:06 +08:00
Shiji Yang
467b9218e6 mt76: add stand-alone MT7915 firmware package
The mt7915e driver supports MT7915, MT7916 and MT7986 chips. And Only
MT7915 series chips need the MT7915 firmware. To save storage, extract
them from the common code package and create a new package to provide
the firmware.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:17:05 +08:00
Shiji Yang
5452b45dd6 mt76: remove unnecessary dependency from mt7915e
The kmod-mt7615-common package does not contain any code that
related to mt7915e Wi-Fi6 driver, so remove it.

Tested on ramips/mt7621: SIM SIMAX1800T

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-01-09 21:15:02 +08:00
Felix Fietkau
32330e1a15 mt76: update to the latest version
a03ef0aab93e wifi: mt76: mt7921: fix deadlock in mt7921_abort_roc
5b509e80384a wifi: mt76: dma: fix a regression in adding rx buffers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-26 20:50:22 +08:00
lovehackintosh
d2460dfb82
treewide: sync with upstream (#10658)
* rules: fix broken commitcount on alpine system

To generate commitcount we use grep --max-count. This is not present on
alpine grep and cause wrong generation. Use -m as it's just the short
version of --max-count and more portable.

Fixes: #11200
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* image-commands.mk: Be consistent in command invocation

Most/all other tools use the staging dir prefix, gzip should as well.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Christian Marangi <ansuelsmth@gmail.com>

* image: fix device profile specific COMPILE targets

Commit a01d23e75 ("image: always rebuild kernel loaders")
is a step in the right direction, but exposed some issues
and regressions in the makefile.

Some of the files made by device specific COMPILE targets
start with an "append" command (i.e. >> instead of > redirection)
and if the file already exists, the target file is the
input to itself before the first recipe-specified input.

Fixes: a01d23e75 ("image: always rebuild kernel loaders")
Fixes: a7fb589e8 ("image: always rebuild kernel loaders")
Signed-off-by: Michael Pratt <mcpratt@pm.me>

* trusted-firmware-a.mk: use correct CPE ID

There are 2 different CPE IDs on the NVD website:
cpe:/a:arm:trusted_firmware-a
cpe:/o:arm:arm_trusted_firmware

The ID as currently used in trusted-firmware-a.mk does not exist. The
CPE ID using the arm_trusted_firmware product name only lists a few
records for versions 2.2 and 2.3 on the NVD site. The CPE ID using the
trusted_firmware-a product name lists many more records, and actually
has a CVE linked to it. Therefore, use the CPE ID using the
trusted_firmware-a product name.

Fixes: 104d60fe94ce ("trusted-firmware-a.mk: add PKG_CPE_ID")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

* fritz-tools: fritz_tffs_nand: exclude oob code when disabled

Skip unnecessary stuff if checking the oob data is disabled.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* fritz-tools: fritz_tffs_nand: get rid of struct tffs_sectors

This doesn't help and "[0]" gets in the way of bounds checks.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* fritz-tools: fritz_tffs_nand: cache already read sector ids

This speeds up the tool significantly, especially when using the "-a"
argument.

Signed-off-by: Andre Heider <a.heider@gmail.com>

* iproute2: add missing libbpf dependency

This patch adds libbpf to the dependencies of tc-mod-iptables.

The package tc-mod-iptables is missing libbpf as a dependency,
which leads to the build failure described in bug #9491

    LIBBPF_FORCE=on set, but couldn't find a usable libbpf

The build dependency is already automatically added because some other
packages from iproute2 depend on libbpf, but bpftools has multiple build
variants. With multiple build variants none gets build by default and
the build system will not build bpftools before iproute2.

Fixes: #9491
Signed-off-by: Kien Truong <duckientruong@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* iproute2: update to 6.0.0

Release Notes:
https://lore.kernel.org/netdev/20221004082610.56b04719@hermes.local/t/

Remove upstreamed patch:
- 010-ipstats-Add-param.h-for-musl.patch

Refreshed:
- 140-keep_libmnl_optional.patch
- 145-keep_libelf_optional.patch
- 150-keep_libcap_optional.patch
- 155-keep_tirpc_optional.patch
- 170-ip_tiny.patch
- 190-fix-nls-rpath-link.patch
- 200-drop_libbsd_dependency.patch
- 300-selinux-configurable.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* iproute2: update to 6.1.0

Announcement:
https://lore.kernel.org/netdev/20221214094130.7b11ec2e@hermes.local/T/#t

Refresh patch:
- 170-ip_tiny.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>

* tools/xz: update to 5.2.10

Update to latest version.

Signed-off-by: Nick Hainke <vincent@systemli.org>

* Revert "Revert "tools/upx: remove (#10622)""

This reverts commit d3e16f203a.

* kernel: Make use of KERNEL_MAKE

Make use of KERNEL_MAKE in kernel packages were easily possible.
This moves some more code to common places and reduces the number of
lines.

It is defined like this:
KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS)
KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: gcc: backport patches to fix build with glibc 2.36

glibc 2.36 changed the definition of enum fsconfig_command, it now
collides with the same definition from sys/mount.h. Remove the include
of linux/fs.h This still compiled with musl too.

This backports a patch which is already in the stable branch of GCC 11
and GCC 12.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* toolchain: glibc: Update to glibc 2.36

This updates to glibc to version 2.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

* tools/llvm: update to 15.0.6

Release Notes:
	https://discourse.llvm.org/t/llvm-15-0-0-release/65099
	https://discourse.llvm.org/t/llvm-15-0-1-released/65380
	https://discourse.llvm.org/t/llvm-15-0-2-released/65695
	https://discourse.llvm.org/t/llvm-15-0-3-released/66036
	https://discourse.llvm.org/t/llvm-15-0-4-released/66337
	https://discourse.llvm.org/t/llvm-15-0-5-release/66616
	https://discourse.llvm.org/t/llvm-15-0-6-released/66899

Remove HOST_BUILD_PARALLEL as it's default now.

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Kien Truong <duckientruong@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Olliver Schinagl <oliver@schinagl.nl>
Co-authored-by: Michael Pratt <mcpratt@pm.me>
Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
Co-authored-by: Andre Heider <a.heider@gmail.com>
Co-authored-by: Kien Truong <duckientruong@gmail.com>
Co-authored-by: Nick Hainke <vincent@systemli.org>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-12-23 02:09:34 +08:00
coolsnowwolf
07423281c6 mt76: update to the latest version 2022-12-20 23:11:06 +08:00
coolsnowwolf
6710357cce mac80211: revert to linux 5.15 2022-12-20 14:57:32 +08:00
Felix Fietkau
3f8f00b491 mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-18 21:33:21 +08:00
coolsnowwolf
4212f116b4 mac80211: backports linux 6.1 support 2022-12-14 01:52:15 +08:00
Felix Fietkau
6725061f86 mt76: update to version 2022-12-01
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-12-11 15:15:15 +08:00
coolsnowwolf
697c2aea28 mt76: update firmware for MT7986 2022-11-28 13:44:37 +08:00
coolsnowwolf
6f77eb8769 mt76: add mt7922 firmware 2022-11-19 04:01:48 +08:00
coolsnowwolf
1770fdd319 mt76: add EHT 1K aggregation definitions backport 2022-11-13 19:50:36 +08:00
Felix Fietkau
2eda60e12f mt76: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-11-12 19:07:42 +08:00
Andrew Powers-Holmes
6cad41f780 mt76: add firmware package for mt7916
Add kernel package 'mt7916-firmware' with firmware files for MT7916E devices.

These share the same driver as the MT7915 chipset, but use their own firmware.

Tested using a pair of AsiaRF AW7916-NPD cards.

Signed-off-by: Andrew Powers-Holmes <aholmes@omnom.net>
2022-11-11 11:32:54 +08:00
coolsnowwolf
06fa03cb43 mt76: add MediaTek Filogic 630 (MT7916) support 2022-10-19 21:06:13 +08:00
Felix Fietkau
784361332e mt76: update to the latest version
e4fa68a9b3b3 linux-firmware: update firmware for MT7921 WiFi device
60fcf08fe659 linux-firmware: update firmware for MT7921 WiFi device
9d601f4eee8f linux-firmware: update firmware for MT7922 WiFi device
e49b6063fb4b wifi: mt76: move mt76_rate_power from core to mt76x02 driver code
3f27f6adb1ab wifi: mt76: mt76x02: simplify struct mt76x02_rate_power
c07f3d2d5ede wifi: mt76: mt7921: fix antenna signal are way off in monitor mode
9059a5de3bd0 wifi: mt76: Remove unused inline function mt76_wcid_mask_test()
d75f15ddeb90 wifi: mt76: mt7915: fix bounds checking for tx-free-done command
06df7e689294 wifi: mt76: mt7915: reserve 8 bits for the index of rf registers
ad3d0f8db00b wifi: mt76: mt7915: rework eeprom tx paths and streams init
66065073177b wifi: mt76: mt7915: deal with special variant of mt7916
b0114a0abb57 wifi: mt76: mt7915: rework testmode tx antenna setting
6dee964e1f36 wifi: mt76: connac: introduce mt76_connac_spe_idx()
48c116d92939 wifi: mt76: mt7915: add spatial extension index support
db6db4ded0fd wifi: mt76: mt7915: set correct antenna for radar detection on MT7915D
2b8f56a72d76 wifi: mt76: mt7915: fix mt7915_mac_set_timing()
d554a02554db wifi: mt76: mt7915: move wed init routines in mmio.c
61ce40e65852 wifi: mt76: mt7915: enable wed for mt7986 chipset
584a96ec4a0f wifi: mt76: mt7915: enable wed for mt7986-wmac chipset
172d68b6253d mt76: mt76x02: fix vht rate power array overrun
72b87836d368 Revert "mt76: use IEEE80211_OFFLOAD_ENCAP_ENABLED instead of MT_DRV_AMSDU_OFFLOAD"

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-02 11:53:30 +08:00
Felix Fietkau
e78c4bfffe mt76: update to the latest version
94eb0bc1374d wifi: mt76: testmode: use random payload for tx packets
f8ece810002b wifi: mt76: add rx_check callback for usb devices
67fbdb7bed90 wifi: mt76: mt7921e: fix race issue between reset and suspend/resume
a9b09dd2715f wifi: mt76: mt7921s: fix race issue between reset and suspend/resume
ee3eb0d6d52e wifi: mt76: mt7921u: fix race issue between reset and suspend/resume
9706ccef5447 wifi: mt76: mt7921u: remove unnecessary MT76_STATE_SUSPEND
74a29eb4f714 wifi: mt76: mt7921: move mt7921_rx_check and mt7921_queue_rx_skb in mac.c
f49e06c4cfce wifi: mt76: sdio: fix the deadlock caused by sdio->stat_work
322656141fa4 wifi: mt76: sdio: poll sta stat when device transmits data
dee0a3cbfb03 wifi: mt76: mt7915: fix an uninitialized variable bug
9dd7be2c5164 wifi: mt76: mt7921: fix use after free in mt7921_acpi_read()
0ad02c9a4512 wifi: mt76: sdio: add rx_check callback for sdio devices
fe85e5ccbaca wifi: mt76: sdio: fix transmitting packet hangs
206c7ebd7464 wifi: mt76: mt7615: add mt7615_mutex_acquire/release in mt7615_sta_set_decap_offload
bf79f5d73e4f wifi: mt76: mt7915: fix possible unaligned access in mt7915_mac_add_twt_setup
c4132ab0bea2 wifi: mt76: connac: fix possible unaligned access in mt76_connac_mcu_add_nested_tlv
52eec74986cf wifi: mt76: mt7663s: add rx_check callback
019ef069e754 wifi: mt76: mt76_usb.mt76u_mcu.burst is always false remove related code
0a392ca03db8 wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap
fbb3554b6236 wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_sta_set_decap_offload
b55a4eb2ee21 wifi: mt76: mt7921: fix the firmware version report
2d72c9a74011 wifi: mt76: move move mt76_sta_stats to mt76_wcid
873365b06c5c wifi: mt76: add PPDU based TxS support for WED device
0c64a80a61c2 wifi: mt76: connac: fix in comment
d11f971a452e wifi: mt76: mt7921: get rid of the false positive reset
2ac22300c7ac wifi: mt76: mt7915: fix mcs value in ht mode
5e45533e4ba2 wifi: mt76: fix uninitialized pointer in mt7921_mac_fill_rx
e06376af21dd wifi: mt76: mt7915: do not check state before configuring implicit beamform
0c0bda4aea05 wifi: mt76: mt7921: reset msta->airtime_ac while clearing up hw value
cddc4b43ea93 wifi: mt76: mt7921e: fix rmmod crash in driver reload test
ebbd68842ee0 wifi: mt76: mt7921: introduce Country Location Control support
763a1d90133b wifi: mt76: mt7921e: fix random fw download fail

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-18 15:29:13 +08:00
Felix Fietkau
49e382d368 mt76: update to the latest version
d70546462b7b mt76: fix 5 GHz connection regression on mt76x0/mt76x2

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-09-08 14:25:12 +08:00
lean
ef5585ee83 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-29 21:40:36 +08:00
Felix Fietkau
ea13fe5a40 mt76: add mt7986 wmac support
Add firmware package for MT7986 and enable WMAC support in the driver

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-08-29 11:36:27 +08:00
lean
f8015dd5e9 mt76: mt7921e: add firmware for mt7922 wifi6e devices for Ryan 2022-08-29 01:11:02 +08:00
lean
b1e8d12da9 mt76: update to the latest version 2022-08-27 03:38:00 +08:00
lean
85c2ce64c5 mt76: add 5.19 kernel support 2022-08-17 23:38:06 +08:00
lean
5d92792d40 mt76: update to the latest version 2022-07-12 11:51:06 +08:00