Commit 07241519 authored by Sean Wang's avatar Sean Wang Committed by Felix Fietkau

mt76: mt7921: use mt76_hw instead of open coding it

use mt76_hw instead of open coding it
Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent cbaa0a40
...@@ -491,7 +491,7 @@ mt7921_sniffer_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif) ...@@ -491,7 +491,7 @@ mt7921_sniffer_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif)
void mt7921_set_runtime_pm(struct mt7921_dev *dev) void mt7921_set_runtime_pm(struct mt7921_dev *dev)
{ {
struct ieee80211_hw *hw = dev->mphy.hw; struct ieee80211_hw *hw = mt76_hw(dev);
struct mt76_connac_pm *pm = &dev->pm; struct mt76_connac_pm *pm = &dev->pm;
bool monitor = !!(hw->conf.flags & IEEE80211_CONF_MONITOR); bool monitor = !!(hw->conf.flags & IEEE80211_CONF_MONITOR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment