diff options
| author | Felix Fietkau <nbd@nbd.name> | 2019-09-05 16:58:08 +0200 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2019-11-20 13:23:49 +0100 |
| commit | 0fd0eb54bfe09afc1c0fd5da2893338c215de276 (patch) | |
| tree | 427a7ffab95b42fadf9925359a5ec2bca00d35ff /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | |
| parent | 9ec0b821b815243d60235220c45250805398147b (diff) | |
| download | linux-0fd0eb54bfe09afc1c0fd5da2893338c215de276.tar.gz linux-0fd0eb54bfe09afc1c0fd5da2893338c215de276.tar.bz2 linux-0fd0eb54bfe09afc1c0fd5da2893338c215de276.zip | |
mt76: store current channel survey_state in struct mt76_dev
Move mt76_channel_state() from mt76.h to mac80211.c
Preparation for updating channel state from more places in the drivers/core
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
| -rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index 9d2795c1e943..f73ec17e5f47 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -986,7 +986,7 @@ void mt76x02_update_channel(struct mt76_dev *mdev) struct mt76_channel_state *state; u32 active, busy; - state = mt76_channel_state(&dev->mt76, dev->mt76.chandef.chan); + state = mdev->chan_state; busy = mt76_rr(dev, MT_CH_BUSY); active = busy + mt76_rr(dev, MT_CH_IDLE); |
