mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: wake the device before dumping power table
Always wake the device up before dumping the single_sku power table
otherwise the device can hang.
Fixes: ea29acc97c555 ("mt76: mt7921: add dumping Tx power tabl")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
6b691e6247
commit
b14365bea5
@@ -184,7 +184,10 @@ mt7921_txpwr(struct seq_file *s, void *data)
|
||||
struct mt7921_txpwr txpwr;
|
||||
int ret;
|
||||
|
||||
mt7921_mutex_acquire(dev);
|
||||
ret = mt7921_get_txpwr_info(dev, &txpwr);
|
||||
mt7921_mutex_release(dev);
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user