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:
+2
-2
@@ -775,7 +775,7 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb,
|
||||
u8 wcid;
|
||||
int len;
|
||||
|
||||
if (!test_bit(MT76_STATE_RUNNING, &dev->mt76.state))
|
||||
if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state))
|
||||
return -EINVAL;
|
||||
|
||||
if (rxinfo & MT_RXINFO_L2PAD)
|
||||
@@ -868,7 +868,7 @@ void mt76x02_mac_poll_tx_status(struct mt76x02_dev *dev, bool irq)
|
||||
u8 update = 1;
|
||||
bool ret;
|
||||
|
||||
if (!test_bit(MT76_STATE_RUNNING, &dev->mt76.state))
|
||||
if (!test_bit(MT76_STATE_RUNNING, &dev->mphy.state))
|
||||
return;
|
||||
|
||||
trace_mac_txstat_poll(dev);
|
||||
|
||||
Reference in New Issue
Block a user