[PATCH] wifi: mt76: mt7921: skip unknown CLC firmware records
Mikhail Gavrilov
mikhail.v.gavrilov at gmail.com
Mon Aug 17 13:16:56 PDT 2026
Thanks for the quick turnaround.
Tested on an MT7922 (mt7921e) with linux-firmware 20260810 - the image
whose CLC region carries the idx 3 records - on a lockdep and UBSAN
build of mainline at fd923b32d761, with 9417c5818a01 applied underneath.
The device probes normally: the RAM firmware is loaded once rather than
ten times, wlp11s0 appears, association with a 6 GHz AP works (channel
37, 6135 MHz, 160 MHz), and switching between a 5 GHz and a 6 GHz BSS
and back is clean. No "hardware init failed", no "Invalid CLC record",
and no UBSAN report - so the bounds checks are still doing their job on
the very firmware that used to trip them.
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov at gmail.com>
One nit, take it or leave it: both length failures print the same
"Invalid CLC record", so the log does not distinguish a table that ends
mid-header from a record whose length is out of range. Two distinct
strings would make a future report easier to read.
More information about the Linux-mediatek
mailing list