Commit Graph
5921 Commits
Author SHA1 Message Date
John Audia 9ea2ee3974 kernel: bump 6.18 to 6.18.59
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.59

Removed upstreamed:
  linux/generic/backport-6.18/950-v7.3-cgroup-fix-spurious-SIGKILL-of-CLONE_INTO_CGROUP-children.patch[1]
  linux/bcm27xx/patches-6.18/0783-drm-vc4-hdmi-Move-packet-RAM-enable-to-pm_runtime.patch[2]
  linux/qualcommax/patches-6.18/0092-v7.3-pinctrl-qcom-ipq5018-add-missing-pwm3-function-on-gpio13.patch[3]

All other patches automatically rebased via update_kernel.sh

Linux 6.18.59 makes ICE select LIBETH_XDP, so add kmod-libeth-xdp
to package libeth_xdp.ko and make kmod-ice depend on it.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=2f9dd8214d4213cac785e4e4441538053cce52fb
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=6b03e354526f6bad60ed3a7f08fec8b7d29d2f27
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.59&id=e76e6284de2ba2c0da9aa21ab4e17a885186a4b2

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/25925
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-10-31 23:24:46 +01:00
John Audia fb7bd8633b kernel: bump 6.18 to 6.18.57
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.18.57

Removed upstreamed:
  linux/generic/backport-6.18/948-v7.1-net-dsa-mt7530-fix-.get_stats64-sleeping-in-atomic-c.patch[1]
  linux/rockchip/patches-6.18/045-15-v7.0-media-v4l2-mem2mem-Add-a-kref-to-the-v4l2_m2m_dev-structure.patch[2]
  linux/rockchip/patches-6.18/045-16-v7.0-media-verisilicon-Avoid-G2-bus-error-while-decoding-H.264-an.patch[3]
  linux/rockchip/patches-6.18/045-43-v7.0-media-verisilicon-Fix-kernel-panic-due-to-__initconst-misuse.patch[4]

Manually rebased:
  linux/generic/backport-6.18/706-03-v7.2-netfilter-flowtable-bail-out-if-forward-path-cannot-b.patch
  linux/generic/pending-6.18/151-net-bridge-do-not-send-arp-replies-if-src-and-target.patch
  linux/bcm27xx/patches-6.18/0319-drivers-iommu-Add-BCM2712-IOMMU.patch
  linux/bcm27xx/patches-6.18/0351-brcmfmac-Fix-interoperating-DPP-and-other-encryption.patch

All other patches automatically rebased via update_kernel.sh

mac80211: 6.18.57 backports struct sockaddr_unsized[5], so add
160-backports-sockaddr_unsized-is-in-6.18.57.patch to only define it
in backports for older kernels.

kernel: 6.18.57 makes rpcsec_gss_krb5 use crypto/krb5[6], so add
kmod-crypto-krb5 and make kmod-fs-nfs-common-rpcsec depend on it.

ltq-ifxos: 6.18.57 converts proto_ops bind() to sockaddr_unsized[5],
so cast the bind address accordingly on 6.18.57+.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=af98611ad109efcbfe3ba68eb10124ebc3257224
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=6c5d98f24f99596c0075c05d17b099d298f0246b
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=5133ef7c893c2c3aee7dd12503dc480de9dbfbb5
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=07861e84b766c6db8014bc34138f3be4a62aad2a
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=946dc5835c8fbe5eb5ceb13f5717778911ff4586
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.57&id=08efba8d6256053ac1f2fabd2b7b2ac60ab97aae

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Co-developed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/25925
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-10-31 23:24:46 +01:00
Jonas Jelonek 2968547158 kernel: i2c: load PCA954x muxes during early boot
PCA954x muxes can provide the I2C adapters used by SFP cages. Load the
module during early boot so these suppliers are available for preinit
networking and failsafe instead of waiting for normal module autoload.

Link: https://github.com/openwrt/openwrt/pull/26243
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-30 22:04:42 +01:00
Jonas Jelonek 41ab3e1f38 kernel: add GPIO seven-segment display module package
Package the GPIO seven-segment driver together with the line-display
core, enable the required AUXDISPLAY menu and autoload the driver.

Add generic kernel configuration defaults for the options exposed by
AUXDISPLAY to avoid interactive configuration prompts. Disable unused
display drivers and custom boot messages while retaining the upstream
character LCD backlight default.

Link: https://github.com/openwrt/openwrt/pull/26243
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-30 22:04:40 +01:00
Daniel Golle 9115e6ee48 kernel: modules: add kmod-phy-ax88796b-rust package
Package ax88796b_rust, the Rust reference driver for the Asix PHYs used
by the AX88772 USB Ethernet adapters. It is equivalent to the C driver
of kmod-phy-ax88796b and provides that package, so kmod-usb-net-asix
works with either; the C driver stays the default variant.

Upstream builds only one of the two drivers. A hack patch makes
AX88796B_RUST_PHY a module of its own so that both are built. The Rust
PHY abstractions are part of the kernel's Rust crate in vmlinux and
need a built-in PHY library, so the package enables
RUST_PHYLIB_ABSTRACTIONS and PHYLIB=y. Answer the options these make
visible in the generic configuration.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-30 12:06:08 +02:00
Georgi Valkov ca454c00b6 netfilter: fix file clash during install of kmod-iptables
A regression in #21078 caused ip_tables.ko and x_tables.ko to be installed
by both kmod-nf-ipt and kmod-iptables, which results in build errors with
linux-6.18:

 * check_data_file_clashes: Package kmod-nf-ipt wants to install file .../ip_tables.ko
	But that file is already provided by package  * kmod-iptables
 * check_data_file_clashes: Package kmod-nf-ipt wants to install file .../x_tables.ko

