<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/package/kernel, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/'/>
<updated>2026-11-26T16:25:38Z</updated>
<entry>
<title>kernel: ag71xx-legacy: load the MDIO driver before the MAC driver</title>
<updated>2026-11-26T16:25:38Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-11-26T16:25:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=82b0c292ea2ef419c1c67c14aa592de086e3f728'/>
<id>urn:sha1:82b0c292ea2ef419c1c67c14aa592de086e3f728</id>
<content type='text'>
kmod-ag71xx-legacy autoloads "ag71xx-legacy ag71xx-legacy-mdio", but
the build sorts an AutoLoad list, so the MAC driver always loads first.
Its probe populates the MDIO bus, which has no driver yet: a MAC with a
PHY on that bus defers, and a MAC on a fixed link probes first and takes
eth0.

On a RouterBOARD 922UAGS-5HPacD this swaps the ports: the SFP becomes
eth0 and the copper port eth1, and the copper PHY reads ID 0 and gets
the Generic PHY driver instead of the AR8031/AR8033 one. Built-in, the
MDIO driver is registered first and the copper port is eth0.

Move the MDIO driver into its own package that autoloads at 49, ahead
of the MAC driver at 50, and let the MAC package depend on it.

Booted as modules, the 922UAGS now names the copper port eth0 again, the
MAC no longer defers and the PHY binds to the AR8031/AR8033 driver.

Fixes: 12abb2413a5f ("ath79: mikrotik: also compile AG71XX_LEGACY as a module")
Assisted-by: Claude Opus 5.5
Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>mac80211: follow a sender whose sequence numbers went back</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-10-26T21:17:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=ce3f7a4f5dedd5db9dc9ff7099a5ac8664ffce1d'/>
<id>urn:sha1:ce3f7a4f5dedd5db9dc9ff7099a5ac8664ffce1d</id>
<content type='text'>
With firmware that runs the block-ack sessions itself (ath10k), a sender
can keep sending frames behind the receiver's reorder window without a
new session. They are acknowledged over the air and then dropped by
mac80211 as out of date, without being counted, until the sequence
numbers catch up: up to 2048 frames. Traffic waiting for answers never
gets there, so the link stays dead.

Seen between QCA988X and QCA4019 radios in an IBSS mesh under load,
with runs of frames 7-23 sequence numbers behind the window.

After 64 frames in a row behind the window, restart it at the incoming
frame (module parameter reorder_resync, 0 keeps the old behaviour and
only logs). Replays are still caught by the PN check.

Assisted-by: Claude Opus 5.5
Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>ath10k-ct: fixes for QCA4019 and wave-1 chips</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-11-17T09:54:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=9fb403f9ed79f34b77abbde86f21dcc20f73f28c'/>
<id>urn:sha1:9fb403f9ed79f34b77abbde86f21dcc20f73f28c</id>
<content type='text'>
- 990: set the coverage class on ipq40xx and qca99xx. The 10.4
  firmware takes the ack timeout in microseconds; add 3 us per
  coverage class to the 64 us default (measured on QCA4019), so long
  links work. Based on the patch by Sebastian Gottschall and William
  Wortel.
- 991: fix the record count of the tx mode switch indication, so every
  peer gets its push allowance and none is left unreachable under load.
- 992: reset a tx block-ack session the peer no longer accepts, after
  30 unicast failures in a row, so traffic to that peer recovers.
- 993: set up the peer rates again on a bandwidth change, so stations
  of a QCA4019 AP no longer stay at legacy 24 Mbps after a channel
  switch.
- 994: drop a management frame on an unknown channel without a WARN.
- 995: report only the chains in the rx chainmask (no filler chains on
  2x2 radios).
- 996: no warning for pdev params the firmware does not have.
- 997: no warning for spectral reports the firmware cut short.
- 998: take the rx ring buffers from a page_frag_cache of each ring.
  From the shared per-CPU cache, every long-lived ring buffer pinned a
  whole 32 KiB page, up to ~32 MiB per active radio that /proc/meminfo
  does not show: 128 MB boards (RB922) ran out of memory within days
  and the OOM killer took Cm2_Main and hostapd.

994-997 are from greearb/ath10k-ct pull request 238 by Christopher
Griffin: https://github.com/greearb/ath10k-ct/pull/238

Assisted-by: Claude Opus 5.5
Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>gpio-button-hotplug: Apply edge trigger flags for DT-provided interrupts</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-10-12T11:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=7422714f4769ac760a4f4b703a6c6b669cdf5885'/>
<id>urn:sha1:7422714f4769ac760a4f4b703a6c6b669cdf5885</id>
<content type='text'>
In gpio_keys_probe(), IRQF_TRIGGER_RISING and IRQF_TRIGGER_FALLING flags
were only appended to irqflags when the IRQ number was derived dynamically
from the GPIO descriptor via gpiod_to_irq().

When a button interrupt is defined directly in the Device Tree, button-&gt;irq
is already non-zero, causing the driver to skip the gpiod_to_irq() block.
As a result, irqflags retains only IRQF_ONESHOT, and devm_request_threaded_irq()
fails to configure the interrupt controller for dual-edge trigger events.

Move the edge trigger bitwise OR operation outside the conditional block so that
both rising and falling edge triggers are applied regardless of how the IRQ was
acquired.

Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>gpio-button-hotplug: Fix NULL dereference on skipped non-GPIO buttons</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-10-12T11:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=3b45bbbb5dbb72c48fa9968bbee3e57a8a504e8d'/>
<id>urn:sha1:3b45bbbb5dbb72c48fa9968bbee3e57a8a504e8d</id>
<content type='text'>
When non-GPIO buttons (such as board controller interrupt keys) are present
in the device tree, devm_fwnode_gpiod_get() returns -ENOENT. The driver logs
a skip message and continues, but leaves bdata-&gt;gpiod populated with the
ERR_PTR(-ENOENT) value rather than clearing it.

