diff mbox series

wifi: mt76: mt7996: Apply power change in bss_info_changed

Message ID 20241010203907.1219448-1-greearb@candelatech.com (mailing list archive)
State New
Delegated to: Felix Fietkau
Headers show
Series wifi: mt76: mt7996: Apply power change in bss_info_changed | expand

Commit Message

Ben Greear Oct. 10, 2024, 8:39 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

Re-calculate txpower if bss_info_changed flags it as needing
to be changed.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---

I found this while looking at other txpower issues.  This didn't
actually fix the problem I found, possibly it is not needed?

 drivers/net/wireless/mediatek/mt76/mt7996/main.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/main.c b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
index 92aea65a8be8..cf15ffa7a3de 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
@@ -797,6 +797,9 @@  static void mt7996_bss_info_changed(struct ieee80211_hw *hw,
 	if (changed & BSS_CHANGED_MU_GROUPS)
 		mt7996_update_mu_group(hw, vif, info);
 
+	if (changed & BSS_CHANGED_TXPOWER)
+		mt7996_mcu_set_txpower_sku(phy);
+
 	mutex_unlock(&dev->mt76.mutex);
 }