projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb0f68
)
mt76x2: set default values in TX_ALC_CFG_{1, 2} for tempetaure compensation
author
Lorenzo Bianconi
<
[email protected]
>
Wed, 4 Apr 2018 08:38:32 +0000
(10:38 +0200)
committer
Kalle Valo
<
[email protected]
>
Tue, 24 Apr 2018 17:32:40 +0000
(20:32 +0300)
Initialize default values for temperature compensation in TX_ALC_CFG_{1,2}
if tssi has been enabled
Signed-off-by: Lorenzo Bianconi <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
b/drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
index 79c698ada818ec527d5afc7c4550f3fa2ddb3053..038d1fe6c72670e3084a70fda6859cbdc5f20356 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c
@@
-677,6
+677,14
@@
int mt76x2_phy_set_channel(struct mt76x2_dev *dev,
memcpy(dev->cal.agc_gain_cur, dev->cal.agc_gain_init,
sizeof(dev->cal.agc_gain_cur));
+ /* init default values for temp compensation */
+ if (mt76x2_tssi_enabled(dev)) {
+ mt76_rmw_field(dev, MT_TX_ALC_CFG_1, MT_TX_ALC_CFG_1_TEMP_COMP,
+ 0x38);
+ mt76_rmw_field(dev, MT_TX_ALC_CFG_2, MT_TX_ALC_CFG_2_TEMP_COMP,
+ 0x38);
+ }
+
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->cal_work,
MT_CALIBRATE_INTERVAL);