OSDN Git Service

wifi: mt76: mt7603: fix beacon interval after disabling a single vif
authorFelix Fietkau <nbd@nbd.name>
Tue, 25 Jul 2023 10:37:59 +0000 (12:37 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 26 Jul 2023 09:15:04 +0000 (11:15 +0200)
commitf090d0ca0de92aa378f342011d16f5d310a8383f
tree7db543e499a94ee1ffc3271a6166a3b5541dad22
parent3ec5ac12ac8a4e6b1e085374325a5fbd1b650fd5
wifi: mt76: mt7603: fix beacon interval after disabling a single vif

When disabling beacons on a vif, intval is 0. Ensure that dev->mt76.beacon_int
is not overwritten in this case, so that beacons continue to work for other
interfaces.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/beacon.c