Commit f090d0ca authored by Felix Fietkau's avatar Felix Fietkau

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: default avatarFelix Fietkau <nbd@nbd.name>
parent 3ec5ac12
...@@ -161,7 +161,8 @@ void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval) ...@@ -161,7 +161,8 @@ void mt7603_beacon_set_timer(struct mt7603_dev *dev, int idx, int intval)
return; return;
} }
dev->mt76.beacon_int = intval; if (intval)
dev->mt76.beacon_int = intval;
mt76_wr(dev, MT_TBTT, mt76_wr(dev, MT_TBTT,
FIELD_PREP(MT_TBTT_PERIOD, intval) | MT_TBTT_CAL_ENABLE); FIELD_PREP(MT_TBTT_PERIOD, intval) | MT_TBTT_CAL_ENABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment