openwrt/staging/xback.git
7 weeks agoethtool: update to 6.10
Hauke Mehrtens [Sun, 29 Sep 2024 10:37:43 +0000 (06:37 -0400)]
ethtool: update to 6.10

Release Notes:
https://lore.kernel.org/netdev/20240128235634.4ni2lbvzqjlwbgi4@lion.mk-sys.cz/T/
https://lore.kernel.org/netdev/jylgitumxz72a2hfzsujnwvxpkuzcw3wcwebodthtpvtkfgmlp@rfoix5dyh2bg/T/
https://lore.kernel.org/netdev/ssn37ocuhjyx3k5xoq53uvb3voo2qxnwvuwgephb4cc5lbw5ei@5fkqwsfdzlcu/T/

Small size increase:
 34937 bin/packages/mips_24kc-old/base/ethtool_6.6-r1_mips_24kc.ipk
154818 bin/packages/mips_24kc-old/base/ethtool-full_6.6-r1_mips_24kc.ipk
 35780 bin/packages/mips_24kc-new/base/ethtool_6.10-r1_mips_24kc.ipk
157386 bin/packages/mips_24kc-new/base/ethtool-full_6.10-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16590
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agolibnl: update to 3.10.0
Hauke Mehrtens [Thu, 3 Oct 2024 19:47:48 +0000 (21:47 +0200)]
libnl: update to 3.10.0

Changes:
fa05d58e (tag: libnl3_10_0) libnl-3.10.0 release
490ffa07 python: fix flake8 warnings
6fc66dd8 doc: workaround LINK_DOC with empty libnl.dict
914812a9 lib: avoid overflow in computation of s_seq_next
5248e1a4 all: fix and enable "-Wsign-compare" warning
9451842e build: use AC_USE_SYSTEM_EXTENSIONS instead of defining _GNU_SOURCE
20664e1e build: move "-DPGKLIBDIR" and rename
81cab7da build: cleanup defining SYSCONFDIR on command line
cf47571c build: drop unnecessary "-Wno-missing-field-initializers" from default CFLAGS
131008f7 build: add "-Wvla" and "-Wdeclaration-after-statement" to default CFLAGS
7e05b622 lib: add internal _nla_len() helper
32688201 route: treat routes with via nexthops as universe scoped as well
c36c7faa format: reformat "include/base/nl-base-utils.h"
49f78229 tests: add a very basic test for route cache
2ebbc034 tests: add NLTstSelectRoute test helper
d784f2cb tests: set NLTST_IN_CI for not skipping tests accidentally
dcb9e2ef route: add missing priority to route_keygen() debug print
d44505ed tests: add helper to detect availablility of iproute2
774863b4 tests: add helper functions for tests
45a10f96 route: move "struct rtnl_nexthop" to "nl-priv-dynamic-route"
153f213b build: fix "check-progs" target in "Makefile.am"
a1e0b8b2 github: print test-suite.log in case of test failure
3e080631 route: expose nexthop id attribute
401c2488 tests: fix _nltst_object_to_string() to print one line only
529c2ab8 route: drop unused fields from "struct rtnl_route"
71e59e14 build: separate build tests from unit tests
8539b7d3 format: reformat "tests/nl-test-util.h" file
6db85366 route: merge branch 'bisdn:jogo_route_nh_cmp'
861fb809 route: use the new helper function for comparing nexthops
8cf29d7b nexthop: add a identical helper function
7cc72d19 utils: reserve the nl_has_capabiliy numbers for releases 3.10 - 3.12
30da5107 github,clang-format: update fedora version for clang-format
2301992b route: fix IPv6 ecmp route deleted nexthop matching
72e4d73f cache: merge branch 'ievenbach:aurora/cache-mgr-cb'
3381acef cache: use cleanup attribute in nl_cache_mngr_alloc_ex()
32cb9f39 cache: cleanup nl_cache_mngr_alloc_ex()
1dbdc30a cache: allow to allocate cache manager with custom refill socket
18b74e08 tests: test compiling all public headers with C++ compiler
691202bf tests: don't use $COMPILE for building header tests
15d90cbf include: add _NL_NO_WARN_DEPRECATED_HEADER for suppressing warning about deprecated headers
8a5f671a tests: avoid "-Wunused-parameter" warning in build headers test
db1a9d7d route: avoid compiler warning about calloc() arguments in rtnl_netem_set_delay_distribution()
3a43faa1 cache: fix new object in callback v2 on updated objects
46cae1bf socket: fix ubsan complaint about incorrect left-shift in generate_local_port()
96ddcd99 all: merge branch 'th/nl-debug'
13ab0122 github: test with --enable-debug=no configure option
264b244e utils: always define nl_debug_dp
dbe21b8d core: always define statements for NL_DBG()
e592dd89 build: always define NL_DEBUG
58734974 all: use defines for attributes
0c16c9cb route/bison: include "nl-default.h" in lex/yacc files
19d48b0f route: add support for layer 3 filtering on bridges
3646398d route: merge branch 'Cordell-O:main'
e21278ed tests: add test for bridge vlan attributes.
4f324f73 route: add support for vlan filtering on bridge ports.
bf071f2b route: Add support to set ageing time for dynamic bridge table entries
b76c3a5d tests: add unit test for `nl_addr_parse("default", AF_INET6, &addr6)`
8693347f lib/xfrm: add missing #include <time.h>

Small size increase:
   955 bin/packages/mips_24kc-old/base/libnl200_3.9.0-r1_mips_24kc.ipk
 11157 bin/packages/mips_24kc-old/base/libnl-cli200_3.9.0-r1_mips_24kc.ipk
 34896 bin/packages/mips_24kc-old/base/libnl-core200_3.9.0-r1_mips_24kc.ipk
  7698 bin/packages/mips_24kc-old/base/libnl-genl200_3.9.0-r1_mips_24kc.ipk
 25400 bin/packages/mips_24kc-old/base/libnl-nf200_3.9.0-r1_mips_24kc.ipk
148366 bin/packages/mips_24kc-old/base/libnl-route200_3.9.0-r1_mips_24kc.ipk
   956 bin/packages/mips_24kc-new/base/libnl200_3.10.0-r1_mips_24kc.ipk
 11154 bin/packages/mips_24kc-new/base/libnl-cli200_3.10.0-r1_mips_24kc.ipk
 34965 bin/packages/mips_24kc-new/base/libnl-core200_3.10.0-r1_mips_24kc.ipk
  7699 bin/packages/mips_24kc-new/base/libnl-genl200_3.10.0-r1_mips_24kc.ipk
 25385 bin/packages/mips_24kc-new/base/libnl-nf200_3.10.0-r1_mips_24kc.ipk
149852 bin/packages/mips_24kc-new/base/libnl-route200_3.10.0-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16592
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agolibxml2: update to 2.13.4
Hauke Mehrtens [Thu, 3 Oct 2024 20:02:51 +0000 (22:02 +0200)]
libxml2: update to 2.13.4

Release Notes:
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.0
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.1
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.2
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.3
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.13.4