Fix: drop kmod-iptables and move its flags:
- CONFIG_IP_NF_IPTABLES_LEGACY     -> kmod-nf-ipt
- CONFIG_NETFILTER_XTABLES_LEGACY  -> kmod-nf-ipt
- CONFIG_IP6_NF_IPTABLES_LEGACY    -> kmod-nf-ipt6
- CONFIG_BRIDGE_NF_EBTABLES_LEGACY -> kmod-ebtables

Also drop CONFIG_NETFILTER_XTABLES, because it is already present in
KCONFIG_NF_IPT.

Fixes: 94c7f4a25f ("packages: 6.18: update modules files")
Fixes: https://github.com/openwrt/openwrt/issues/23630
Link: https://github.com/openwrt/openwrt/pull/21078

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23631
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-29 15:12:04 +01:00
Rosen PenevandClaude Opus 5.5 f7d6ee72e5 mt76: fix mt76x02 mac_work and mt76x2u SuperSpeed TX stalls
Add two pending fixes:

- mt76x0 and mt76x2 never requeue mac_work after a channel change, so
  frames with lost TX status reports are never timed out. Their AQL
  airtime and socket memory stay held, stalling senders for up to 30 s.
- At SuperSpeed the MT7612U wedges its bulk OUT path on TX frames
  longer than 3072 bytes, which A-MSDUs of two full-size subframes
  reach. Cap the A-MSDU length in that case.

