-
Notifications
You must be signed in to change notification settings - Fork 1
mt76x2: reduce AGC gain for high-band 5GHz channels (157-165) #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
9eef190
6559ffe
b065b19
7fbce2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| . |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -321,6 +321,9 @@ void mt76x2_phy_update_channel_gain(struct mt76x02_dev *dev) | |||||||||||||||||||||
| agc_35 = agc_37 = 0x08080808; | ||||||||||||||||||||||
| else if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) | ||||||||||||||||||||||
| agc_35 = 0x10101014; | ||||||||||||||||||||||
| else if (dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ && | ||||||||||||||||||||||
| dev->mphy.chandef.chan->hw_value >= 157) | ||||||||||||||||||||||
| agc_35 = 0x0f0f0f14; | ||||||||||||||||||||||
|
Comment on lines
322
to
+326
|
||||||||||||||||||||||
| else if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) | |
| agc_35 = 0x10101014; | |
| else if (dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ && | |
| dev->mphy.chandef.chan->hw_value >= 157) | |
| agc_35 = 0x0f0f0f14; | |
| else if (dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ && | |
| dev->mphy.chandef.chan->hw_value >= 157) | |
| agc_35 = 0x0f0f0f14; | |
| else if (dev->mphy.chandef.width == NL80211_CHAN_WIDTH_80) | |
| agc_35 = 0x10101014; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -161,7 +161,11 @@ int mt76x2u_phy_set_channel(struct mt76x02_dev *dev, | |||||
| mt76_wr(dev, MT_BBP(AGC, 61), 0xff64a4e2); | ||||||
| mt76_wr(dev, MT_BBP(AGC, 7), 0x08081010); | ||||||
| mt76_wr(dev, MT_BBP(AGC, 11), 0x00000404); | ||||||
| mt76_wr(dev, MT_BBP(AGC, 2), 0x00007070); | ||||||
| /* Adjust AGC 2 for high-band 5GHz channels (157-165) to improve stability */ | ||||||
|
||||||
| /* Adjust AGC 2 for high-band 5GHz channels (157-165) to improve stability */ | |
| /* Adjust AGC 2 for high-band 5GHz channels (>=157 / UNII-3+) to improve stability */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as the USB path: the comment specifies '(157-165)' but the logic applies to all
>= 157. Please align the comment and the condition so they describe the same range.