Small size reduction:
415095 bin/packages/mips_24kc-old/base/libxml2_2.12.6-r1_mips_24kc.ipk
 87175 bin/packages/mips_24kc-old/base/libxml2-dev_2.12.6-r1_mips_24kc.ipk
 20190 bin/packages/mips_24kc-old/base/libxml2-utils_2.12.6-r1_mips_24kc.ipk
398070 bin/packages/mips_24kc-new/base/libxml2_2.13.4-r1_mips_24kc.ipk
 86760 bin/packages/mips_24kc-new/base/libxml2-dev_2.13.4-r1_mips_24kc.ipk
 19479 bin/packages/mips_24kc-new/base/libxml2-utils_2.13.4-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16593
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agolibxml2: update to 2.12.9
Hauke Mehrtens [Thu, 3 Oct 2024 19:59:21 +0000 (21:59 +0200)]
libxml2: update to 2.12.9

Release Notes:
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.7
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.8
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.9

This fixes:
CVE-2024-34459: Fix buffer overread with xmllint --htmlout
CVE-2024-40896: Fix XXE protection in downstream code

Link: https://github.com/openwrt/openwrt/pull/16593
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agolibjson-c: update to 0.18
Hauke Mehrtens [Thu, 3 Oct 2024 20:08:39 +0000 (22:08 +0200)]
libjson-c: update to 0.18

Release Notes:
https://github.com/json-c/json-c/blob/json-c-0.18-20240915/ChangeLog

This restores ABI compatibility with version 0.16 used in OpenWrt 23.05.

Small size increase:
24263 bin/packages/mips_24kc-old/base/libjson-c5_0.17-r1_mips_24kc.ipk
24403 bin/packages/mips_24kc-new/base/libjson-c5_0.18-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16591
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agostrace: Update to version 6.11
Hauke Mehrtens [Thu, 3 Oct 2024 19:39:13 +0000 (21:39 +0200)]
strace: Update to version 6.11

Release Notes:
https://github.com/strace/strace/releases/tag/v6.8
https://github.com/strace/strace/releases/tag/v6.9
https://github.com/strace/strace/releases/tag/v6.10
https://github.com/strace/strace/releases/tag/v6.11

Small size increase:
323788 bin/packages/mips_24kc-old/base/strace_6.7-r1_mips_24kc.ipk
336988 bin/packages/mips_24kc-new/base/strace_6.11-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16585
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agovalgrind: Update to version 3.23
Hauke Mehrtens [Thu, 3 Oct 2024 16:24:13 +0000 (18:24 +0200)]
valgrind: Update to version 3.23

Release notes:
https://valgrind.org/docs/manual/dist.news.html

The patch `130-fix_arm_arch_detection.patch` was added upstream in
https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=5bdb86cc9a962f04f2dd3816b7d3a96288b09b72

Replace `010-mips-Fix-new-syscall-numbers.patch` with backport from
upstream.

Backport patch `020-no-member-guest_IP_AT_SYSCALL.patch` to fix a
compile problem on MIPS.

Small size increase:
1527884 bin/packages/mips_24kc-old/base/valgrind_3.22.0-r1_mips_24kc.ipk
3352210 bin/packages/mips_24kc-old/base/valgrind-cachegrind_3.22.0-r1_mips_24kc.ipk
3522982 bin/packages/mips_24kc-old/base/valgrind-callgrind_3.22.0-r1_mips_24kc.ipk
3573577 bin/packages/mips_24kc-old/base/valgrind-drd_3.22.0-r1_mips_24kc.ipk
3647835 bin/packages/mips_24kc-old/base/valgrind-helgrind_3.22.0-r1_mips_24kc.ipk
3383239 bin/packages/mips_24kc-old/base/valgrind-massif_3.22.0-r1_mips_24kc.ipk
  22332 bin/packages/mips_24kc-old/base/valgrind-vgdb_3.22.0-r1_mips_24kc.ipk
1541969 bin/packages/mips_24kc-new/base/valgrind_3.23.0-r1_mips_24kc.ipk
3378595 bin/packages/mips_24kc-new/base/valgrind-cachegrind_3.23.0-r1_mips_24kc.ipk
3548415 bin/packages/mips_24kc-new/base/valgrind-callgrind_3.23.0-r1_mips_24kc.ipk
3592715 bin/packages/mips_24kc-new/base/valgrind-drd_3.23.0-r1_mips_24kc.ipk
3664706 bin/packages/mips_24kc-new/base/valgrind-helgrind_3.23.0-r1_mips_24kc.ipk
3411485 bin/packages/mips_24kc-new/base/valgrind-massif_3.23.0-r1_mips_24kc.ipk
  22869 bin/packages/mips_24kc-new/base/valgrind-vgdb_3.23.0-r1_mips_24kc.ipk

Link: https://github.com/openwrt/openwrt/pull/16584
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agomac80211: backport upstream DFS fixes
Felix Fietkau [Sat, 5 Oct 2024 07:35:49 +0000 (09:35 +0200)]
mac80211: backport upstream DFS fixes

Mostly MLO related

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 weeks agoramips: dts: DNA EX400 has redundant type u-boot environment
Mauri Sandberg [Tue, 24 Sep 2024 10:40:10 +0000 (13:40 +0300)]
ramips: dts: DNA EX400 has redundant type u-boot environment

Set compatible string and specify redundant type U-boot environment.

Fixes: fea2264d9fdd ("ramips: mt7621: Add DNA Valokuitu Plus EX400")
Signed-off-by: Mauri Sandberg <maukka@ext.kapsi.fi>
Link: https://github.com/openwrt/openwrt/pull/16573
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agomt7621: enable CONFIG_MTD_UBI_NVMEM, CONFIG_NVMEM_LAYOUT_U_BOOT_ENV
Mauri Sandberg [Wed, 2 Oct 2024 16:39:22 +0000 (19:39 +0300)]
mt7621: enable CONFIG_MTD_UBI_NVMEM, CONFIG_NVMEM_LAYOUT_U_BOOT_ENV

Enable above drivers for mt7621 targets. They are needed for retrieving a MAC
address stored in a U-boot environment residing on an UBI volume.

Signed-off-by: Mauri Sandberg <maukka@ext.kapsi.fi>
Link: https://github.com/openwrt/openwrt/pull/16573
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agomac80211: update to version 6.11.2
Felix Fietkau [Fri, 4 Oct 2024 16:43:32 +0000 (18:43 +0200)]
mac80211: update to version 6.11.2

Adds a number of minor fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 weeks agomt76: add missing eeprom file for mt7992
Felix Fietkau [Fri, 4 Oct 2024 08:40:07 +0000 (10:40 +0200)]
mt76: add missing eeprom file for mt7992

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 weeks agobase-files: configure LED when added
Daniel Golle [Thu, 3 Oct 2024 15:25:36 +0000 (16:25 +0100)]
base-files: configure LED when added

Currently LED configuration is only carried out once during boot.
Apply LED configuration also with a hotplug call when a new LED gets
added later.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 weeks agobase-files: /etc/sysctl.conf: clarity in comment
John Audia [Sun, 29 Sep 2024 10:37:43 +0000 (06:37 -0400)]
base-files: /etc/sysctl.conf: clarity in comment