Link: https://github.com/openwrt/mt76/issues/405
Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26147
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-29 15:08:38 +01:00
Julius Bairaktaris 83384b861f mac80211: backport TXQ round and aqm debugfs fixes
ieee80211_txq_schedule_start() resets the TXQ scheduling round number
when an AC is over its airtime limit. A txq that was served in an
earlier round with the same number is then skipped in the next round.
The aqm debugfs file also prints fq_overlimit and fq_overmemory
swapped. Both fixes are in wireless-next. Patches 320, 360 and 412 are
refreshed for the new offsets.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 20:41:01 +01:00
Felix Fietkau d38d376b49 mt76: update to Git HEAD (2026-10-28)
5e697c3982d7 wifi: mt76: mt7603: validate MCU response length
19901c7f3cc9 wifi: mt76: mt7915: validate MCU response lengths
0720e321afee wifi: mt76: mt7915: validate MURU statistics response
bbb18d7844e9 wifi: mt76: mt7915: validate EEPROM response length
7264a8a110c4 wifi: mt76: mt7915: validate free-block response length
8c534f59b4a9 wifi: mt76: mt7915: validate channel MIB response length
fa6b2367e281 wifi: mt76: mt7915: validate RX rate response length
07f248fe9830 wifi: mt76: mt7915: validate WED TX statistics response
f76151f8d04f wifi: mt76: mt7915: validate RF register response length
0d218afcbddb wifi: mt76: mt76x02: keep A-MSDU subframe buffers at even addresses
558c6aee6891 wifi: mt76: mt76x02: sync the group key PN before a restart
db39c8d4d6d9 wifi: mt76: fix NULL dereference reading napi_threaded in debugfs
6dcc00bb44c5 wifi: mt76: mt7925: deduplicate MLD support code in mt7925_mac_link_sta_add
859b54fabce0 wifi: mt76: mt7925: do not reset WPDMA before stopping NAPI on reset
2bb98336d469 wifi: mt76: mt7996: clamp VHT/HE beamforming NSS
d2712ce4ed84 wifi: mt76: mt7996: clamp EHT beamforming NSS
d973f6ec9a3d wifi: mt76: mt7921: validate MCU response lengths
1618141fbd29 wifi: mt76: mt7921: validate EEPROM response length
1fe8a56213ce wifi: mt76: mt7921: validate TX power response length
759e140bc76a wifi: mt76: mt7921: validate testmode query response
e06a746261e0 wifi: mt76: mt7925: validate MCU response lengths
ae20af438c32 wifi: mt76: mt7925: validate register query response
ad5b05038a34 wifi: mt76: mt7925: validate EEPROM response length
d0a80080eed9 wifi: mt76: mt7925: validate temperature response length
06deecb57b96 wifi: mt76: mt7925: validate TX power response length
a73af3f06db4 wifi: mt76: mt7925: validate radio status response
487aa470cada wifi: mt76: mt792x: bound firmware release-info parsing
a13a2be996e3 wifi: mt76: mt7996: validate MCU response lengths
e0670ce95e40 wifi: mt76: mt7996: validate EEPROM response lengths
8f71d66ad74e wifi: mt76: mt7996: validate free-block response length
90e7c0007d7f wifi: mt76: mt7996: validate channel MIB response length
e1e90bbe363c wifi: mt76: mt7996: validate temperature response length
f99c91725472 wifi: mt76: mt7996: validate RF register response length
8127e3ff88ff wifi: mt76: mt76x02: keep stations registered during watchdog recovery
247c4d987c39 wifi: mt76: honour the more-data flag when releasing buffered frames
f75d4f05974d wifi: mt76: mt76x02: serialise wcid drop mask updates
4af6beb07b88 wifi: mt76: mt76x02: clear the wcid drop mask for all powersave responses
304aa9be68dd wifi: mt76: mt7996: stop radios after add failure
1295868b85d3 wifi: mt76: mt7921: validate CLC event length
04bf44cd2cb5 wifi: mt76: mt7921: validate NIC capability TLV payload lengths
3c0806b4dfae wifi: mt76: mt7925: validate NIC capability TLV lengths
cb8537008b58 wifi: mt76: mt7925: free the MCU event when linearising fails
cd0c5fdf01b3 wifi: mt76: mt7996: validate radar, thermal and WED RRO event lengths
ba86572bd0d4 wifi: mt76: connac: validate the RAM firmware region table
3ecd7e69dbc9 wifi: mt76: mt7996: validate the RAM firmware region table
2871dc0e2b72 wifi: mt76: mt7925: validate CLC firmware regions and records
35d9c038be88 wifi: mt76: connac: validate the ROM patch section table
8356461aee79 wifi: mt76: mt7996: validate the ROM patch section table
d4c9872bbd9c wifi: mt76: mt792x: use mt76_connac2_fw_check()
8a8c857798f5 wifi: mt76: mt7996: add scan dwell time hw cap
451f47376280 wifi: mt76: mt7996: take the link of an 802.3 frame from its station
b4dd3d4f6d27 wifi: mt76: mt7996: do not update beacons while CSA is active
d343a85da6fe wifi: mt76: mt7996: only remove a BMC STA_REC that was added
46ed43b905d5 wifi: mt76: mt7996: pass the puncturing bitmap to the firmware
49892ef42067 wifi: mt76: abort a scan when the chanctx changes
1507666f034f wifi: mt76: set the channel again when the chanctx puncturing changes
ab907b18ddc9 wifi: mt76: mt7996: advertise preamble puncturing support
d55666f37245 wifi: mt76: mt7996: keep scan and ROC links out of the MLD group
fde06f678c30 wifi: mt76: mt7996: factor the vif link teardown out of remove_interface
25dbe41cf7c9 wifi: mt76: mt7996: destroy station links before the MLD group is freed
fecc93e7f1ed wifi: mt76: mt7996: send MLD link operations for an AP MLD only
78084e732159 wifi: mt76: mt7996: set up a vif link again on another radio
1e1ca91c2b70 wifi: mt76: mt7996: describe an MLD peer with the PEER_MLD command
43008928840b wifi: mt76: mt7915: honour the valid flag in efuse block reads
a60235641e8f wifi: mt76: mt7996: skip MLD address translation for encap offload frames
1152058aee06 wifi: mt76: mt7921: honour the valid flag in efuse block reads
2356292ae38f wifi: mt76: mt7915: upload the CSA beacon only once
801f6a53f2f1 wifi: mt76: read the chanctx of a link once
47665de41b5d wifi: mt76: restart the beacon monitor of a link that gets a chanctx again
9c4ada3a37eb wifi: mt76: publish the beacon monitor interval after its timestamp
ba30cf5adb2b wifi: mt76: mt7996: keep rx header translation off while a monitor runs
6611f0126ccd wifi: mt76: mt7996: apply monitor mode again after a full reset
59b149d24e27 wifi: mt76: check the RX PN of an MLD peer once per peer
d8d24d7cbf5d wifi: mt76: mt7996: send no MLD_SETUP when station links only go away
46b67e5b7c49 wifi: mt76: mt7996: keep a unicast management frame on its MLO link
d7e3bee841a5 wifi: mt76: mt7996: pass the default DSCP map to the firmware
6428114db709 wifi: mt76: mt7996: write the TXD of stream classified 802.3 frames
2b926d2d7776 wifi: mt76: mt7996: support SCS and MSCS
7f2f67eebb54 wifi: mt76: mt7996: implement the flow offload flush op
eb9e675d4cfc wifi: mt76: mt7996: implement the flow offload idle op
238538d7d1cf wifi: mt76: answer the flow priority query
f349872e5149 firmware: update mt7990, mt7992 and mt7996 firmware to 202607
0936617dc529 wifi: mt76: mt7996: write the TXD of 802.3 frames with an explicit UP

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 15:56:09 +01:00
Felix Fietkau b4bfe07ab1 mac80211: do not send an off-channel frame after the ROC expired
If the wiphy lock is held for longer than a hardware ROC lasts, the
driver reports the expiry before mac80211 handles the start of the ROC,
and mac80211 then sends the pending frame on the off-channel queue.
mac80211_hwsim warns "TX w/o channel - queue = 4" for it. Report such a
frame as not acknowledged instead of sending it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 0ef61fcd02 mac80211: wait for RCU only when a vif link is removed
Add subsys patch 479. A Link Reconfiguration add of a 4-address station
updates the links of its AP VLAN (patch 461), and that update waits
for an RCU grace period although it removes no link. The wait comes
before hostapd sends the Link Reconfiguration Response, which a
mac80211 station expects within 100 ms.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 3101d77a48 mac80211: set the negotiated TID-to-link mapping of an AP MLD station
An AP MLD that negotiates a TID-to-link mapping with an associated
non-AP MLD has no way to pass the mapping to the driver:
NL80211_CMD_SET_TID_TO_LINK_MAPPING serves a non-AP MLD interface only.