During post-probe processing in gpio_keys_probe() and gpio_keys_polled_poll(),
the check 'if (!bdata-&gt;gpiod)' evaluates to false because the pointer is an
ERR_PTR rather than NULL. The work handler is subsequently scheduled for an
incomplete entry where bdata-&gt;b was never assigned, leading to a kernel NULL
pointer dereference in gpio_keys_handle_button() when reading bdata-&gt;b-&gt;type.

Fix this by explicitly setting bdata-&gt;gpiod to NULL when skipping non-GPIO
buttons in gpio_keys_button_probe(), and updating driver routines to check
IS_ERR_OR_NULL(bdata-&gt;gpiod).

Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>mac80211: drop brcmsmac</title>
<updated>2026-11-23T08:43:36Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-10-28T20:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=dd441bca35b8a9d6f30374f98ce2280edb993c25'/>
<id>urn:sha1:dd441bca35b8a9d6f30374f98ce2280edb993c25</id>
<content type='text'>
Nothing selects kmod-brcmsmac by default. Rosen Penev reports that on
the RT-N16 it only works with a firmware whose version check is patched
by hand [1], and the bcm47xx target uses b43 for these SoCs.

Remove the driver, the option that cuts its firmware out of broadcom-wl
and the brcmsmac only regulatory patch. BCM4313 cards lose their driver,
kmod-b43 has no LCN-PHY support.

Checked with CONFIG_ALL defconfig on bcm47xx, bcm53xx and x86. There
are no new warnings, and b43, brcmfmac and brcmutil are still built.

[1] https://github.com/openwrt/openwrt/pull/26267#issuecomment-6475312956

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26267
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>mac80211: add patch assuming mfp on qca99x0 firmware</title>
<updated>2026-11-22T09:54:35Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2026-11-12T00:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=8a6b3a312a7e7118f231173666d45b03ca0f3de9'/>
<id>urn:sha1:8a6b3a312a7e7118f231173666d45b03ca0f3de9</id>
<content type='text'>
Set ATH10K_FW_FEATURE_MFP_SUPPORT despite no mfp support being
advertised by the firmware, based on exact firmware version and chip
type.

The QCA99X0 firmware in linux-firmware (10.4.1.00030-1, from around
2015), does not - unlike firmwares for similar chips - advertise the
"mfp" feature. As a result of missing mfp advertisement from firmware
side, ATH10K_FW_FEATURE_MFP_SUPPORT is not set and ath10k never sets the
PMF peer flag in WMI peer assoc for 802.11w peers.

Effect is heavily degraded throughput on the TX path (QCA99X0 as
AP -&gt; STA, capped at a fraction of the RX path), when using 802.11w,
which e.g. is a requirement for wpa3.

However, the hardware itself appears to support mfp, as indicated by
alternative firmware projects, such as ath10k-ct, which advertises mfp
for QCA99X0.

Also the original firmware appears to actually support mfp, despite not
advertising it. Just assuming mfp support from the linux side and not
relying on advertised features, results in the TX path being on par with
the RX path.

Experienced and tested on an Aruba AP-325 running OpenWrt.

Tested-on: QCA99X0 hw2.0 PCI 10.4.1.00030-1 (Aruba AP-325)
Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
Link: https://github.com/openwrt/openwrt/pull/26651
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>netfilter: drop iptables dependency from kmod-nf-ipvs</title>
<updated>2026-11-21T02:36:41Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2026-02-06T11:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=e91b8b7413a09fe962c1032e9392cdc51489e4db'/>
<id>urn:sha1:e91b8b7413a09fe962c1032e9392cdc51489e4db</id>
<content type='text'>
This dependency does not exist in the kernel and make it impossible to
build nftables-only images.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
<entry>
<title>netfilter: drop kmod-nf-ipt dependency from kmod-nft-compat</title>
<updated>2026-11-21T01:41:40Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2026-01-30T09:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=3a81d2af8f5c9ec60b4047d7437b561e2846adbb'/>
<id>urn:sha1:3a81d2af8f5c9ec60b4047d7437b561e2846adbb</id>
<content type='text'>
According to the help text in the kernel, NFT_COMPAT is required to use
x_tables extensions over the nf_tables framework.

Commit 1ebb8e3b6be8 ("netfilter: add kmod-nft-compat") claimed that this
is required by iptables-nft. Even if that is true, kmod-nft-compat
should not depend on kmod-nf-ipt, as this makes it impossible to build
nftables-only images with kmod-nft-compat enabled.

As iptables-nft depends on kmod-ipt-core, and kmod-ipt-core depends on
kmod-nf-ipt, kmod-nf-ipt will be enabled anyway if iptables-nft is
enabled.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
<entry>
<title>netfilter: add kmod-nf-xtables</title>
<updated>2026-11-21T01:41:19Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2026-01-30T11:51:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=ee0cdcee02b0b116ddad6ccbae140ac88a263fa9'/>
<id>urn:sha1:ee0cdcee02b0b116ddad6ccbae140ac88a263fa9</id>
<content type='text'>
When building nftables-only images, with all iptables related packages
disabled, NETFILTER_XTABLES is not enabled in the kernel, as it is
enabled by kmod-ipt-core and kmod-nf-ipt.

This makes it impossible to build e.g. kmod-nf-nathelper-rtsp from the
xtables-addon package in the packages feed, without enabling unneeded
packages.

Add a new package kmod-nf-xtables that packages both the kernel modules
that are built when NETFILTER_XTABLES is enabled in the kernel, and add
dependencies to the new package in kmod-ipt-core, kmod-nf-ipt and
kmod-nft-compat.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
</feed>