Make it clear to users that they should not place a custom file
in /etc/sysctl.d/ for their values and expect it to survive a
reimage.

This change is needed since these directories (/etc/foo.d/) are
generally where such files are placed on other distros.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16543
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agoaudit: update to 3.1.5
Yanase Yuki [Sat, 14 Sep 2024 10:22:18 +0000 (19:22 +0900)]
audit: update to 3.1.5

- Remove upstreamed patch: 0001-Implicit-builtin-functions.patch
- Fix package license info.
- Use git mirror instead of GitHub generated tarball.

Signed-off-by: Yanase Yuki <dev@zpc.st>
Link: https://github.com/openwrt/openwrt/pull/16388
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agometa: VS Code: add "Git: Always Sign Off" setting
Andrey Butirsky [Sat, 28 Sep 2024 18:01:16 +0000 (18:01 +0000)]
meta: VS Code: add "Git: Always Sign Off" setting

VS Code setting to auto signoff commits.
This also corresponds to our GitHub Web workflow.

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16540
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agoath79: rb91x-key: replace fwnode with pdev
Rosen Penev [Sun, 22 Sep 2024 18:19:40 +0000 (11:19 -0700)]
ath79: rb91x-key: replace fwnode with pdev

There's no specific fwnode handling here. Simpler to just use pdev.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16506
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agoath79: rb91x-key: use more devm
Rosen Penev [Thu, 15 Aug 2024 02:17:37 +0000 (19:17 -0700)]
ath79: rb91x-key: use more devm

Use devm_gpiochip_add_data to get rid of the remove function. No need
for it.

Also use dev_err_probe to simplify the error path and avoid having to
handle -EPROBE_DEFER manually.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16506
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agox86: generic: config-6.6: refresh config
John Audia [Fri, 27 Sep 2024 18:08:09 +0000 (14:08 -0400)]
x86: generic: config-6.6: refresh config

Add CONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y which was introduced
back in April of this year[1]

1. https://github.com/torvalds/linux/commit/ce0abef6a1d540acef85068e0e82bdf1fbeeb0e9

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16535
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agoramips: modernize ralink i2c driver
Rosen Penev [Fri, 27 Sep 2024 00:49:55 +0000 (17:49 -0700)]
ramips: modernize ralink i2c driver

Use more devm and remove _remove function.

Remove owner as the kernel sets it automatically.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16546
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agokernel: ubnt-ledbar: return directly
Rosen Penev [Wed, 25 Sep 2024 21:43:14 +0000 (14:43 -0700)]
kernel: ubnt-ledbar: return directly

Removes ret variable.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agokernel: ubnt-ledbar: use dev_err_probe
Rosen Penev [Sun, 22 Sep 2024 18:27:13 +0000 (11:27 -0700)]
kernel: ubnt-ledbar: use dev_err_probe

Handles EPROBE_DEFER and simplifies the code.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16508
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agoramips: rename interfaces for tplink er605v2
Nikolay Martynov [Thu, 4 Jul 2024 03:21:52 +0000 (23:21 -0400)]
ramips: rename interfaces for tplink er605v2

Currently eth1 (which is the first "lan" interface) doesn't work on this device.
During boot the following can be seen in logs:

```
[    2.252804] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.266060] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[    2.277889] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 19
...
[    2.355157] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.390312] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.398597] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    2.403872] mt7530-mdio mdio-bus:1f eth1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=21)
[    2.416988] mtk_soc_eth 1e100000.ethernet eth0: error -17 registering interface eth1
[    2.426973] mt7530-mdio mdio-bus:1f eth2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=22)
[    2.440996] mt7530-mdio mdio-bus:1f eth3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=23)
[    2.454405] mt7530-mdio mdio-bus:1f eth4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=24)
[    2.467198] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[    2.474117] DSA: tree 0 setup
...
[    6.820998] mtk_soc_eth 1e100000.ethernet dsa: renamed from eth0
[    6.919904] mtk_soc_eth 1e100000.ethernet wan: renamed from eth1
```

So the problem seems to be the fact that built-in gmacs get default
names (eth0/eth1) and are renamed after switch ports are initialized. This means
that when switch port with name `eth1` is brought up this name is still used by
gmac1 causing switch port's init to fail.

This patch just renames the ports to avoid name collision.
Note: this will break existing configs for this device because it renames all
the ports. This should not be major problem because this device doesn't have a
proper OEM image and is only flashable with serial access, meaning there should
not be many users.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15865
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agowifi-scripts: Fix typo in EHT320 name
Hauke Mehrtens [Thu, 3 Oct 2024 13:35:01 +0000 (15:35 +0200)]
wifi-scripts: Fix typo in EHT320 name

All other places name it EHT320.

Fixes: b478b7b1f7b9 ("wifi-scripts: detect and configure EHT")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agokernel: packages: kmod-pstore: remove deprecated Kconfig options
Manuel Fombuena [Wed, 2 Oct 2024 21:08:01 +0000 (22:08 +0100)]
kernel: packages: kmod-pstore: remove deprecated Kconfig options

The following options no longer exist in 6.6:

PSTORE_COMPRESS_DEFAULT
PSTORE_DEFLATE_COMPRESS
CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/pstore/Kconfig?h=v6.6

Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/16579
Signed-off-by: Robert Marko <robimarko@gmail.com>
7 weeks agomt76: mark mt7925 11BE capable
Marek Puzyniak [Wed, 25 Sep 2024 11:50:48 +0000 (13:50 +0200)]
mt76: mark mt7925 11BE capable

Build hostapd with 11BE support for
both mt7925e and mt7925u.

Signed-off-by: Marek Puzyniak <marek.puzyniak@holisticon.pl>
Link: https://github.com/openwrt/openwrt/pull/16571
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agomac80211: mark ath12k 80211BE capable
Janusz Dziedzic [Mon, 23 Sep 2024 06:26:08 +0000 (08:26 +0200)]
mac80211: mark ath12k 80211BE capable

Build hostapd with 80211BE suport.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16571
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 weeks agogeneric: backport upstream r8169 patches
Álvaro Fernández Rojas [Wed, 2 Oct 2024 17:01:57 +0000 (19:01 +0200)]
generic: backport upstream r8169 patches

These patches have been added in linux v6.12 release.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 weeks agorealtek: add support for Linksys LGS310C
Markus Stockhausen [Sat, 14 Sep 2024 21:17:44 +0000 (17:17 -0400)]
realtek: add support for Linksys LGS310C

Hardware specification
----------------------

* RTL8380M SoC, 1 MIPS 4KEc core @ 500MHz
* 256MB DRAM
* 32MB NOR Flash
* 8 x 10/100/1000BASE-T ports
* 2 x SFP ports
* Power LED, Fault LED
* Reset button on front panel
* UART (115200 8N1) via populated standard pin header marked JP1

TODO: The SFP ports use a shared SCL GPIO that the driver cannot handle.
The left SFP port (lan9) is defined and fully functional while the laser
on the right SFP port (lan10) is off by default.

UART pinout
-----------

