mt76: mt7915: reset token when mac_reset happens
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 10 Dec 2020 18:51:37 +0000 (02:51 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Jan 2021 19:07:46 +0000 (20:07 +0100)
commitf285dfb98562e8380101095d168910df1d07d8be
treecdaa48f395bd06914db0cdbee31603c0a293e2fb
parent2a0145003ae330b3e2110e2e45208c0e8cd2d9ea
mt76: mt7915: reset token when mac_reset happens

Reset buffering token in mt7915_mac_reset_work() to avoid possible leakege,
which leads to Tx stop after mac reset.

Tested-by: Bo Jiao <bo.jiao@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h