mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move state from struct mt76_dev to mt76_phy
Allows keeping per-wiphy state separate Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ static inline bool mt76x02_wait_for_mac(struct mt76_dev *dev)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 500; i++) {
|
||||
if (test_bit(MT76_REMOVED, &dev->state))
|
||||
if (test_bit(MT76_REMOVED, &dev->phy.state))
|
||||
return false;
|
||||
|
||||
switch (dev->bus->rr(dev, MAC_CSR0)) {
|
||||
|
||||
Reference in New Issue
Block a user