Skip to content

Commit

Permalink
mt7603: issue PSE reset on stuck beacon
Browse files Browse the repository at this point in the history
Improves reliability of recovery

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Nov 28, 2018
1 parent 5fb60a7 commit 31cd20e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mt7603/mac.c
Expand Up @@ -1294,7 +1294,8 @@ static void mt7603_mac_watchdog_reset(struct mt7603_dev *dev)
mt7603_beacon_set_timer(dev, -1, 0);

if (dev->reset_cause[RESET_CAUSE_RESET_FAILED] ||
dev->cur_reset_cause == RESET_CAUSE_RX_PSE_BUSY)
dev->cur_reset_cause == RESET_CAUSE_RX_PSE_BUSY ||
dev->cur_reset_cause == RESET_CAUSE_BEACON_STUCK)
mt7603_pse_reset(dev);

if (dev->reset_cause[RESET_CAUSE_RESET_FAILED])
Expand Down

0 comments on commit 31cd20e

Please sign in to comment.