The Cortex-A53 cores of IPQ807x, IPQ60xx and IPQ50xx implement the ARMv8
Crypto Extensions; /proc/cpuinfo reports "aes pmull sha1 sha2" on all
three. SHA-1 and SHA-256 use them through the library arch backends, but
AES and GHASH run on aes-generic and ghash-generic, so IPsec, mac80211
software crypto and every other in-kernel AES user is bound to the C
code.
Package the arm64 CE drivers the way the arm CE GHASH module and the
former arm64 CE SHA modules are packaged, as aarch64-ce variants of the
kmods they accelerate, and use them for qualcommax:
- kmod-crypto-ctr: aes-ce-cipher and aes-ce-blk, the AES cipher and its
ECB/CBC/CTR/XTS modes. kmod-crypto-ccm and kmod-crypto-gcm both
depend on kmod-crypto-ctr.
- kmod-crypto-ccm: aes-ce-ccm, which links against both modules above.
- kmod-crypto-ghash: ghash-ce, which registers gcm(aes) and
rfc4106(gcm(aes)).
The AES drivers check the AES hwcap at load and register nothing
without it; the GHASH driver registers gcm(aes) only with PMULL and a
NEON ghash otherwise.
On a Xiaomi AX3600 (IPQ8071A), ESP in transport mode terminated on the
router, one TCP stream, median of 3 runs of 20 s, router receive/send:
rfc4106(gcm(aes)) 120/106 -> 374/314 Mbit/s
cbc(aes) + hmac(sha256) 146/126 -> 321/264 Mbit/s
rfc4309(ccm(aes)) 94/83 -> 356/287 Mbit/s
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/26632
Signed-off-by: Robert Marko <robimarko@gmail.com>
brcmfmac is built from the mac80211 backports source, so bcm27xx
kernel patches do not affect kmod-brcmfmac.
Move eight bcm27xx brcmfmac patches unchanged to the backports patch
set as 870-07 through 870-14, preserving their application order.
These cover logging, 802.1X, feature detection, external SAE, CYW
device identification and management frame IDs.
Remove four target patches whose changes are covered as follows:
- 0169: OTP country-code handling is already in 870-02.
- 0175: the power-save delay is already in 870-03. Also carry over
its brcmf_info logging change, which was missing from that copy.
- 0351: the DPP changes are already in 870-05, which additionally
contains P2P fixes. Keep those existing fixes.
- 0550: the 43456 CLM firmware declaration is already in 870-06.
The moved patches now affect the shared brcmfmac package, including
the CYW mapping for SDIO IDs 43430 and 4345 on non-bcm27xx targets.
Bump PKG_RELEASE so the newly applied driver changes reach users.
Link: https://github.com/openwrt/openwrt/pull/26731
Signed-off-by: Nick Hainke <nick.hainke@posteo.de>
A device that counts the AP Removal Timer can put another count on air
than the beacon of the removal named: mt7996 times the removal in whole
seconds and its firmware writes the count of that time. hostapd then
timed the removal from a count that the stations do not see.
Add NL80211_CMD_AP_REMOVAL_TIMER_STARTED with the count on air, the TSF
and the CLOCK_BOOTTIME of the removal TBTT of each removed link, and
ieee80211_ap_removal_timer_started() for the driver. mac80211_hwsim
reports the count of the template for each link whose removal TBTT a
Beacon frame anchors, also where one frame anchors several links.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
A driver that takes the AP Removal Timer of each new beacon as a new
start keeps the beacons it had when an offloaded removal started and
drops later changes without an error, which user space does not see.
Add IEEE80211_HW_AP_REMOVAL_BEACON_HOLD. For a driver that sets it,
mac80211 refuses a beacon change, the start of a link, a channel switch
and a colour change of the AP MLD with -EBUSY until the driver reports
the expiry, so user space sees the hold in the error of the request.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211_hwsim uploads CCMP and GCMP keys with
IEEE80211_KEY_FLAG_RESERVE_TAILROOM and encrypts each frame in software
from mac80211_hwsim_tx(). __ieee80211_xmit_fast() resizes the frame
without encryption tailroom, so a frame whose tailroom is shorter than
the MIC hits the check in ccmp_encrypt_skb() or gcmp_encrypt_skb() and
is dropped:
WARNING: net/mac80211/wpa.c:462 at ccmp_encrypt_skb.isra.0+0x298/0x2b0
ieee80211_crypto_ccmp_encrypt+0x3b/0x60
ieee80211_encrypt_tx_skb+0x9e/0x130
mac80211_hwsim_tx+0x7b8/0xb40
...
__ieee80211_xmit_fast+0x237/0x3c0
ieee80211_xmit_fast+0x181/0x1c0
A locally sent IPv6 UDP datagram keeps only the slack of its allocation
as tailroom, so mDNS over an MLD backhaul station loses datagrams this
way.
Backport commit 94ae426f03b7 ("wifi: mac80211: handle missing tailroom
in SW crypto") from wireless-next: software crypto expands a short tail
instead of dropping the frame. Refresh the context of its ieee80211_i.h
hunk for 7.2, where IEEE80211_ENCRYPT_TAILROOM is 18, and the line
numbers of the later patches that change ieee80211_i.h.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Some devices report the TX airtime of a station in batches, some time
after the TX status of its frames, for example from a firmware counter
that the driver reads at a fixed interval. ieee80211_sta_deficit()
subtracts the estimate of the pending frames from the deficit, and the
TX status of a frame drops its estimate. Between the TX status and the
next report, the airtime of a completed frame is thus in neither, and
the scheduler gives such a station more than its share.
Add a hardware flag for such a driver. With it, the TX status moves the
estimate of a frame into a counter of completed airtime per station and
AC, which the deficit also subtracts, and
ieee80211_sta_register_airtime() clears that counter when it charges the
reported airtime. The AQL limits still read the pending estimate alone,
as a completed frame holds no space in the device queue. The counter of
an AC drops only at a report, so the driver must report every station
at each interval, also with an airtime of 0.
Show the counter in the aql file of the station debugfs.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
On a Profile-2 backhaul link with a Primary VLAN ID (multi_ap_vlanid),
the EAPOL frames must carry a C-Tag of that VLAN.
mac80211 now takes ethertype 0x8100 with the control port type inside
on the control port TX, and takes tagged EAPOL frames of a station while
its port is closed. hostapd sends every EAPOL-Key frame to a Profile-2
or later backhaul station tagged where multi_ap_vlanid is set. A driver
without the control port for TX and RX refuses the send, since the
tagged reply reaches hostapd over the control port only. wpa_supplicant
answers in the form of the frame it received.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
A Multi-AP backhaul with traffic separation can carry EAPOL frames with
a C-Tag, and the receiver must take both forms. mac80211 dropped a
tagged frame on an unauthorised port and passed it to the bridge on an
authorised one, and hostapd rejected the ethertype.
mac80211 now hands such a frame on a 4-address link to the control port
over nl80211, and nl80211_control_port_frame() removes the tag and
reports its TCI on EVENT_EAPOL_RX. Other tagged frames stay subject to
the port. The documentation of NL80211_CMD_CONTROL_PORT_FRAME describes
the tagged form of the event.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211_hwsim creates the debugfs file dfs_simulate_radar only for a
radio without channel contexts, so a radio with MLO or several radios
per wiphy has no radar trigger. Create it on every radio. With channel
contexts, the written value is the frequency in MHz of the primary
channel of a context, and only that context reports the radar. A value
that matches no context, or that does not fit in 32 bits, is refused
with -EINVAL. A radio without channel contexts keeps the old behaviour.
The lookup of the context, which the incumbent signal file shares,
copies the chandef of the context, since the context can go once the
iterator drops the RCU read lock. The incumbent signal write read the
chandef after that before.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
hostapd counts the AP Removal Timer on the host and sets the beacons at
each beacon interval, so a host delay repeats a count over successive
Beacon frames and the catch-up skips counts (IEEE 802.11be-2024
35.3.6.3 requires a decrement by 1 in each subsequent Beacon frame).
Declare NL80211_EXT_FEATURE_AP_REMOVAL_TIMER_OFFLOAD and count the timer
per TBTT in mac80211_hwsim, before the driver protects the frame.
A removed link can send no Beacon frames, where user space stopped its
BSS before or during the countdown. A device counts the timer from the
template and reports the expiry from its own timer, so anchor the
removal of such a link at the Beacon frame of a partner that announces
it, and report its expiry at the TBTT of that partner (patch 510).
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Take the BIGTK of an AP interface as a hardware key and protect each
Beacon frame with ieee80211_encrypt_tx_skb() just before it is sent, so
that the driver can change a Beacon frame after ieee80211_beacon_get()
and the BIP MIC still covers it. The fields that hwsim writes now, the
Timestamp and the Power Management bit, are masked out of the MIC. The
first field that the MIC covers is the AP Removal Timer of patch 492.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211_hwsim accepts an SCS descriptor with an uplink traffic
description, but sends nothing that serves the stream. A device does
that in firmware (mt7996 hands the QoS Characteristics element to its
scheduler), and 802.11be 35.17 has the AP facilitate the uplink frames
within the service interval with Basic Trigger frames. Add patch 482,
which sends a Basic Trigger frame for each accepted uplink stream at its
Minimum Service Interval, on each link of the peer that the TX of other
frames to the peer can use: an active link that is not in power save and
that no TID-to-link mapping disables.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211_hwsim declares TID-To-Link Mapping Negotiation Support for its
AP interface type, but picks the link of a frame to a non-AP MLD without
regard to a negotiated mapping. Send no frame to the station on a link
to which no TID maps in either direction, and each QoS Data or
BlockAckReq frame only on a link that the downlink mapping gives for its
TID. Declare NL80211_EXT_FEATURE_AP_NEG_TTLM.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211_hwsim implements no adv_ttlm_request() operation and declares
neither NL80211_EXT_FEATURE_AP_ADV_TTLM nor
NL80211_EXT_FEATURE_BEACON_CRIT_UPDATE. hostapd thus refuses its ubus
ttlm_advertise on a simulated AP MLD.
Add the operation for the MLO radios and declare both features: a
DTIM-aligned start, the STARTED, ESTABLISHED and ENDED steps, the
countdown of the Expected Duration in the Beacon frames, and no TX on a
link outside the mapping. A request for an AP MLD with a nontransmitted
BSSID is refused.
hwsim passes the remaining Expected Duration to mac80211 with
ieee80211_adv_ttlm_duration_set() of patch 427 before it gets the
Beacon frame, so that mac80211 writes the field before it protects the
frame.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
HWSIM_CMD_GET_RADIO never reports HWSIM_ATTR_MULTI_RADIO, while the
notification of a new radio does, since commit d2601e34a102
("wifi: mac80211_hwsim: add support for multi-radio wiphy").
Add patch 430, which reports the flag when the wiphy has wiphy radios.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Every hwsim wiphy registers the 2.4, 5, 6 GHz and S1G bands, so a
device with one single-band wiphy per radio cannot be modelled: each
phy lists the channels of all bands, and wifi-scripts assigns every phy
its highest band, 6 GHz.
Add patch 429 with the bands module parameter and the HWSIM_ATTR_BANDS
attribute for HWSIM_CMD_NEW_RADIO, a bitmap of enum nl80211_band. Only
the bands in the bitmap are registered. Without the attribute, all
bands are registered as before.
The attribute takes the number after HWSIM_ATTR_RADIOS of patch 389.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
hwsim reports survey data only for scanned channels, with a fixed busy
time of one eighth of the dwell time, so the channel utilisation of an
operating channel does not follow its traffic.
Add patch 428, which counts the airtime of each frame sent and received
per channel, and reports one in-use survey entry for each operating
channel with busy, TX and RX time. The entry replaces the scan entry of
that channel, and the other scan entries stay for ACS.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
A multi-radio hwsim wiphy has one wiphy radio per band, so user space
that assigns channels to the two 5 GHz radios of tri-band hardware
cannot be tested on hwsim.
Add patch 389. HWSIM_ATTR_RADIOS of HWSIM_CMD_NEW_RADIO takes the wiphy
radios as nested frequency ranges in the format of
NL80211_ATTR_WIPHY_RADIOS. hwsim disables the channels that no radio
accepts, also after each regulatory update. GET_RADIO and the new radio
notification report the radios of every multi-radio wiphy. Without the
attribute, hwsim is unchanged.
The attribute takes the number after HWSIM_ATTR_NO_MONITOR of
wireless-next. Refresh the hwsim patches that the new patch overlaps.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mac80211 counts the airtime of a station per AC, not per link, but
sta_set_link_sinfo() reports that sum as the duration of each link, and
cfg80211_sta_set_mld_sinfo() adds the link durations to the station
value. nl80211 thus reports (1 + links) times the registered airtime
for an MLO station, twice for a non-MLD station of an AP MLD, and each
link claims the airtime of all links.
Leave the link durations to a driver that fills them in its
.link_sta_statistics. Such a driver had its link durations counted twice
in the same way, since sta_set_sinfo() fills the station duration with
the registered airtime, which holds every link. Where mac80211 fills
the station duration itself, take the link durations that the driver
filled out of it, so that the sum is the registered airtime.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
On an MLD interface, ieee80211_rx_for_interface() resolves a frame that
no link station matches to the MLO station of its MLD address. On a link
that the station does not hold, the frame is then dropped. A non-AP MLD
that scans the channel of another link of its AP MLD sends its Probe
Requests from its MLD address, so the AP MLD does not answer them.
Resolve the station only by a link address there, as wireless-next
commit 6d531b9af16e ("wifi: mac80211: rework RX packet handling") does,
without the rest of that rework. Drop the patch with a backports release
that holds that commit.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Since commit 06d6af4e1223 ("wifi: mac80211: flush STA queues on
unauthorization"), _sta_info_move_state() calls synchronize_net() when a
station loses AUTHORIZED on a driver with a set_key op, so that the
flush after it also covers frames that concurrent TX still queues.
NL80211_CMD_SET_STATION does not hold the RTNL, so the wait is a full
RCU grace period. Each SET_STATION that clears the authorized flag
blocks the caller for that time, once per station.
A driver without a flush or flush_sta op gets no flush, as
ieee80211_flush_queues() returns at once. The wait then protects
nothing: key removal waits for concurrent TX by itself, in
ieee80211_key_free() and in __sta_info_destroy() between the two parts
of the station destruction.
Only wait where the driver can flush.
Fixes: 06d6af4e1223 ("wifi: mac80211: flush STA queues on unauthorization")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
With two or more monitors, or with a monitor up that does not take the
frame, ieee80211_rx_monitor() passed a frame that should_drop_frame()
rejects on to the RX path. Free it after the monitors received it, as
the branch for no monitor does.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
cfg80211_mlme_check_mlo_compat() compares the whole MLD Capabilities And
Operations field of the association link and of each other link. The
Maximum Number Of Simultaneous Links subfield of an AP MLD changes when
the AP MLD adds affiliated APs. A Beacon does not replace the elements
of a BSS entry that came from a Probe Response, so entries of one AP MLD
can keep different values. The association then fails with "link MLD
capabilities/ops mismatch".
Ignore that subfield in the compare, like the Recommended Max
Simultaneous Links subfield of the Extended MLD Capabilities. Nothing on
the association path reads it from a BSS entry: mac80211 takes the field
from the Association Response.
Fixes: ccb964b4ab16 ("wifi: cfg80211: validate MLO connections better")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Since fast-rx handles A-MSDUs, ieee80211_invoke_fast_rx() returns after
__ieee80211_rx_h_amsdu() and does not reach the station stats update.
The signal values followed when that update moved into
ieee80211_rx_8023(). An A-MSDU on the fast path thus updates no packet,
byte, fragment, last_rx, last_rate or signal value of the station, and a
station that sends mostly A-MSDUs shows almost no rx packets. Only the
MSDU and netdev counters stay right, since ieee80211_deliver_skb()
updates them for each subframe. A driver with rx decap offload gets here
when a monitor interface disables the offload.
Update the station stats for the A-MSDU before it is split, once for
each MPDU, like the slow path. The split consumes the skb that holds the
rx status. The MSDU counter stays in ieee80211_rx_8023() for frames that
do not pass ieee80211_deliver_skb().
Fixes: 24bba078eca0 ("mac80211: support A-MSDU in fast-rx")
Fixes: 80a915ec4427 ("mac80211: add rx decapsulation offload support")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ieee80211_tu_to_usec() wraps on a 32-bit system above 4194303 TU. The
delay of an AP removal (Beacon interval times AP Removal Timer) and the
CSA timeout of a station (Beacon interval times Channel Switch Count) can
both exceed that, so the link removal or the channel switch then runs
early. Convert both delays to ktime in 64 bits.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
If an AP MLD announces the removal of two links one Beacon interval or
more apart, the station can drop only the later link. The same happens
where the AP MLD also removes an AP that the station has no link to. The
earlier link stays on the old channel with no AP to serve it, until the
next association. ieee80211_ml_reconfiguration() reads a delay of 0 as
unset, overwrites the pending links with those of the newest element, and
cancels them where an element names no link of the station.
Take the minimum over all named links and accumulate the pending links
until the work has run. A pending link that the element no longer names
was removed by the AP MLD, so the work then runs at once.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ieee80211_do_open() counts the flags of every monitor interface in
local->fif_* and local->tx_mntrs, but ieee80211_do_stop() takes them back
only for a monitor that is neither active nor on a NO_VIRTUAL_MONITOR
driver. For an active monitor, and for each monitor on a
NO_VIRTUAL_MONITOR driver such as mt7996, the counts stay up after the
monitor is closed, until the module reloads. mt7996 then keeps passing
FCS-failed frames, control frames and frames of other BSSes, and mac80211
keeps passing each TX status to ieee80211_tx_monitor().
Backport commit feb3a036d1cd ("wifi: mac80211: fix monitor filter
refcount leak") from wireless-next.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Where the station's request carried a TTLM element and the AP MLD
advertises no established TTLM, the element in the Association
Response suggests a preferred mapping, and the default mapping applies
(IEEE 802.11be-2024 35.3.7.2.3). mac80211 applied it as the advertised
mapping, or failed the association for a suggestion that maps TIDs to
different links. Keep the default mapping then.
The decision comes from a scan result, which can be older than an
established mapping. Apply such a mapping from a Beacon frame where the
station still uses the default mapping.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ieee80211_assoc_success() made the association link dormant when the
TTLM of the Association Response disabled it, but left it active with
no BSS. The next Beacon frame on it gave a NULL dereference in
ieee80211_rx_mgmt_beacon(), for example with an AP MLD that advertises
an established TTLM onto another link. Apply such a mapping after the
association as a pending switch through the TTLM work.
Set conf->bss of each accepted link at the association, also of a
dormant one, since nothing sets it when a mapping later activates that
link. Clear a rejected link from the dormant links too, since a dormant
link outside the valid links makes ieee80211_vif_set_links() drop all
active links with a WARN.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ieee80211_reconfig() called ieee80211_assign_chanctx() and, for an MLD,
drv_change_vif_links() for each running interface, AP VLANs included,
which never reach the driver. The first hardware restart after boot with
an AP VLAN up, such as an mt7996 full recovery with a 4-address station,
thus gave a check-sdata-in-driver warning. Skip AP VLANs in that loop.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
The original backport of ath12k thermal support from 7.1 per d85a332831
("mac80211: ath12k: backport thermal sensor support") only included
thermal monitoring as the throttling piece was not yet implemented.
With the move to backports based on 7.2 the relevant functionality is
now in place, so update the verbiage to match ath10k and ath11k in this
regard.
Also, update the Kconfig hunk in the patch to use tabs rather than
spaces.
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/26727
Signed-off-by: Robert Marko <robimarko@gmail.com>
Backport fixes from mainline and ath-next that backports 7.2 does not
carry yet.
mac80211 and cfg80211 (patches/subsys):
485 3412e9a80078 keep paired old chanctx alive
486 437f3727b4fd count only matching reservations in reserved switch
(both: use-after-free when an in-place channel context
reservation frees the old context early)
487 67a9e80c3ca2 drain PS delivery work during station teardown
488 e588e83e5c7a shut down RX BA session timer on teardown
(both: use-after-free while an AP removes a station)
489 5e4f3509793b drop oversized fragments to avoid extra_len overflow
(a peer's fragments can overflow the u16 extra_len and crash the
kernel in skb_put() where mac80211 defragments)
490 9eda41e32263 fix RTS threshold setting for single-radio PHY
(the threshold did not reach the driver)
ath11k (patches/ath11k):
954 e56c9d429ba0 fix unbalanced IRQ enable/disable during
suspend/resume (fixes f7a74e131d3f, carried here as 951)
955 9e15ccad0877 reject short management RX frames
956 8ab38bbac022 fix resource leak on error in ext IRQ setup
All nine are refreshed to apply after the existing patches with no
fuzz or offset. Bump PKG_RELEASE.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Christopher Griffin <christophergriffin05@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26654
Signed-off-by: Robert Marko <robimarko@gmail.com>
Touchscreens and touchpads that follow Microsoft's HID multitouch
protocol need hid-multitouch to be switched into their multitouch input
mode and to have every contact reported in its own slot. Without it
hid-generic binds them, and only a single contact gets through.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Package the Panfrost DRM driver for ARM Mali Midgard (T6xx, T7xx,
T8xx) and Bifrost (G3x, G5x, G7x) GPUs, covering the pre-CSF
Rockchip SoCs such as the RK3399 and RK3566. The driver loads no
GPU firmware, so the package only needs the GPU scheduler and the
GEM shmem helper modules.
The package is limited to rockchip/armv8, as the armv7 subtarget
builds only RV1126 boards, which have no Mali GPU. Panfrost selects
WANT_DEV_COREDUMP, which would build the device coredump mechanism
into the kernel; the armv8 kernel configuration disallows it
instead, which keeps the built-in kernel the same with or without
the package. Panfrost then frees a dump it collects.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
kmod-drm-imx-hdmi shipped dw-hdmi.ko and dw-hdmi-ahb-audio.ko itself,
which kmod-drm-dw-hdmi ships as well, so the i.MX and the Rockchip
packages of the same transmitter conflict. The AHB audio interface
becomes kmod-drm-dw-hdmi-ahb-audio, and kmod-drm-imx-hdmi depends on it
and on kmod-drm-dw-hdmi, keeping only the i.MX glue. The I2S audio
option goes with kmod-drm-dw-hdmi-i2s-audio, which ships its module.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Boards with the Synopsys DesignWare HDMI transmitter fed by an I2S
controller, such as the RK3568 NanoPi R5C, describe their HDMI sound
card with the transmitter as its codec. Its DAI comes from the I2S
audio driver, so without it the card never probes and HDMI stays
silent. Package dw-hdmi-i2s-audio as kmod-drm-dw-hdmi-i2s-audio.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
backports-7.2 predates these ath11k fixes, merged upstream from July
to October 2026:
12b09e478aa7 cap out-of-range rx MCS instead of leaving bogus rate
9ef9dd30058c Avoid buffer overread in ath11k_wmi_tlv_op_rx()
6fe2dddf59bb Correctly copy the hint BSSID in WMI scan request
f8729a40ebcc validate regulatory capability phy_id
208d7fdb8597 fix overreads in
ath11k_wmi_process_csa_switch_count_event()
0293be2212d3 fix leak in ath11k_service_ready_ext_event()
1a7bcf5324c8 fix NULL dereference in ahb remove when QMI init
incomplete
1d8e73163ef9 unregister PM notifier on QMI init failure path
6132d70d0890 Fix possible memory leak in ath11k_dp_srng_setup()
c7555d47b1d0 fix locking problem in ath11k_dp_rx_tid_del_func()
52953d149ab4 modify null check logic in ath11k_ce_rx_post_pipe()
820b8cff81c7 cleanup arsta in ath11k_mac_peer_cleanup_all()
7e0ad05ebc72 reset ar->num_stations on hardware start
64828f091c7d fix reg_info_store leak in
ath11k_service_ready_ext_event()
170404d5e976 read wiphy regd under RCU
3e7f5d362b2b avoid IDR mutation during pending mgmt TX cleanup
dc29226dada3 avoid IDR mutation during vif mgmt TX cleanup
Among them are a QCN9074 crash in ath11k_dp_rx_tid_del_func(), which
walks a list with its lock dropped, and num_stations not being reset
on hardware start, so new stations were refused after restarts. Others
fix WMI event overreads, leaks, and out-of-range RX MCS reported as
bogus rates.
They are the upstream commits as they are, in upstream order, as
102-118. Refresh the ath11k patches after them (offsets only).
Not taken: 7a246c72132e (stride mismatch in mac_phy_caps_parse()),
which #26175 backports with its ath12k twin; e56c9d429ba0
(suspend/resume; needs code backports-7.2 lacks); 8ab38bbac022 and
32ec8488d75d (their context is changed by OpenWrt's 900-series
patches).
Tested on qualcommax/ipq60xx (Arista W-318: IPQ6018 and QCN9072) and
qualcommax/ipq807x (Arista C-360: IPQ8074 and two QCN9074): the mac80211
package builds for both without new warnings, and the three ath11k
modules ran from RAM with every radio up, 19 h on the W-318 and 7-15 h
on three C-360s, without a kernel warning or a firmware crash. The
tested modules also carried 7a246c72132e and the Arista port's own
ath11k patches.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Christopher Griffin <christophergriffin05@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26495
Signed-off-by: Robert Marko <robimarko@gmail.com>
Backport from ath-next:
7a246c72132e ("wifi: ath11k: fix stride mismatch in mac_phy_caps_parse()")
4c6eb712a91f ("wifi: ath12k: fix stride mismatch in mac_phy_caps_parse()")
When firmware sends MAC/PHY capability TLVs shorter than the driver's
struct, both parsers size the buffer by the clamped TLV length but
advance the copy destination by the full struct size, so the second and
later entries are written past the end of the allocation
(CVE-2026-90398 / CVE-2026-90399). backports-7.2 still has the old code.
Both patches apply to backports-7.2 on top of the current mac80211
patch set with offsets only. Compile tested: ath11k for qualcommax/ipq807x
and ath12k for qualcommbe/ipq53xx with the OpenWrt toolchain, no new
warnings.
Assisted-by: LLM
Signed-off-by: John Macias <dencity7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26175
Signed-off-by: Robert Marko <robimarko@gmail.com>
The mv88e6xxx DSA switch module is loaded from modules-boot.d, but its
Marvell PHY driver is only loaded later from modules.d. Without the PHY
driver registered at switch probe, the ports attach to the generic PHY
driver and use polling instead of the device-specific driver and IRQs.
Load marvell at boot priority 18, before the DSA switch at priority 41.
This restores the Marvell 88E1540 driver on the NEC IX2106 when using
kmod-dsa-mv88e6xxx.
Signed-off-by: Kosuke Shibuya <kakiringopcneko@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26522
Signed-off-by: Robert Marko <robimarko@gmail.com>
The GL-BE14000 carries a Motorcomm YT9224 switch. Add the yt921x DSA
driver, its tagging protocol and the Motorcomm PHY patches as the series
was merged upstream, so the driver tracks net-next.
The YT922x support in 967-27 is not upstream yet. It is a rework by
Shi Jiayang of the net-next v1 posting by Kyle Switch,
<20260813104137.55550-1-kyle.switch@motor-comm.com>. The rework adds
the switch setup, the eFuse calibration, the SerDes configuration, the
phylink PCS handling and the CPU port recovery that the GL-BE14000
needs, ports them to Linux 6.18, and keeps separate YT921x and YT922x
tag drivers. Its mtk-usxgmii change moves to the mediatek patch 978,
later in this series. On top of the rework, 967-27 keeps the LAG
offload of the YT9215, and 967-36 releases its package lock on the
error paths of yt8824_config_aneg().
The driver is not specific to MediaTek, so the patches go to the generic
patch set. The upstream patches go to backport-6.18. 967-27 and the
quad 2.5G PHY driver in 967-36 go to pending-6.18.
YT921X and YT922X take tag protocol 32 and 33, because MXL862 already
holds 30 and 31 here. The OOB, RALINK, QCA_ETYPE and RTL_OTTO tag
protocols of the ipq40xx, ramips, qualcommax and realtek targets move
from 32 to 35. The YT92xx tags hold 32 and 33 on all targets, and the
YT922x fixes add 34 for the four-byte tag.
Enable CONFIG_NET_DSA_YT92XX, CONFIG_NET_DSA_TAG_YT921X,
CONFIG_NET_DSA_TAG_YT922X and CONFIG_MOTORCOMM_PHY in the filogic
config. Mark the YT92xx symbols as unset in the generic config, so that
the other targets do not stop at a kconfig prompt.
Signed-off-by: Kyle Switch <kyle.switch@motor-comm.com>
Signed-off-by: Shi Jiayang <shi05275@163.com>
Signed-off-by: Nilanka de Silva <nilankadsilva@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
Nothing packages the NXP SC16IS7xx UART bridges. Since 6.7 the driver
is split into a core and one module per bus, which the core selects.
Ship the core and the SPI glue.
Signed-off-by: John Crispin <john@phrozen.org>
The MCP2517FD, MCP2518FD and MCP251863 are not covered by the mcp251x
driver, which only handles the older MCP2510, MCP2515 and MCP2525
parts. Package the mcp251xfd driver for them.
Signed-off-by: John Crispin <john@phrozen.org>
Package the vxcan driver, which implements a local CAN traffic tunnel
between two virtual CAN network devices, analogous to what veth does
for ethernet.
Signed-off-by: John Crispin <john@phrozen.org>
These packages list modules they do not ship:
- ata-ahci, ata-ahci-platform: libahci (kmod-ata-core)
- serial-8250-exar: 8250 and 8250_base (kmod-serial-8250)
- usb2: ehci-hcd (kmod-usb-ehci, which loads it at boot)
- backlight, backlight-pwm: video (the ACPI video driver, which
kmod-acpi-video ships and loads)
kmodloader loads the dependencies of every module it loads, at boot as
well, so libahci, the 8250 core and ehci-hcd are still loaded first.
Assisted-by: Gary Dotzler <geldot@protonmail.com>
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26279
Signed-off-by: Robert Marko <robimarko@gmail.com>
AUTOLOAD holds the load priority and boot flag followed by the module
names. crypto-ghash/arm-ce and sound-core/uml append a complete
$(call AutoLoad,...) to the list they inherit from the base package, so
its priority and boot flag ("09 0" and "30 0") end up as module names,
which kmodloader skips.
crypto-ghash/arm-ce now appends only the module name. sound-core/uml
replaces FILES with soundcore and hostaudio, so it replaces AUTOLOAD as
well, which also drops a duplicate soundcore and the sound modules it
does not ship.
Assisted-by: Gary Dotzler <geldot@protonmail.com>
Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26279
Signed-off-by: Robert Marko <robimarko@gmail.com>