wifi: mt76: mt7925: track valid BSS txpower#83
Open
Komzpa wants to merge 1 commit into
Open
Conversation
b76f5bf to
c9e6f08
Compare
c9e6f08 to
cc5dcd3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add one follow-up Wi-Fi patch for mt7925 TX power reporting before mac80211 has delivered
BSS_CHANGED_TXPOWER.Current patch 18 stores per-BSS TX power in
dev->phy.txpower, but there is no validity state for that field. Before the firstBSS_CHANGED_TXPOWERevent,dev->phy.txpoweris just the zero-initialized value.mt7925_mcu_set_rate_txpower()treats that zero as configured power, feeds it intomt76_get_power_bound(), and userspace reportstxpower 0.00 dBmafter reload/disconnected state.This patch tracks whether BSS TX power has actually been received:
txpower_setnext totxpower;BSS_CHANGED_TXPOWER;dev->phy.txpoweronly whentxpower_setis true, so a legitimate configured0 dBmremains valid;hw->conf.power_level, then current channel regulatory max power;mt76_get_power_bound()andmt76_get_rate_power_limits().Verification
patch --dry-run --fuzz=0passes against the generated mt76 tree after patches 1-19.make sourcespasses on this branch.txpower_setguard and channel max fallback.iw dev wlp8s0 infochanged fromtxpower 0.00 dBmtotxpower 23.00 dBm.Scope and routing
This PR is intentionally minimized to the DKMS/backport txpower reporting fix only. It does not claim to fix Bluetooth/Wi-Fi coexistence and does not include the separate Linux 7.1
ieee80211_mgmt.u.actionbuild-compat patch.This is not a Linux wireless upstream submission as-is: current
wireless-nextdoes not have this repo's patch-18dev->phy.txpowerpath, so a real upstream submission would need a separate mt76 patch/series againstwirelessorwireless-nextand should be sent viagit send-emailto linux-wireless rather than as this GitHub patch-file PR.