mt76: mt76x2: avoid running DPD calibration if tx is blocked
authorFelix Fietkau <nbd@nbd.name>
Sun, 3 Feb 2019 12:52:12 +0000 (13:52 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 18:54:33 +0000 (19:54 +0100)
Doing so could lead to hangs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x2/phy.c

index e2ee5e498da7f9287efe2214d7dc69b7cacad52e..1848e8ab2e21cfb6332fd17259986d6b932dbff6 100644 (file)
@@ -241,7 +241,7 @@ void mt76x2_phy_tssi_compensate(struct mt76x02_dev *dev)
                t.offset1 = txp.chain[1].tssi_offset;
                mt76x2_mcu_tssi_comp(dev, &t);
 
-               if (t.pa_mode || dev->cal.dpd_cal_done)
+               if (t.pa_mode || dev->cal.dpd_cal_done || dev->ed_tx_blocked)
                        return;
 
                usleep_range(10000, 20000);