Accept the command on an AP interface with the MLD address of the
station, where the driver declares the new extended feature
NL80211_EXT_FEATURE_AP_NEG_TTLM, and pass the mapping to the driver with
a new driver op. Based on the MediaTek feed patches 0084 and 0085 by
Michael-CY Lee, reworked onto the upstream command in place of a
private one.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 8e852c9962 mac80211: keep the priority of an 802.3 frame for the slow path
While the aggregation session of a TID is not operational, the encap
offload path hands a frame to the slow path, which classifies it a
second time. A priority of 256 to 263, which user space can set from a
DSCP mapping of its own, is then lost, and the first frames of a new
flow go out with the TID of the DSCP.
Give the slow path the priority the frame had on entry.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 9e76276c80 mac80211: mark frames whose priority does not follow the DSCP
A device that encapsulates 802.3 frames in firmware takes the TID from
the DSCP with a mapping of its own (mt7996 SDO), so a priority that
user space sets from a DSCP mapping of its own, a VLAN PCP or a QoS
map does not reach the air. Add
patch 475, which marks these frames with IEEE80211_TX_CTRL_EXPLICIT_UP,
so that the driver can hand their priority to the device. A frame
without a DSCP is expected at priority 0.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 9983e8caab mac80211: remove the stations of an AP VLAN before its links
An AP VLAN of an AP MLD that went down with its station on it, by
ifdown or by removing the radio, made ieee80211_vif_update_links()
warn at its station flush, because ieee80211_do_stop() cleared the
links of the VLAN before it flushed its stations.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau e4d0856463 mac80211: fix suspicious RCU usage in expected throughput estimation
sta_estimate_expected_throughput() reads the channel context with
rcu_dereference(), but its caller sta_set_sinfo() runs under the wiphy
mutex without the RCU read lock. With PROVE_RCU, a station dump or a
station removal of a station without an expected throughput from rate
control warns:

  WARNING: suspicious RCU usage
  net/mac80211/sta_info.c:3120 suspicious rcu_dereference_check() usage!
   sta_set_sinfo+0xb5f/0xb70
   __sta_info_destroy_part2+0x10f/0x250
   __sta_info_flush+0x198/0x250
   ieee80211_set_disassoc+0x701/0x960

Use sdata_dereference(), since every caller of sta_set_sinfo() holds the
wiphy mutex, like the other per-station reads in sta_set_sinfo().

Fixes: f10732fb56 ("mac80211: estimate expected throughput if not provided by driver/rc")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau ae11dd3390 mac80211: follow the station links on its 4-address AP VLAN
The 4-address AP VLAN of a Multi-AP backhaul MLD held only the links
that the station had when it moved to the VLAN. A Link Reconfiguration
add of another link then failed in ieee80211_add_link_station() with
-EINVAL, so hostapd answered status 17. Add the link to the VLAN at the
add and remove it at the delete.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau d179d224ce mac80211: compute the links of each AP VLAN on its own
At an AP link change, ieee80211_update_apvlan_links() carried the link
mask of one 4-address AP VLAN over to the next. With two Multi-AP
backhaul MLDs on different link sets, the second VLAN lost links that
its station holds, and mac80211 removed them from the station.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 12094c0280 mac80211: free the link data of a refused link reconfiguration
A Multi-Link Reconfiguration whose every added link the AP refuses left
reconf.add_links_data allocated in the station, because
ieee80211_ml_reconf_reset() returns early once added_links and
removed_links are 0. Each later authentication took its link addresses
from it, so a link outside the refused request authenticated from
00:00:00:00:00:00, which hostapd drops ("Invalid SA").

Add subsys/459, which also resets the reconfiguration state while
add_links_data is set. Upstream wireless has the same code.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 0ac9421585 mac80211: send MLO group frames only on links with a running AP
A stopped link of an AP MLD stays in active_links until hostapd removes
it, and mac80211 sent a copy of each group addressed frame there. On
hwsim this warns "TX w/o channel"; mt7996 queues the copy with the TXD of
the stopped link. Patch 458 skips links without a beacon, and drops a
copy that waits in the TXQ while the AP of its link stops.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau b521b6040e mac80211: use the AP interface for link changes of a VLAN station
drv_change_sta_links() checked the AP VLAN of a 4-address station in
place of its AP, so adding or removing a link of such a non-AP MLD
warned once, returned -EIO and left the driver unaware of the change.
hostapd keeps the station on its VLAN while it removes one of its links
since the WDS interface fix (patch 830).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 9abf356d31 mac80211: let a driver count the AP Removal Timer of a link removal
An AP MLD announces the removal of an affiliated AP with the AP Removal
Timer of a Reconfiguration Multi-Link element in the Beacon frames of
all its links. hostapd counts the timer with a beacon update of every
link at each beacon interval, and on mt7996 each such update keeps the
Critical Update flag set past the DTIM Beacon.

Patch 455 adds NL80211_EXT_FEATURE_AP_REMOVAL_TIMER_OFFLOAD, with which
the driver counts the timer in the Beacon frames itself, and reports the
expiry with NL80211_CMD_LINKS_REMOVED on the AP interface. The links
stay until user space removes them.

Patch 456 adds ieee80211_links_removed(), with which a driver reports
the expiry from any context. The teardown of the interface cancels the
work that sends the report.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau b48d951535 mac80211: remove the frames of a stopped AP VLAN from station TXQs
hostapd moves a 4-address station back to the BSS interface before it
deletes the station's AP VLAN. The frames queued through the VLAN stay
in the station's TXQs, and their dequeue after the VLAN stop
dereferences the NULL sdata->bss in ieee80211_tx_dequeue(). On mt7996
this oopses in the mt76 TX worker.

Remove the frames of the stopping VLAN from every queue of the BSS, and
wait for an RCU grace period before sdata->bss is cleared. Remove them
again after the grace period, for the fragments that a dequeue in
progress queued.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau a2c4153011 mac80211: apply the HE OBSS PD settings of a running AP's beacon update
nl80211 parsed NL80211_ATTR_HE_OBSS_PD at the start of an AP alone, and
mac80211 signalled BSS_CHANGED_HE_OBSS_PD there alone, so new Spatial
Reuse settings reached the driver only through a restart of the AP,
which drops its stations. hostapd already sends the attribute with a
beacon update, and mt7996 applies BSS_CHANGED_HE_OBSS_PD at any time.

