]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7915: fix capabilities in non-AP mode
authorFelix Fietkau <nbd@nbd.name>
Thu, 29 Jun 2023 20:39:30 +0000 (22:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:02 +0000 (09:48 +0200)
commit01b34b9dc2fc82ae21646a0be6966b239802b823
tree760c87dc78ab0b8223a09077dfe6db5fb044d202
parent4f3375f81df7c790c3c6513d901f0d96f524c861
wifi: mt76: mt7915: fix capabilities in non-AP mode

[ Upstream commit 02a894046d5ab7d0010f39ea54fde7e167919d04 ]

Capabilities in vif->bss_conf are only initialized in AP mode.
For other modes, they should be enabled by default, in order to avoid a
mismatch.

Fixes: 885f7af7e544 ("wifi: mt76: mt7915: remove mt7915_mcu_beacon_check_caps()")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/main.c
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h