mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move nl80211_dfs_regions in mt76_dev data structure
Move dfs region field in mt76_dev data structure since it is used by all drivers. This is a preliminary patch to add DFS support to mt7615 driver Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0789f45e52
commit
2dca431cd7
+2
-2
@@ -445,9 +445,9 @@ mt7603_regd_notifier(struct wiphy *wiphy,
|
||||
struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
|
||||
struct mt7603_dev *dev = hw->priv;
|
||||
|
||||
dev->region = request->dfs_region;
|
||||
dev->mt76.region = request->dfs_region;
|
||||
dev->ed_monitor = dev->ed_monitor_enabled &&
|
||||
dev->region == NL80211_DFS_ETSI;
|
||||
dev->mt76.region == NL80211_DFS_ETSI;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user