mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: report txpower for the requested vif link
mt792x currently reports txpower from the generic PHY cached state, which may not match the requested vif/link context. Resolve the requested link channel and derive txpower from that channel instead, with fallback to the current PHY chandef if no valid chanctx is available. Reported-by: Devin Wittmayer <[email protected]> Closes: https://lore.kernel.org/linux-wireless/[email protected]/ Tested-by: Devin Wittmayer <[email protected]> Tested-by: Satadru Pramanik <[email protected]> Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -1561,7 +1561,7 @@ const struct ieee80211_ops mt7921_ops = {
|
||||
.wake_tx_queue = mt76_wake_tx_queue,
|
||||
.release_buffered_frames = mt76_release_buffered_frames,
|
||||
.channel_switch_beacon = mt7921_channel_switch_beacon,
|
||||
.get_txpower = mt76_get_txpower,
|
||||
.get_txpower = mt792x_get_txpower,
|
||||
.get_stats = mt792x_get_stats,
|
||||
.get_et_sset_count = mt792x_get_et_sset_count,
|
||||
.get_et_strings = mt792x_get_et_strings,
|
||||
|
||||
Reference in New Issue
Block a user