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/mt7615/mac.c | |
parent | mt76: rename mt76_driver_ops txwi_flags to drv_flags and include tx aligned4 (diff) | |
download | linux-dev-0fd0eb54bfe09afc1c0fd5da2893338c215de276.tar.xz linux-dev-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/mt7615/mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c index 88271524fb83..9189a86d7825 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -1269,7 +1269,7 @@ void mt7615_update_channel(struct mt76_dev *mdev) if (!test_bit(MT76_STATE_RUNNING, &mdev->state)) return; - state = mt76_channel_state(mdev, mdev->chandef.chan); + state = mdev->chan_state; /* TODO: add DBDC support */ busy = mt76_get_field(dev, MT_MIB_SDR16(0), MT_MIB_BUSY_MASK); |