Parse the attribute in nl80211_set_beacon(), and apply settings that
differ in ieee80211_change_beacon().

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau b80e388b05 mac80211: do not check the Beacon of another BSS with an AP's BIGTK
An AP checked a protected OBSS Beacon with its own BIGTK, the MIC
failed, and the Beacon was dropped before it could be reported to the
beacon registration. hostapd learned no neighbour that runs beacon
protection, and its BSS Color never entered the colours in use.

Let such a Beacon go on without a key, so that mac80211 reports it.
Beacons of the AP's own links and Beacons on other interface types are
checked as before.

The software BSS Color collision check runs on the same path, so a
protected neighbour with the AP's own colour now raises a collision, as
an unprotected one does.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 0547b912e9 kernel: mtk_eth_soc: query the wireless driver for the TID of flows
Query the wireless driver for the user priority of a flow as the PPE
entry binds and store the answer in the WINFO TID field, unbind the
entries of a station that the wireless driver flushes, and report how
long ago the PPE last hit the entries that match a flow.

An AP learns the priority of an MSCS flow from its uplink frames, and
once the PPE forwards the uplink of a flow, those frames no longer
reach mac80211. Record the station of an entry that the WED receive
path binds, and unbind those entries as well at a flush, so that the
next uplink frame passes mac80211 again. The ppe_check op of WED takes
the station index for this.

The flow key of the wireless driver describes the frames to the
station, so the match callback learns whether an entry carries the
frames of the station. Such an entry is described by its tuple before
NAT, without the MAC addresses of a routed entry, and mt7996 compares
it in the mirrored direction. mt7996 also asks the WED device of the
receive path for the idle time.

Add the flow key and flow description types of the SCS series to the
kernel cfg80211 header, since the PPE driver builds against it while
the wireless driver reads the copy in the mac80211 package. The two
copies are separate definitions, so assert the value of each flow
field, the offset of each field and the size of each structure in both
of them (797-00 and mac80211 subsys patch 483). The PPE code of this
tree keeps L2 subflows in l2_list and clears them with a set_state
flag.

mt76: backport the WED users of the new ops from the mt76 tree. They
implement the flow_prio, flow_flush and flow_idle ops, and pass the
station index to ppe_check, which the WED change requires for mt7915
and mt7996 to build.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau 9665b69513 mac80211: add SCS and MSCS support
Add the SCS and MSCS series: the TCLAS and flow parsers, the SCS
evaluator, the QoS Characteristics element, the nl80211 commands, the
rule storage and the classification of transmitted MSDUs in mac80211,
the MSCS learning on receive, the sta_set_scs driver op, the debugfs
files and the hwsim implementation.

mac80211 marks a frame whose priority an SCS or MSCS rule set with
IEEE80211_TX_CTRL_STREAM_CLASSIFIED, so that a driver can hand that
priority to a device that classifies 802.3 frames itself. hwsim
advertises the SCS Traffic Description Support of EHT for its AP
interfaces, so that a non-AP EHT STA sends it a QoS Characteristics
element.

For hardware that forwards flows on behalf of mac80211, add the
undecided SCS verdict, the DSCP to user priority helper, the flow
priority query, the per flow flush op and the idle query. A driver uses
them to apply the SCS and MSCS rules of a station to those flows and to
keep a learned MSCS entry alive while the hardware forwards its flow.
The flow priority query refuses a flow with an undecided verdict, also
when a rule matched. While the hardware forwards the uplink of an MSCS
flow, its frames do not reach the learn path. When the hardware keeps a
learned entry alive, mac80211 therefore also drops the flow from the
hardware, so that its next uplink frames reach mac80211 and a priority
that the station changes is learned within one stream timeout.

For a 4-address peer, such as a backhaul station, a rule that names
only the peer applies to every host behind it. Patches 465 to 467 add
an optional client address to both descriptors, apply an SCS
descriptor with a client only to MSDUs with that destination address,
and keep a list of up to 16 MSCS per station. An MSCS is identified by
its client and by a flag for an MSCS that the AP configures on behalf
of the network, and the MSCS that the station requested comes first.
The client does not scope the SCSID: the SCSIDs of a peer stay one
space, which the layer that configures the descriptors assigns.
Requests without a client or the flag keep their meaning.

The new nl80211 commands and attributes follow the local advertised
TID-to-link mapping additions, so their numbers differ from the
wireless tree. User space must take them from this copy of nl80211.h.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:20 +00:00
Felix Fietkau c8f1f84c06 mac80211: add the advertised TID-to-link mapping of an AP MLD
An AP MLD disables a link for all associated non-AP MLDs with an
advertised TID-to-link mapping (IEEE 802.11be-2024 35.3.7.2.4). cfg80211
handles the negotiated mapping of a station only.

Patch 426 adds NL80211_CMD_ADV_TTLM_REQUEST, with which user space
requests a mapping of all TIDs to a set of links for a duration, the
events of its steps and NL80211_EXT_FEATURE_AP_ADV_TTLM, which needs
NL80211_EXT_FEATURE_BEACON_CRIT_UPDATE as well. cfg80211 keeps one
mapping per AP MLD: the reply and every event carry the cookie of the
request, a request while a mapping is active fails with -EBUSY, and the
stop of any link of the AP MLD cancels the mapping in the driver and
sends ADV_TTLM_ENDED, after which no event of the mapping follows. Each
link of the mapping must beacon, the default mapping is refused, and the
switch time is 1 to 65535 TUs. STARTED and ESTABLISHED carry the
CLOCK_BOOTTIME of the TBTT of each step, so that user space can count
the Expected Duration from the TBTT. The driver keeps the Expected
Duration field of the element in its beacon template current.

