OSDN Git Service

wifi: mt76: mt7915: check the correctness of event data
authorRyder Lee <ryder.lee@mediatek.com>
Sat, 3 Dec 2022 21:33:19 +0000 (05:33 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 9 Dec 2022 15:45:39 +0000 (16:45 +0100)
commit7a53eecd5c877c445e10c32a4b4d671cd36c6558
tree4be14488ae95af40d9a63411f5700c2a0c522da2
parent783ef7da7a53c7ab98471f47fbabab6cf6f45c8f
wifi: mt76: mt7915: check the correctness of event data

The mcu event might not be reliable, so check the correctness of data
before handling it.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c