wifi: mt76: check vif type before reporting cca and csa
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Thu, 31 Aug 2023 06:22:19 +0000 (14:22 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 30 Sep 2023 18:03:05 +0000 (20:03 +0200)
commit8234324ae90948a4e5bfaebe042c51c400cf017a
tree8c9539ecd5faf7759bb705347a9786c629d62f9c
parentc685034cabc574dbdf16fa675010e202083cb4c2
wifi: mt76: check vif type before reporting cca and csa

Do not report cca and csa finish to upper layer on station type vif to
prevent warnings caused by setting beacon.

Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c