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 8011c261c6583bf2c7fe65f0d69b8530610a19ec..24e292e895b6d1773c5c78ba5676677fe422f582 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);
 }