Opis tego co proponują zrobić.
Ok, i did 2 changes:
eeprom.c
Commented out:
/*
static s8 mt76x0_get_delta(struct mt76x02_dev *dev)
{
struct cfg80211_chan_def *chandef = &dev->mphy.chandef;
u8 val;
if (chandef->width == NL80211_CHAN_WIDTH_80) {
val = mt76x02_eeprom_get(dev, MT_EE_5G_TARGET_POWER) >> 8;
} else if (chandef->width == NL80211_CHAN_WIDTH_40) {
u16 data;
data = mt76x02_eeprom_get(dev, MT_EE_TX_POWER_DELTA_BW40);
if (chandef->chan->band == NL80211_BAND_5GHZ)
val = data >> 8;
else
val = data;
} else {
return 0;
}
return mt76x02_rate_power_val(val);
}
*/
and change the function to:
static s8 mt76x0_get_delta(struct mt76x02_dev *dev)
{
struct cfg80211_chan_def *chandef = &dev->mphy.chandef;
u8 val;
if (chandef->width == NL80211_CHAN_WIDTH_80) {
val = mt76x02_eeprom_get(dev, MT_EE_TSSI_BOUND1) >> 8;
} else if (chandef->width == NL80211_CHAN_WIDTH_40) {
u16 data;
data = mt76x02_eeprom_get(dev, MT_EE_TX_POWER_DELTA_BW40);
if (chandef->chan->band == NL80211_BAND_5GHZ)
val = data >> 8;
else
val = data;
} else {
return 0;
}
return mt76x02_rate_power_val(val);
}
The second change i did in the same file:
/* vht mcs 8, 9 5GHz */
// val = mt76x02_eeprom_get(dev, 0x12c);
val = 22;
Also using this script
#!/bin/sh
while true
do
sleep 1
cd /sys/kernel/debug/ieee80211/phy1/mt76
echo 0x2320 > regidx
echo 0x122c3cf2 > regval
done
Now i have stable AC750 version 5. Also the 5Ghz range and speed is very good - the same as AC1200 !
Also in Luci i see txpower values which looks normal.
This is the output from: iw phy1 info
Frequencies:
* 5180 MHz [36] (23.0 dBm)
* 5200 MHz [40] (22.0 dBm)
* 5220 MHz [44] (22.0 dBm)
* 5240 MHz [48] (22.0 dBm)
* 5260 MHz [52] (19.0 dBm) (radar detection)
* 5280 MHz [56] (19.0 dBm) (radar detection)
* 5300 MHz [60] (19.0 dBm) (radar detection)
* 5320 MHz [64] (19.0 dBm) (radar detection)
* 5500 MHz [100] (19.0 dBm) (radar detection)
* 5520 MHz [104] (19.0 dBm) (radar detection)
* 5540 MHz [108] (19.0 dBm) (radar detection)
* 5560 MHz [112] (19.0 dBm) (radar detection)
* 5580 MHz [116] (19.0 dBm) (radar detection)
* 5600 MHz [120] (19.0 dBm) (radar detection)
* 5620 MHz [124] (19.0 dBm) (radar detection)
* 5640 MHz [128] (19.0 dBm) (radar detection)
* 5660 MHz [132] (19.0 dBm) (radar detection)
* 5680 MHz [136] (23.0 dBm) (radar detection)
* 5700 MHz [140] (23.0 dBm) (radar detection)
* 5720 MHz [144] (23.0 dBm) (radar detection)
* 5745 MHz [149] (23.0 dBm)
* 5765 MHz [153] (23.0 dBm)
* 5785 MHz [157] (23.0 dBm)
* 5805 MHz [161] (23.0 dBm)
* 5825 MHz [165] (23.0 dBm)
* 5845 MHz [169] (disabled)
* 5865 MHz [173] (disabled)
I think everything looks fine. Only that script disturbs me. I want to make it permament somehow or understand if we will have better results with sleep 0.1 for example ?!