Patch 427 passes the request and the cancel to the driver, and its
events with their cookie to user space. A driver whose device cannot
stop a mapping refuses new requests with -EBUSY until the mapping of
the device ends. A driver that gets its Beacon frames from mac80211
sets the Expected Duration with ieee80211_adv_ttlm_duration_set(), and
mac80211 writes the field before it protects the frame.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:19 +00:00
Felix Fietkau 6b4c37295a mac80211: end the Critical Update flag after the DTIM Beacon
IEEE 802.11be-2024 35.3.10 sets the Critical Update flag until and
including the next DTIM Beacon on the link. hostapd does not see the
DTIM Count, so it cannot end the flag there.

Patch 424 adds NL80211_EXT_FEATURE_BEACON_CRIT_UPDATE, the attribute
NL80211_ATTR_CRIT_UPDATE_ID and the per-link event
NL80211_CMD_CRIT_UPDATE_DONE. User space gives each critical update an
ID in the beacon of START_AP and SET_BEACON, and the event carries the
ID of the update it ends, so that the event of an earlier update cannot
end a later one. A new ID starts an update also after the previous one
has ended.

Patch 425 ends the flag after the DTIM Beacon: mac80211 does it for
Beacon frames from ieee80211_beacon_get(), and a driver with a beacon
template reports it with ieee80211_crit_update_done(), which takes the
ID that ieee80211_beacon_get_template() returns in
ieee80211_mutable_offsets. Each beacon holds the ID of its critical
update, so that a Beacon frame from a beacon that an update replaces
meanwhile neither ends nor clears the flag of the new update. mac80211
does not track the flag of a nontransmitted BSSID. cfg80211_beacon_dup()
copies the ID, so that the beacon after a channel switch or a colour
change keeps the ID that user space gave for it.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:19 +00:00
Felix Fietkau dafcf8122b mac80211: count the DTIM of each AP link
All links of an AP MLD counted the DTIM in one counter, so with
ieee80211_beacon_get() the DTIM Count in the Beacon frames of a link
did not follow the TBTTs of that link.

Add patch 423, which keeps the count per link. The debugfs file
dtim_count moves to the link directory of an AP MLD and stays in the
netdev directory of an AP without links.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:19 +00:00
Felix Fietkau 257c0f6bd5 mac80211, hostapd: add the nl80211 UAPI numbers of wireless-next
Later patches of both packages add nl80211 commands, attributes and
extended features, and mac80211_hwsim attributes. Upstream added
entries at the same places since the 7.2 release, for example
NL80211_CMD_UPDATE_BEACON and HWSIM_ATTR_NO_MONITOR.

Add the commands, attributes and extended features of wireless-next
commit 2c50cd5d10e8 to the nl80211 header of both packages, and
HWSIM_ATTR_NO_MONITOR to the hwsim header, so that the local additions
take the numbers after the upstream ones. Other changes of the
upstream header are left out, since the 7.2 code depends on them, for
example on the number of station flags.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:19 +00:00
Felix Fietkau 87ba6ac898 mac80211: backport the encap offload TX fixes
For an 802.3 encap offload frame, ieee80211_tx_dequeue() and
ieee80211_tx_h_select_key() read the Ethernet header as an 802.11
header. The unauthorised port check then depends on bits of the
destination address, so frames that a station's TXQ holds when the
station loses its AUTHORIZED flag still go out, also after its
Disassociation. Key selection does not drop a frame of a station that
uses encryption but has no key, and does not drop a frame with a
tainted key.

Backport the upstream series that fixes this:
- d59b9bf7df49 ("wifi: mac80211: fix unauthorised port check for encap offload")
- 0e80db08668b ("wifi: mac80211: fix key selection for encap offload frames")
- a48daf145fed ("wifi: mac80211: don't send encap offload frames unencrypted")
- c8ddbe1e8c43 ("wifi: mac80211: drop encap offload frames with a tainted key")
- 5f2530a4df8e ("mac80211: tx: Use info->flags in ieee80211_tx_h_select_key()")

5f2530a4df8e corrects the flag field that 0e80db08668b tests; without
it, encap offload frames take the 802.11 key selection path. Refresh
the patches whose hunks moved.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-10-28 14:46:19 +00:00
Josef Schlehofer 2462519a7f mac80211: realtek: relax 8822B 2.4 GHz ETSI EDCCA threshold
Under ETSI, rtw88 sets the RTL8822B EDCCA threshold to min(IGI, 36),
at most about -74 dBm. On a Turris 1.x with a TP-Link Archer T4U v3
(RTL8812BU) in USB 3 mode as a 2.4 GHz AP under CZ, in-band energy,
mostly from the adapter's own USB 3 link, kept IGI at 0x2a and the
threshold at 36. The AP was not seen in any of 5 scans, and the
driver reported "failed to get tx report from firmware".

Add the pending upstream patch that uses the normal threshold,
max(IGI + 8, 48), on 2.4 GHz under ETSI, capped at 50 (nominally
-60 dBm), and keeps the existing rule on 5 GHz and in JP. With it,
the AP was seen in 4 of 5 scans on the same port and boot (16 of 19
across repeated runs), with no TX report failures. Only the line
numbers are adapted to backports 7.2.

