]> git.hungrycats.org Git - linux/commit
wifi: mt76: mt7921: skip unknown CLC firmware records
authorLaxman Acharya Padhya <acharyalaxman8848@gmail.com>
Sun, 16 Aug 2026 17:48:40 +0000 (23:33 +0545)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 13 Sep 2026 17:15:16 +0000 (10:15 -0700)
commit1a296bfd3e775e515233f746218824fc7dd5ff16
treec0dbafafc598c41b34c5bc40fbc9299cd5972512
parent180534c09b2dd877c3ec83c900253765923c2e42
wifi: mt76: mt7921: skip unknown CLC firmware records

Treat an out-of-range CLC index as newer firmware rather than a
malformed image. linux-firmware 20260810 ships MT7922 records with
idx 3, and rejecting them made mt7921e fail to probe.

Keep the record-length checks, and report those as errors so a
truncated table is visible instead of a silent retry loop.

Fixes: 9417c5818a01 ("wifi: mt76: mt7921: validate CLC firmware records")
Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Signed-off-by: Laxman Acharya Padhya <acharyalaxman8848@gmail.com>
Reviewed-by: Junjie Cao <junjie.cao@intel.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c