]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
wifi: mt76: mt7996: add missing check for rx wcid entries
authorFelix Fietkau <nbd@nbd.name>
Wed, 27 Aug 2025 08:53:49 +0000 (10:53 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 27 Aug 2025 09:27:57 +0000 (11:27 +0200)
commit4a522b01e368eec58d182ecc47d24f49a39e440d
treeb0fa2d8350203994f272799358c92784e91c42f8
parenta3c99ef88a084e1c2b99dd56bbfa7f89c9be3e92
wifi: mt76: mt7996: add missing check for rx wcid entries

Non-station wcid entries must not be passed to the rx functions.
In case of the global wcid entry, it could even lead to corruption in the wcid
array due to pointer being casted to struct mt7996_sta_link using container_of.

Fixes: 7464b12b7d92 ("wifi: mt76: mt7996: rework mt7996_rx_get_wcid to support MLO")
Link: https://patch.msgid.link/20250827085352.51636-3-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c