Pending upstream, submitted to rtw-next and acked by Ping-Ke Shih:
https://lore.kernel.org/linux-wireless/20261011204509.46062-1-pepe.schlehofer@gmail.com/

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25836
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-10-26 13:38:47 +01:00
Josef Schlehofer a40fd94a3f mac80211: realtek: download rsvd page synchronously on USB
In AP mode, rtw88 downloads the reserved page, which holds the beacon,
and then polls BCN_VALID. Over USB the download only queues the URB, so
the poll can run while the beacon is still on the bus and time out, in
bursts when the beacon changes often, such as when stations associate
and disassociate (lwfinger/rtw88#451):

    rtw_8822bu: error beacon valid
    rtw_8822bu: failed to download drv rsvd page

Add v5 of the rtw88 patch. It waits for that URB in a new
rtw_usb_write_port_sync() and kills it if it does not complete within
5 s, as usb_bulk_msg() does, but keeps URB_ZERO_PACKET. This fixes the
use-after-free that Ping-Ke Shih found in v3, where the completion
handler could run after the waiter had freed its context on timeout.
Only the line numbers and one context line differ from rtw-next.

v4 was tested with backports 7.2 on a Turris 1.x with a TP-Link Archer
T4U v3 (RTL8812BU, handled by rtw_8822bu) as a 2.4 GHz AP over USB 2 and
USB 3 and as a 5 GHz AP over USB 3. The AP came up after each of 15
restarts, and no "error beacon valid", "failed to download drv rsvd
page" or USB write error was logged during them or 7 beacon changes. No
station was associated, and the builds without the patch did not log
these errors either, so this shows no regression; lwfinger/rtw88#451
itself was not reproduced. v5 only reorders declarations, drops an
initializer and rewords a comment.

Pending upstream, submitted to rtw-next and acked by Ping-Ke Shih:
https://lore.kernel.org/linux-wireless/20261013033737.6761-1-pepe.schlehofer@gmail.com/

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25837
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-10-26 13:37:43 +01:00
Sander van Deijck 313889ee5c netfilter: remove nf-log6
Since Linux 5.13, IPv4 and IPv6 packet logging are handled by
nf_log_syslog, which is part of kmod-nf-log. nf_log_ipv4, nf_log_ipv6
and nf_log_common no longer exist, so kmod-nf-log6 is an empty package.

Remove it, and drop the entries for the old modules from
include/netfilter.mk. CONFIG_NF_LOG_IPV4 and CONFIG_NF_LOG_IPV6 are
backwards-compatibility options that only select NF_LOG_SYSLOG, which
kmod-nf-log already enables.

CONFIG_NF_LOG_IPV6 was only configured through the KCONFIG of
kmod-nf-log6. Add it to the generic config as not set, next to
CONFIG_NF_LOG_IPV4, as it would otherwise be left unconfigured when
nf_tables is enabled and abort the kernel configuration. It is still
enabled when selected by NETFILTER_XT_TARGET_LOG for ip6tables.

kmod-nf-ipt6 now depends on kmod-nf-log directly, which it previously
got through kmod-nf-log6.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26067
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 15:32:43 +02:00
Sander van Deijck 64691b599d ltq-ptm: remove AmazonSE variant
kmod-ltq-ptm-ase has been marked BROKEN since 2017 because it fails to
compile (bd523d4573 "ltq-ptm: mark AmazonSE support as broken"), and
nobody has fixed it since. No device selects it; AmazonSE devices use
the ATM driver (kmod-ltq-atm-ase) for ADSL.

Remove the package, its kbuild block, the AmazonSE-only sources and the
CONFIG_AMAZON_SE branches in the shared code. The danube, ar9 and vr9
variants are built exactly as before, so PKG_RELEASE is left unchanged.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26085
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 15:31:31 +02:00
Sander van Deijck ce5398da63 kernel: gpio-nct5104d: drop code for kernels before 6.17
The gpio_chip set() callback returns int since Linux 6.17, and
6.18 is the only kernel left. Remove the version checks and keep only
the int variant.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26086
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 15:30:15 +02:00
James Buren 8793b8c181 gpio-nct5104d: switch to dynamic gpio allocation
The kernel complains about this module using a static GPIO base address
when it is inserted, calling it a deprecated feature. This commit switches
the GPIO base address to -1 for all instances of struct gpio_chip, which
is what enables dynamically allocated GPIO base addresses, the feature
intended to replace the static allocation that was previously used.

Furthermore, each GPIO bank was also given a new label that allows a
specific bank to be referenced via a unique label since the static base
address is no longer usable to identify a specific bank. This brings this
module into line with how the new GPIO subsystem exposes GPIO providers to
userspace and the rest of the kernel.

Consequently, this means that existing userspace software will break if
they were using this module. The GPIO of this module can still be accessed
via the ioctl APIs for gpiochip devices, and also the libgpiod userspace
library and tools that were written for this new GPIO API.

The legacy sysfs GPIO interface is still usable, as long as you look up the
new dynamic GPIO base address that is exposed in this module's sysfs entries.
All this can be found under /sys/class/gpio. You just need to look up the
gpiochip you are using by its label, extract its base address, add your line
number offset to it, and you can export it like was previously done.

Signed-off-by: James Buren <braewoods+mgh@braewoods.net>
Link: https://github.com/openwrt/openwrt/pull/25923
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 13:03:38 +02:00
Sander van Deijck 3b8d54e530 ltq-vmmc: drop references to removed lantiq subtargets
The lantiq falcon-stable and ar9 subtargets were removed in 2012, in
commit 7d638fbb2f ("Drop 2.6.32 support") and
commit 3dac521a49 ("remove 3.3 and 3.6").

Drop TARGET_lantiq_falcon_stable from the FALC-ON device dependency,
and remove the commented-out AR9 device entry that referred to
TARGET_lantiq_ar9.

Neither symbol can be set, so there is no functional change.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26110
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 13:00:55 +02:00
Sander van Deijck bcfb04cd6c treewide: drop references to removed bcm63xx target
The bcm63xx target was removed in commit 5cd8e037b5 ("bcm63xx: drop
target"), but a few references to TARGET_bcm63xx remained:

- bcm63xx-cfe: listed bcm63xx next to bcm4908 and bmips
- kmod-ssb and the b43 SSB bus option: excluded on bcm63xx

The SSB exclusions existed because bcm63xx built SSB into the kernel
(CONFIG_SSB=y). bmips, which replaces bcm63xx, does not, so the
exclusions are dropped rather than moved to bmips.

TARGET_bcm63xx can no longer be set, so there is no functional change.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26110
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 13:00:55 +02:00
Daniel Schwierzeck 7aaf3cc208 kernel: sound: add support for Airoha AN7581 with Wolfson Audio WM8960
Support for sound on Airoha AN7581 is currently enabled as built-in
driver in the Airoha kernel default config. But the majority of Airoha-based boards
don't need sound support. Thus sound support should be optional.

Follow the similar MediaTek MT7986 example and add kmod packages for the
AN7581 SoC with the Wolfson Audio WM8960 codec.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24266
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 11:31:47 +02:00
Daniel Schwierzeck 49d2296988 kernel: sound: fix kmod-sound-core not being auto-selected
The AddDepends/sound macro used a bare kmod-sound-core dependency,
which generates a Kconfig 'depends on' instead of 'select'. This
means kmod-sound-core is never automatically enabled, breaking
the entire sound module dependency chain.

Change the dependency to a select (+kmod-sound-core) so that
kmod-sound-core is automatically pulled in when any sound module
package is enabled.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24266
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-23 11:31:47 +02:00
Daniel Golle d014acb494 mac80211: backport fix for roaming out of WED/WO offloaded AP
Backport upstream commit 3ae37eafd366 ("netfilter: flowtable: restore
ieee80211 forward path"), queued for Linux 7.3, which should fix roaming
of a WiFi client out of an AP provided by a local radio with WED/WO
hardware flow offloading enabled.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-10-22 17:43:36 +01:00
Sander van Deijck b1a2334c49 mac80211: ralink: drop config for removed rt2400/rt2500 drivers
The rt2400-pci, rt2500-pci and rt2500-usb packages were removed, but
their config_package lines were left behind. They can never be selected.

Fixes: a06e023b4e ("mac80211: remove old legacy legacy drivers")
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26063
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-10-21 18:50:23 +02:00
Sander van Deijck dbf68ebca8 kernel: kmod-crypto-sha1: package libsha1.ko
On kernel 6.18 the SHA-1 implementations live in lib/crypto/libsha1,
which crypto/sha1.ko depends on. It is usually built in (e.g. selected
by IPv6), but when it ends up as a module it was not packaged, so
sha1.ko and SCTP could not be loaded. Add it, like libsha256.ko and
libsha512.ko for the other SHA packages.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26052
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 18:22:12 +02:00
Sander van Deijck 1557444f9f treewide: drop LINUX_6_18 conditions
All targets use kernel 6.18, so LINUX_6_18 is always set. Make the
conditional dependencies and autoload entries unconditional and drop
the @LINUX_6_18 requirements.

Also drop snd-hda-codec-realtek and snd-hda-codec-cirrus from the HDA
codec autoload lists; these 6.12 modules were split up and no longer
exist on 6.18.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26052
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 18:22:12 +02:00
Sander van Deijck 1ca53fffae kernel: drop @lt6.18/@ge6.18 version filters
All targets use kernel 6.18, so drop the version filters from the kmod
definitions: remove items only used before 6.18 and strip the @ge6.18
suffix from the others. Also remove the crypto-md5 octeon/powerpc
variants, which only contained 6.12 modules.

The generated package metadata is unchanged.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26052
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 18:22:12 +02:00
Sander van Deijck 94eb0d7a09 kernel: kmod-sctp: update for kernel 6.18
Kernel 6.18 converted SCTP to the crypto library: cookie and AUTH HMACs
use the SHA-1/SHA-256 library functions, and the only cookie
authentication methods left are HMAC-SHA256 and none. The MD5/SHA1
cookie options and SCTP_DBG_MSG no longer exist, and the crypto API is
no longer used.

Drop the stale options and explicitly select the upstream default
HMAC-SHA256. The previous configuration already ended up with that
default, as none of the options it set exist any more. The cookie is
generated and verified by the same endpoint, so this does not affect
interoperability.

Also drop the kmod-crypto-md5 and kmod-crypto-hmac dependencies, which
are no longer needed.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25965
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 10:19:04 +02:00
Sander van Deijck 8d3ef6d76b kernel: kmod-stmmac-core: fix CONFIG_DWMAC_DWC_QOS_ETH typo
The symbol was listed as CONFIG_CONFIG_DWMAC_DWC_QOS_ETH, so the
intended override never took effect. Fix the doubled prefix.

No functional change: kmod-stmmac-core is only available on armsr,
loongarch64 and x86_64, where CONFIG_DWMAC_DWC_QOS_ETH is already
disabled in the generic kernel config.

Fixes: 1816e53062 ("armsr: Move kmod-stmmac-core to common place")
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25965
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 10:19:04 +02:00
Sander van Deijck 452b35cf4e kernel: drop stale KCONFIG symbols from kmod definitions
Remove KCONFIG symbols that no longer exist in kernel 6.18 from the kmod
definitions. Some were renamed and the new symbol is already listed in
the same package (e.g. CRYPTO_GF128MUL -> CRYPTO_LIB_GF128MUL,
USB_YEALINK -> INPUT_YEALINK, MEDIA_RC_SUPPORT -> RC_CORE). The others
belong to options and drivers that were removed upstream (e.g. CAN_LEDS,
E1000_NAPI, NF_FLOW_TABLE_HW, the Keyspan firmware options).

The generated package metadata is unchanged apart from the
Kernel-Config field of the affected packages.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/25965
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-10-20 10:19:04 +02:00