Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1564fa92 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mt76: mt76x2: avoid running DPD calibration if tx is blocked



Doing so could lead to hangs

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 128b75bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);