From: Felix Fietkau Date: Wed, 6 Nov 2019 19:18:28 +0000 (+0100) Subject: mt76: mt7615: update beacon contents on BSS_CHANGED_BEACON X-Git-Tag: v5.15~4200^2~240^2^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0305d182c020d8c6300af461a5b606316b096e8;p=platform%2Fkernel%2Flinux-starfive.git mt76: mt7615: update beacon contents on BSS_CHANGED_BEACON Beacon changes need to be sent to the firmware, otherwise it will keep sending stale data Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index 70d665ce924f..79f32b699ffa 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -406,17 +406,16 @@ static void mt7615_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_ASSOC) mt7615_mcu_set_bss_info(dev, vif, info->assoc); - /* TODO: update beacon content - * BSS_CHANGED_BEACON - */ - if (changed & BSS_CHANGED_BEACON_ENABLED) { mt7615_mcu_set_bss_info(dev, vif, info->enable_beacon); mt7615_mcu_wtbl_bmc(dev, vif, info->enable_beacon); mt7615_mcu_set_sta_rec_bmc(dev, vif, info->enable_beacon); - mt7615_mcu_set_bcn(hw, vif, info->enable_beacon); } + if (changed & (BSS_CHANGED_BEACON | + BSS_CHANGED_BEACON_ENABLED)) + mt7615_mcu_set_bcn(hw, vif, info->enable_beacon); + mutex_unlock(&dev->mt76.mutex); }