[o]ooo|JP1
 | ||`------ GND
 | |`------- RX
 | `-------- TX
 `---------- Vcc (3V3)

Installation using OEM webinterface
-----------------------------------

1. Make sure you are running OEM firmware in secondary slot
2. Install squashfs-factory.imag to primary slot by upload via http

Installation using serial interface
-----------------------------------

1. Press "a" "c" "p" during message "Enter correct key to stop autoboot"
2. Load image with "upgrade runtime <TFTP IP>:squashfs-sysupgrade.bin" command
3. Switch to primary slot with "setsys bootpartition 0"
4. Store config with "savesys"
5. Boot the image with `boota` command

Dual-boot with stock firmware using writable u-boot-env
-------------------------------------------------------

From stock to OpenWrt / primary image 1 (CLI as admin):
   - > boot system image1
   - > reboot

From OpenWrt to stock / boot image 2: (shell as root)
   - # fw_setsys bootpartition 1
   - # reboot

Debrick using serial interface
------------------------------

1. Press "a" "c" "p" during message "Enter correct key to stop autoboot"
2. Load vendor image with "upgrade runtime <TFTP IP>:LGS310xxxxx.imag"
3. switch to primary partition "setsys bootpartition 0"
4. safe config "savesys"

Further documentation
---------------------
See https://openwrt.org/toh/linksys/lgs352c

It has been developed and tested on device with v1 revision.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/16068
[Add missing 'w' in name of firmware partition]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
7 weeks agowifi-scripts: add better defaults for 6 GHz interop
Felix Fietkau [Wed, 2 Oct 2024 15:39:59 +0000 (17:39 +0200)]
wifi-scripts: add better defaults for 6 GHz interop

Indicate stationary AP and set default 6G regulatory power type to indoor

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 weeks agobase-files: set root password if present inside board.json
John Crispin [Sat, 21 Sep 2024 15:53:24 +0000 (17:53 +0200)]
base-files: set root password if present inside board.json

Add code to set plain password or put the hash into /etc/shadow.

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: add timezone to UCI during config_generate
John Crispin [Sat, 21 Sep 2024 14:19:24 +0000 (16:19 +0200)]
base-files: add timezone to UCI during config_generate

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agodropbear: add a uci-defaults script for loading authorized keys
John Crispin [Tue, 17 Sep 2024 14:58:24 +0000 (16:58 +0200)]
dropbear: add a uci-defaults script for loading authorized keys

Write the ssh authorized key to /etc/dropbear/ssh_authorized_keys if present
inside boad.json.

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agowifi-scripts: populate default wifi credentials and country code from board.json
John Crispin [Tue, 17 Sep 2024 13:10:20 +0000 (15:10 +0200)]
wifi-scripts: populate default wifi credentials and country code from board.json

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agouboot-envtools: add a board.d script to load defaults from the environment
John Crispin [Tue, 17 Sep 2024 15:30:46 +0000 (17:30 +0200)]
uboot-envtools: add a board.d script to load defaults from the environment

This allows loading default wifi credentials, passwords and ssh keys on
firstboot.

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agouboot-envtools: add fw_loadenv tool
John Crispin [Tue, 17 Sep 2024 12:36:13 +0000 (14:36 +0200)]
uboot-envtools: add fw_loadenv tool

This tool will load the uboot environment to /var/run/uboot-env/. This allows
more efficient use when accessing multiple variables.

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: execute uboot-env script before calling config_generate
John Crispin [Sun, 22 Sep 2024 07:04:55 +0000 (09:04 +0200)]
base-files: execute uboot-env script before calling config_generate

