mt76: mt7615: fix tx_frames setup

Properly set up the state when entering the tx_frames state

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2020-07-14 18:48:07 +02:00
parent 1641aa2016
commit 6838d002f9
+1 -1
View File
@@ -272,7 +272,7 @@ mt7615_tm_set_state(struct mt76_dev *mdev, enum mt76_testmode_state state)
if (prev_state == MT76_TM_STATE_TX_FRAMES)
mt7615_tm_set_tx_frames(dev, false);
else if (state == MT76_TM_STATE_TX_FRAMES)
mt7615_tm_set_rx_enable(dev, true);
mt7615_tm_set_tx_frames(dev, true);
if (state <= MT76_TM_STATE_IDLE)
mt7615_tm_init(dev);