OSDN Git Service

mt76x2u: phy: add TX_SHAPING calibration
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 6 Nov 2018 16:59:45 +0000 (17:59 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:29:26 +0000 (12:29 +0100)
Add MCU_CAL_TX_SHAPING calibration in mt76x2u_phy_channel_calibrate
routine since now mt76x2 and mt76x2u driver run the same firmware

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x2/usb_phy.c

index 8011c26..24e292e 100644 (file)
@@ -35,6 +35,7 @@ void mt76x2u_phy_channel_calibrate(struct mt76x02_dev *dev)
        mt76x02_mcu_calibrate(dev, MCU_CAL_TXIQ, is_5ghz, false);
        mt76x02_mcu_calibrate(dev, MCU_CAL_RXIQC_FI, is_5ghz, false);
        mt76x02_mcu_calibrate(dev, MCU_CAL_TEMP_SENSOR, 0, false);
+       mt76x02_mcu_calibrate(dev, MCU_CAL_TX_SHAPING, 0, false);
 
        mt76x2u_mac_resume(dev);
 }