This allows /etc/board.d/* scripts to use values from the uboot environment.

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: uci-defaults: allow setting the number of MACs a radio can use
John Crispin [Sun, 22 Sep 2024 07:06:10 +0000 (09:06 +0200)]
base-files: uci-defaults: allow setting the number of MACs a radio can use

Introduce new uci-default functions:
- ucidef_set_wireless_mac_count [count]

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: uci-defaults: allow setting default timezone
John Crispin [Sat, 21 Sep 2024 14:17:17 +0000 (16:17 +0200)]
base-files: uci-defaults: allow setting default timezone

Introduce new uci-default functions:
- ucidef_set_timezone TZ

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: uci-defaults: allow setting default credentials and ssh keys
John Crispin [Sat, 14 Sep 2024 06:44:19 +0000 (08:44 +0200)]
base-files: uci-defaults: allow setting default credentials and ssh keys

Introduce new uci-default functions:
     - ucidef_set_root_password_hash [hash]
     - ucidef_set_root_password_plain [plaintext]
     - ucidef_set_ssh_authorized_key [ssh key]

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agobase-files: uci-defaults: allow setting wireless defaults
Daniel Golle [Sat, 20 Nov 2021 01:43:20 +0000 (01:43 +0000)]
base-files: uci-defaults: allow setting wireless defaults

Introduce new uci-default functions:
 - ucidef_set_wireless band ssid [encryption] [key]
 - ucidef_set_country cc

They are supposed to be used in /etc/board.d/* scripts to define
board-specific defaults for wireless.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agohostapd: send a notification via ubus when CSA completed
John Crispin [Wed, 18 Sep 2024 13:05:34 +0000 (15:05 +0200)]
hostapd: send a notification via ubus when CSA completed

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agohostapd: add ifname to generic ubus notify code
John Crispin [Wed, 18 Sep 2024 13:21:27 +0000 (15:21 +0200)]
hostapd: add ifname to generic ubus notify code

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agohostapd: add ifname and vlan_id to sta-authorized notifications
John Crispin [Wed, 18 Sep 2024 12:47:31 +0000 (14:47 +0200)]
hostapd: add ifname and vlan_id to sta-authorized notifications

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agohostapd: add the ifname to ubus events
John Crispin [Wed, 18 Sep 2024 12:43:26 +0000 (14:43 +0200)]
hostapd: add the ifname to ubus events

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agoumdns: update to latest HEAD
John Crispin [Tue, 17 Sep 2024 16:03:44 +0000 (18:03 +0200)]
umdns: update to latest HEAD

fbaca4b cache: improve update call by doing a full refresh probe
93c9036 dns: reply to A/AAAA questions for additional hostnames

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agowifi-scripts: detect and configure EHT
Janusz Dziedzic [Fri, 20 Sep 2024 17:43:32 +0000 (19:43 +0200)]
wifi-scripts: detect and configure EHT

Check if EHT/11BE supported, configure in board.json
and config/wireless.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agomt76: mark mt7996e 11BE capable
Janusz Dziedzic [Fri, 6 Sep 2024 07:49:18 +0000 (09:49 +0200)]
mt76: mark mt7996e 11BE capable

Build hostapd with 11BE support.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agowifi-scripts: mac80211.sh: enable EHT320
Janusz Dziedzic [Sun, 1 Sep 2024 10:27:54 +0000 (12:27 +0200)]
wifi-scripts: mac80211.sh: enable EHT320

For EHT320 we should also enable HE160.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agowifi-scripts: mac80211.sh: allow EHT* sets
Janusz Dziedzic [Sun, 1 Sep 2024 08:56:15 +0000 (10:56 +0200)]
wifi-scripts: mac80211.sh: allow EHT* sets

Allow to configure 80211BE.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agohostapd: fix build when 80211BE enabled
Janusz Dziedzic [Tue, 20 Aug 2024 11:22:31 +0000 (13:22 +0200)]
hostapd: fix build when 80211BE enabled

In file included from hostapd-wpad-basic-mbedtls/hostapd-2024.03.09~695277a5/src/ap/ubus.h:11,
                 from hostapd-wpad-basic-mbedtls/hostapd-2024.03.09~695277a5/src/ap/hostapd.h:21,
                 from main.c:26:
hostapd-2024.03.09~695277a5/src/ap/sta_info.h: In function 'ap_sta_is_mld':
hostapd-2024.03.09~695277a5/src/ap/sta_info.h:425:20: error: invalid use of undefined type 'struct hostapd_data'
  425 |         return hapd->conf->mld_ap && sta && sta->mld_info.mld_sta;
      |                    ^~

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agohostapd: add CONFIG_DRIVER_11BE_SUPPORT
Janusz Dziedzic [Tue, 20 Aug 2024 06:29:18 +0000 (08:29 +0200)]
hostapd: add CONFIG_DRIVER_11BE_SUPPORT

Add option to enable 802.11BE support.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
7 weeks agoucode: update to latest HEAD
John Crispin [Sun, 22 Sep 2024 08:09:41 +0000 (10:09 +0200)]
ucode: update to latest HEAD

b610860 Merge pull request #223 from jow-/nl80211-add-eht-attributes
4e0456b nl80211: add EHT mac/phy capabilities
c938ee9 Merge pull request #218 from jonasjelonek/add-ioctl
56ebeec fs: add ioctl() file method
d0f423b Merge pull request #221 from mikma/fix-getenv
86f1121 lib: test if call to getenv() destroys environ
7af80d9 lib: use copy of environ pointer in getenv()
6ea37c8 ci: bump upload-artifact to v3
26d7292 Merge pull request #214 from jow-/ucode-test-runner
fbabec4 tests: replace test runner shell script with ucode implementation
e391ef5 main: prevent invalid memory access when executing empty stdin
b391fd7 Merge pull request #211 from jow-/hwsim-support
bc13278 nl80211: support the MAC80211_HWSIM netlink protocol family
f5b5a58 nl80211: drop unused structure members from connection context
f6ea6fc nl80211: support conversion from/to struct array attributes
115a84f nl80211: gracefully handle illegal netlink error code

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agoiwinfo: update to latest HEAD
John Crispin [Sat, 21 Sep 2024 18:17:25 +0000 (20:17 +0200)]
iwinfo: update to latest HEAD

714e419 iwinfo: fix EHT mode reporting for STA interfaces
7eed433 devices: add device id for MediaTek MT7996e

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agomediatek: change the the default SUBTARGET to filogic
John Crispin [Tue, 17 Sep 2024 10:41:09 +0000 (12:41 +0200)]
mediatek: change the the default SUBTARGET to filogic

Signed-off-by: John Crispin <john@phrozen.org>
7 weeks agomac80211: do not pass a stopped vif to the driver on get_txpower
Felix Fietkau [Wed, 2 Oct 2024 10:38:32 +0000 (12:38 +0200)]
mac80211: do not pass a stopped vif to the driver on get_txpower

Fixes potential crashes in various drivers when checking the status of
interfaces that are down

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agokernel: bump 6.6 to 6.6.53
John Audia [Mon, 30 Sep 2024 19:58:56 +0000 (15:58 -0400)]
kernel: bump 6.6 to 6.6.53

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.53

All patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod
Run-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/16554
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agolantiq: backport latest upstream patches
Aleksander Jan Bajkowski [Tue, 1 Oct 2024 18:49:55 +0000 (20:49 +0200)]
lantiq: backport latest upstream patches

Backport patch that fixes memory disclosure in packet padding.
The downstream driver supports statistics, so when a packet
cannot be padded the statistics of dropped packets are incremented.
The other patches do not introduce any functional changes.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/16563
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agobmips: fix kernel panic caused by missing CBR address
Daniel González Cabanelas [Tue, 1 Oct 2024 13:45:26 +0000 (15:45 +0200)]
bmips: fix kernel panic caused by missing CBR address

The cbr-reg DTS property uses a wrong name causing the RAC kernel
panic again on BCM6358 BCM6368 boards.

Use the correct cbr-reg name property.

Fixes: 7c9644a7b5 ("bmips: backport upstreamed RAC patches")
Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16561
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agowifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump
Felix Fietkau [Tue, 1 Oct 2024 12:44:31 +0000 (14:44 +0200)]
wifi-scripts: wifi-detect.uc: skip null entries on nl80211 phy dump

This can happen on incomplete device probe

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agogeneric: backport ("net: free_netdev: exit earlier if dummy")
Robert Marko [Mon, 30 Sep 2024 10:13:42 +0000 (12:13 +0200)]
generic: backport ("net: free_netdev: exit earlier if dummy")

Currently, when removing ath11k or any other driver that uses dummy netdev
kernel will crash with:
[  365.004961] ------------[ cut here ]------------
[  365.004992] kernel BUG at net/core/dev.c:10979!
[  365.008642] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP
[  365.012898] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_inet ath11k_ahb(O) ath11k(O) pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_c
[  365.064794] CPU: 3 PID: 3896 Comm: procd Tainted: G           O       6.6.52 #0
[  365.087031] Hardware name: QNAP 301w (DT)
[  365.094058] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  365.098229] pc : free_netdev+0x164/0x1a0
[  365.104994] lr : free_netdev+0xec/0x1a0
[  365.109159] sp : ffffffc081d33b90
[  365.112718] x29: ffffffc081d33b90 x28: ffffff80039d3c00 x27: ffffff800307f000
[  365.116199] x26: ffffff800538a000 x25: ffffff8005388000 x24: ffffff800538a4c0
[  365.123317] x23: 00000000000023a4 x22: ffffff8005388f68 x21: ffffff8004e37050
[  365.130434] x20: ffffff8004e37000 x19: ffffff8004e36ee8 x18: 0000000000000152
[  365.137552] x17: 63775f357636712e x16: 3030303030646320 x15: ffffffc081436e20
[  365.144670] x14: ffffff80033f261c x13: 00000000000000d9 x12: 0000000000000002
[  365.151789] x11: 0000000000000000 x10: 00000000000008a0 x9 : ffffffc081d33980
[  365.158906] x8 : ffffff80039d4500 x7 : ffffff803fdda6c0 x6 : 0000000000000007
[  365.166025] x5 : 0000000000000000 x4 : 00000000000000c1 x3 : 00000000000001f4
[  365.173143] x2 : ffffff803fdd4b78 x1 : ffffff8004e37050 x0 : 0000000000000005
[  365.180261] Call trace:
[  365.187370]  free_netdev+0x164/0x1a0
[  365.189630]  0xffffffc079b373f0
[  365.193447]  0xffffffc079b374c0
[  365.196311]  platform_shutdown+0x24/0x34
[  365.199438]  device_shutdown+0x160/0x268
[  365.203605]  kernel_restart+0x40/0xc0
[  365.207510]  __do_sys_reboot+0x104/0x220
[  365.211070]  __arm64_sys_reboot+0x24/0x30
[  365.215063]  invoke_syscall.constprop.0+0x5c/0x108
[  365.218971]  do_el0_svc+0x40/0xc8
[  365.223655]  el0_svc+0x30/0xb8
[  365.227041]  el0t_64_sync_handler+0x120/0x12c
[  365.229995]  el0t_64_sync+0x178/0x17c
[  365.234424] Code: f94013f5 a8c37bfd d50323bf d65f03c0 (d4210000)
[  365.238072] ---[ end trace 0000000000000000 ]---

Wireless backports include alloc_netdev_dummy() backport but they dont have
the required free_netdev change first, so backport it.

Fixes: #16531
Fixes: 384d079fd876 ("mac80211: update to version 6.11")
Link: https://github.com/openwrt/openwrt/pull/16549
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agomt76: add missing eeprom for mt7992 firmware
Chukun Pan [Sun, 29 Sep 2024 15:18:26 +0000 (23:18 +0800)]
mt76: add missing eeprom for mt7992 firmware

Avoid the following errors:
[    9.219272] mt7996e 0000:01:00.0: Direct firmware load for mediatek/mt7996/mt7992_eeprom_2i5i.bin failed with error -2
[    9.229975] mt7996e 0000:01:00.0: Falling back to sysfs fallback for: mediatek/mt7996/mt7992_eeprom_2i5i.bin

Fixes: 2f7d22d ("mt76: update to Git HEAD (2024-09-29)")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
8 weeks agomac80211: reorder patches in subsys/
Felix Fietkau [Mon, 30 Sep 2024 08:06:31 +0000 (10:06 +0200)]
mac80211: reorder patches in subsys/

Close some patch numbering gaps left behind by updates

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agotools/elfutils: prevent invalid include of stack binary
Michael Pratt [Sat, 28 Sep 2024 11:06:59 +0000 (07:06 -0400)]
tools/elfutils: prevent invalid include of stack binary

In some versions of Xcode, some C++ header has an include
of the standard C++ header "stack" while "." is in the include paths
which can conflict with the binary "stack" built by elfutils.
This leads to a decode error as the binary is interpreted as text.

Add an arbitrary dependency between stack and the C++ program.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
8 weeks agomediatek: filogic: select MT7996 2+3+3 firmware
Daniel Golle [Sun, 29 Sep 2024 18:17:23 +0000 (19:17 +0100)]
mediatek: filogic: select MT7996 2+3+3 firmware

Select MT7996 2+3+3 firmware for the Adtran SmartRG SDG-8733A device
and also add it to the image for the BPi-R4 which supports both,
BE19000 (4+5+5) as well as BE14000 (2+3+3) Wi-Fi 7 modules.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 weeks agomt76: remove leftover api update patch
Felix Fietkau [Sun, 29 Sep 2024 18:16:24 +0000 (20:16 +0200)]
mt76: remove leftover api update patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agomt76: fix typo in last update
Felix Fietkau [Sun, 29 Sep 2024 18:02:41 +0000 (20:02 +0200)]
mt76: fix typo in last update

Fix broken dependency for mt7992 firmware

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agomt76: update to Git HEAD (2024-09-29)
Felix Fietkau [Sun, 29 Sep 2024 15:58:13 +0000 (17:58 +0200)]
mt76: update to Git HEAD (2024-09-29)

1231d45dcb5e wifi: mt76: mt7915: check devm_kasprintf() returned value
042082027b3f wifi: mt76: mt7921: Check devm_kasprintf() returned value
4a95c1a81eee wifi: mt76: Avoid multiple -Wflex-array-member-not-at-end warnings
5fdb1841f726 wifi: mt76: mt7925: fix a potential association failure upon resuming
eeb51b527377 wifi: mt76: mt7925: convert comma to semicolon
d4b3b302ceb9 wifi: mt76: mt7615: check devm_kasprintf() returned value
922e515bd8e0 wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc
bec8cb851d99 wifi: mt76: mt7925: replace chan config with extend txpower config for clc
d10ce9d65dac wifi: mt76: remove mt76_calculate_default_rate()
6685a2f4c217 wifi: mt76: mt7996: remove phy->monitor_vif
a2a9d9826277 wifi: mt76: do not increase mcu skb refcount if retry is not supported
059342ca6a68 wifi: mt76: move mt76_tm_policy to from testmode.h to mt76.h
8bef11443290 wifi: mac80211: inform the low level if drv_stop() is a suspend
4b16d2bfdcbd wifi: mac80211: handle color change per link
4529cddb6718 wifi: mt76: mt7996: extend flexibility of mt7996_mcu_get_eeprom()
4364571e4b2b wifi: mt76: mt7996: add support for more variants
8c86aa304ea1 wifi: mt76: mt7996: set correct background radar capability
addfbd141863 firmware: add latest mt7996 + mt7992 firmware
5ba4981f8b92 wifi: mt76: mt792x: add P2P_DEVICE support
dc32780c7fcd wifi: mt76: mt7921s: fix a potential firmware freeze during startup
7b5d653ea90e wifi: mt76: mt7925: fix off by one in mt7925_load_clc()
1e57d2da94c9 wifi: mt76: mt7615: Convert comma to semicolon
7aca94abac47 wifi: mt76: mt7915: fix slot time for 5/6GHz
e3e6d490ab90 wifi: mt76: mt7915: Fix mesh scan on MT7916 DBDC
ee693260c521 firmware: move mt7996 firmware to the right place
867accf4f4aa wifi: mt76: mt7996: Add eht radiotap tlv
7c4d6e403381 wifi: mt76: Fix EHT NSS radiotap reporting.
71c3949fa8ac wifi: mt76: mt7921: fix a potential scan no APs
61641da04c9e mt76: mt76u_vendor_request: Do not print error messages when -EPROTO
680bc70f161f wifi: mt76: mt7921: fix using incorrect group cipher after disconnection.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agoyafut: fix build on non-linux systems
Felix Fietkau [Fri, 27 Sep 2024 08:21:53 +0000 (10:21 +0200)]
yafut: fix build on non-linux systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 weeks agoramips: mtk_eth_soc: don't allocate 4 queues
Rosen Penev [Sat, 28 Sep 2024 18:47:39 +0000 (11:47 -0700)]
ramips: mtk_eth_soc: don't allocate 4 queues

This driver does not support more than 1 queue.

Fixes: ba24b94e0b8 ("ramips: use more devm in mtk_eth_soc")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
8 weeks agoscripts: config.guess: update to 2024-07-27
Robert Marko [Fri, 27 Sep 2024 21:27:17 +0000 (23:27 +0200)]
scripts: config.guess: update to 2024-07-27

This script hasn't seen an update in multiple years, update it to the
latest version provided upstream.

Both `config.guess` and `config.sub` are copied from upstream[1] and not
modified.

The full changelog is available within the upstream repository[1].

[1]: https://git.savannah.gnu.org/git/config.git

Link: https://github.com/openwrt/openwrt/pull/16536
Signed-off-by: Robert Marko <robimarko@gmail.com>
8 weeks agokernel: make 'no port node found' output a debug message
Tianling Shen [Fri, 27 Sep 2024 07:54:04 +0000 (15:54 +0800)]
kernel: make 'no port node found' output a debug message

There are cases where an unavailable port is not an error, making
this error message a false-positive. The kernel log is flooded with
the messages like:
  OF: graph: no port node found in /soc@0/bus@42000000/i2c@42530000/usb-typec@50

Silence this message by making it a debug message.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/16524
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agoCI: labeler: Add new targets
Hauke Mehrtens [Sun, 22 Sep 2024 13:45:18 +0000 (15:45 +0200)]
CI: labeler: Add new targets

Some new targets were added, but we did not add them to the labeler.
Add them now.

Link: https://github.com/openwrt/openwrt/pull/16454
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agoCI: labeler: remove bcm63xx
Hauke Mehrtens [Sun, 22 Sep 2024 13:41:32 +0000 (15:41 +0200)]
CI: labeler: remove bcm63xx

Some packages are now used by other targets, move them over

Fixes: 5cd8e037b506 ("bcm63xx: drop target")
Link: https://github.com/openwrt/openwrt/pull/16454
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 weeks agotools: fakeroot: update to 1.36
Shiji Yang [Fri, 27 Sep 2024 10:15:16 +0000 (18:15 +0800)]
tools: fakeroot: update to 1.36

The type 'id_t' check has been moved to configure.ac in upstream commit:
819063eb4d27 ("test for id_t with autoconf instead of blind typedef, fixes FTBFS on FreeBSD")

changelog:
https://salsa.debian.org/clint/fakeroot/-/blob/e4780b1aad6fae0be1868a76cc7ffa6149afa912/debian/changelog

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/16530
Signed-off-by: Nick Hainke <vincent@systemli.org>
8 weeks agobase-files: emmc: invalidate kernel image while rootfs is being written
Rodrigo Balerdi [Tue, 24 Sep 2024 06:51:43 +0000 (03:51 -0300)]
base-files: emmc: invalidate kernel image while rootfs is being written

Some setups have alternate boot actions in case the main OS fails to
boot. These can include a secondary copy of the OS, a recovery OS, a
fallback to TFTP boot, etc.

This commit invalidates the kernel image while rootfs is being written
which, if a sysupgrade is interrupted, will trigger an alternate boot
action in devices that support it. This results in safer sysupgrades.

Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com>
8 weeks agomac80211: remove outdated patches
Shiji Yang [Fri, 27 Sep 2024 01:51:22 +0000 (09:51 +0800)]
mac80211: remove outdated patches

The only supported kernel in the main branch now is version 6.6. It's
time to clean up these useless codes and patches.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
8 weeks agomac80211: fix build error on kernel 6.6
Shiji Yang [Fri, 27 Sep 2024 01:51:22 +0000 (09:51 +0800)]
mac80211: fix build error on kernel 6.6

The virtio_find_vqs() ABI has been changed since the 6.11 kernel.
Switch back to using the old ABI to fix the build error:

../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c: In function 'init_vqs':
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: array type has incomplete element type 'struct virtqueue_info'
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6637:16: error: too few arguments to function 'virtio_find_vqs'
 6637 |         return virtio_find_vqs(vdev, HWSIM_NUM_VQS,
      |                ^~~~~~~~~~~~~~~
In file included from ../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:38:
./include/linux/virtio_config.h:224:5: note: declared here
  224 | int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
      |     ^~~~~~~~~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6632:31: error: unused variable 'vqs_info' [-Werror=unused-variable]
 6632 |         struct virtqueue_info vqs_info[HWSIM_NUM_VQS] = {
      |                               ^~~~~~~~
../mac80211-regular/backports-6.11/drivers/net/wireless/virtual/mac80211_hwsim.c:6639:1: error: control reaches end of non-void function [-Werror=return-type]
 6639 | }
      | ^

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2 months agoath79: Refresh kernel patches
Mieczyslaw Nalewaj [Thu, 26 Sep 2024 19:34:07 +0000 (21:34 +0200)]
ath79: Refresh kernel patches

Make the patches apply cleanly again.

Fixes: 774badd8a840 ("kernel: fix crashes after linearizing fraglist GSO skbs")
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/16517
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agomediatek: remove "Ralink" from the target name
Felix Fietkau [Thu, 26 Sep 2024 13:04:54 +0000 (15:04 +0200)]
mediatek: remove "Ralink" from the target name

None of the supported chips have been sold under the Ralink brand.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agotools: e2fsprogs: bypass libuuid check
Rosen Penev [Wed, 25 Sep 2024 17:42:15 +0000 (10:42 -0700)]
tools: e2fsprogs: bypass libuuid check

The check is the wrong way around. It uses AC_CHECK_LIBS and then
pkg-config, probably because the latter is a second class citizen.

Just bypass it. pkg-config gets used anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agotools: util-linux: fix static libuuid pkgconf
Rosen Penev [Tue, 24 Sep 2024 20:30:20 +0000 (13:30 -0700)]
tools: util-linux: fix static libuuid pkgconf

Fixes uuid.pc usage on hosts with an older glibc.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Link: https://github.com/openwrt/openwrt/pull/16480
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agokernel: fix crashes after linearizing fraglist GSO skbs
Felix Fietkau [Thu, 26 Sep 2024 08:58:44 +0000 (10:58 +0200)]
kernel: fix crashes after linearizing fraglist GSO skbs

This fixes some corner cases triggered by enabling fraglist GRO, where some
protocols may accidentally or intentionally linearize fraglist skbs.
Previously, these skbs became unusable and segmenting them led to crashes.
With this patch, they are properly handled by passing them to skb_segment
instead of skb_segment_list.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agomac80211: update to version 6.11
Felix Fietkau [Tue, 24 Sep 2024 13:06:20 +0000 (15:06 +0200)]
mac80211: update to version 6.11

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agokernel: backport MHI patch required by an upcoming mac80211 update
Felix Fietkau [Tue, 24 Sep 2024 12:35:31 +0000 (14:35 +0200)]
kernel: backport MHI patch required by an upcoming mac80211 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agoopenssl: update download mirrors
Chukun Pan [Wed, 18 Sep 2024 15:10:16 +0000 (23:10 +0800)]
openssl: update download mirrors

New releases of openssl are only published on GitHub, and official
downloads are also redirected to GitHub. So remove the old download
mirrors (file 404), and replace the current address with https.

Link: https://openssl-library.org/source/
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/16470
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoramips: use more devm in mtk_eth_soc
Rosen Penev [Thu, 15 Aug 2024 00:50:20 +0000 (17:50 -0700)]
ramips: use more devm in mtk_eth_soc

These got added to the kernel after this driver was written.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16415
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoath79: gpio-latch-mikrotik: remove fwnode
Rosen Penev [Sun, 8 Sep 2024 00:16:42 +0000 (17:16 -0700)]
ath79: gpio-latch-mikrotik: remove fwnode

Not needed. Can just use dev.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoath79: gpio-latch-mikrotik: remove _remove
Rosen Penev [Sun, 8 Sep 2024 00:08:33 +0000 (17:08 -0700)]
ath79: gpio-latch-mikrotik: remove _remove

Not needed with devm.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoath79: gpio-latch-mikrotik: use dev_err_probe
Rosen Penev [Thu, 15 Aug 2024 01:45:55 +0000 (18:45 -0700)]
ath79: gpio-latch-mikrotik: use dev_err_probe

It automatically adds the error code at the end of the message. It also
deals with -EPROBE_DEFER automatically (doesn't output). Simpler code.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16350
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agouboot-kirkwood: fix compilation with GCC14
Rosen Penev [Wed, 18 Sep 2024 00:51:36 +0000 (17:51 -0700)]
uboot-kirkwood: fix compilation with GCC14

Missing header.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16467
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agotools: e2fsprogs: drop e2fsck patch
Robert Marko [Wed, 25 Sep 2024 12:56:12 +0000 (14:56 +0200)]
tools: e2fsprogs: drop e2fsck patch

After digging in the history of the e2fsck exit code patch, it seems like
there is no reason for us to carry this patch so lets drop it.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agotools: e2fsprogs: pass --with-crond-dir=no instead of patching
Robert Marko [Wed, 25 Sep 2024 11:31:29 +0000 (13:31 +0200)]
tools: e2fsprogs: pass --with-crond-dir=no instead of patching

Currently, e2fsprogs is being patched to avoid detecting host crond, but
instead of doing that we can simply pass --with-crond-dir=no as an
argument and drop the patch.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agotools: e2fsprogs: drop the e4defrag patch
Robert Marko [Wed, 25 Sep 2024 11:26:19 +0000 (13:26 +0200)]
tools: e2fsprogs: drop the e4defrag patch

Considering that this patch to not build e4defrag was added 12 years ago
because:
Compilation fails on older systems due to missing syscalls

I think its safe to say that enough time is passed so that whatever those
older systems were are either updated or not used anymore so lets drop
the patch.

Link: https://github.com/openwrt/openwrt/pull/16500
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: d-link: add support for dgs-1210-28p-f
Luiz Angelo Daros de Luca [Wed, 10 Jul 2024 23:20:06 +0000 (20:20 -0300)]
realtek: d-link: add support for dgs-1210-28p-f

General hardware info:
----------------------

D-Link DGS-1210-28P rev. F1 is a switch with 24 ethernet ports and 4
combo ports, all ports Gbit capable. It is based on a RTL8382 SoC
@500MHz, DRAM 128MB and 32MB flash. 24 ethernet ports are 802.3af/at PoE
capable with a total PoE power budget of 193W.

Power over Ethernet:
--------------------

The PSE hardware consists of three BCM59121 PSE chips, serving 8 ports
each. They are controlled by a Nuvoton MCU.  In order to enable PoE, the
realtek-poe package is required. It is installed by default, but
currently it requires the manual editing of /etc/config/poe. Keep in
mind that the port number assignment does not match on this switch,
alway 8 ports are in reversed order: 8-1, 16-9 and 24-17.

LEDs and Buttons:
-----------------

On stock firmware, the mode button is supposed to switch the LED
indicators of all port LEDs between Link Activity and PoE status. The
currently selected mode is visualized using the respective LEDs. PoE Max
indicates that the maximum PoE budget has been reached.  Since there is
currently no support for this behavior, these LEDs and the mode button
can be used independently.

Serial connection:
------------------
The UART for the SoC (115200 8N1) is available via unpopulated standard
0.1" pin header marked J6. Pin1 is marked with arrow and square.

Pin 1: Vcc 3.3V
Pin 2: Tx
Pin 3: Rx
Pin 4: Gnd

OEM installation from Web Interface:
------------------------------------

    1. Make sure you are booting using OEM in image 2 slot. If not,
       switch to
        image2 using the menus
        System > Firmware Information > Boot from image2
        Tools > reboot
    2. Upload image in vendor firmware via Tools > Backup / Upgrade
        Firmware > image1
    3. Toggle startup image via System > Firmware Information > Boot
       from
        image1
    4. Tools > reboot

Other installation methods not tested, but since the device shares the
board with the DGS-1210-28, the following should work:

Boot initramfs image from U-Boot:
---------------------------------

    1. Press Escape key during `Hit Esc key to stop autoboot` prompt
    2. Press CTRL+C keys to get into real U-Boot prompt
    3. Init network with `rtk network on` command
    4. Load image with `tftpboot 0x8f000000
        openwrt-rtl838x-generic-d-link_dgs-1210-28p-f-initramfs-kernel.bin`
        command
    5. Boot the image with `bootm` command

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15938
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2 months agotools/flex: respect STAGING_DIR_HOST
Daniel Golle [Sat, 6 Jul 2024 23:59:13 +0000 (00:59 +0100)]
tools/flex: respect STAGING_DIR_HOST

flex currently leaks the path of m4 as found on the build host.
While it is possible to override this using the M4 environment
variable (which we always did for autotools based builds) when
using CMake or Ninja the M4 variable is not set.
One easy fix is to make flex take STAGING_DIR_HOST into account
and expect m4 there if that variable is set in the environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 months agotfa-layerscape: fix fiptool's build
Pawel Dembicki [Tue, 24 Sep 2024 07:05:11 +0000 (09:05 +0200)]
tfa-layerscape: fix fiptool's build

Platform specified fiptool files was moved before lf-6.6.23-2.0.0 bump.
But PLAT_FIPTOOL_HELPER_MK still pointed to old location.
This cause problems with ls-ddr-phy build.

This patch fix PLAT_FIPTOOL_HELPER_MK path.

Fixes: 0ec659bd2b7e ("tfa-layerscape: Bump to lf-6.6.23-2.0.0")
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16472
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agomac80211: ath12k: add PCI_SUPPORT dependency
Janusz Dziedzic [Tue, 24 Sep 2024 10:21:52 +0000 (12:21 +0200)]
mac80211: ath12k: add PCI_SUPPORT dependency

Always depend on PCI and don't build on platforms
without PCI.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16475
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoCI: update actions/labeler to v5
Goetz Goerisch [Sat, 21 Sep 2024 20:00:33 +0000 (20:00 +0000)]
CI: update actions/labeler to v5

* Version 5 of this action updated the runtime to Node.js 20.
 All scripts are now run with Node.js 20 instead of Node.js 16
 and are affected by any breaking changes between Node.js 16 and 20.
* adapt the labeler configuration to the new format

Follow-up to #16251 this was reverted with b870c16534c05ddc94149c6ff56976d8de8a353f
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16451
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agokernel: r8126: add CONFLICT to rss variant
Chukun Pan [Mon, 16 Sep 2024 15:10:20 +0000 (23:10 +0800)]
kernel: r8126: add CONFLICT to rss variant

The rss variant should conflict with the default.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/16460
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>