Skip to contentSkip to conversation

wifi: mt76: mt7996: Apply power change in bss_info_changed

PATCH New [email protected] 1 participant 1 message Oct 10, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mt76: mt7996: Apply power change in bss_info_changed

From: Ben Greear <[email protected]>

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

---

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(+)
drivers/net/wireless/mediatek/mt76/mt7996/main.c +3 -0
index 92aea65a8be8..cf15ffa7a3de 100644
@@ -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);
 }
 
Signature · 1 line
2.42.0