diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-02-03 15:52:12 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-02-18 21:54:33 +0300 |
commit | 1564fa92fbf92abdc5bb82c006956826718ced5e (patch) | |
tree | 66b893b5975033e5c642eb3632b5d9087d535c68 /drivers | |
parent | 128b75bf5cf93bca71da740d3cb623c1febb6bf6 (diff) | |
download | linux-1564fa92fbf92abdc5bb82c006956826718ced5e.tar.xz |
mt76: mt76x2: avoid running DPD calibration if tx is blocked
Doing so could lead to hangs
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x2/phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/phy.c b/drivers/net/wireless/mediatek/mt76/mt76x2/phy.c index e2ee5e498da7..1848e8ab2e21 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2/phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/phy.c @@ -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); |