History

wifi: mac80211_hwsim: Add custom reg for DFS concurrent

Add custom regulatory that marks DFS channels as DFS_CONCURRENT.

Andrei Otcheretianski committed 2 years ago

Commit 99b68771 parent 513b1a11 file · +19 −0Browse files

Unified · Split

drivers/net/wireless/virtual/mac80211_hwsim.c+19−0
@@ -190,10 +190,25 @@ static const struct ieee80211_regdomain hwsim_world_regdom_custom_03 = { · 189 unmodified lines
190190 }
191191 };
192192
193+static const struct ieee80211_regdomain hwsim_world_regdom_custom_04 = {
194+ .n_reg_rules = 6,
195+ .alpha2 = "99",
196+ .reg_rules = {
197+ REG_RULE(2412 - 10, 2462 + 10, 40, 0, 20, 0),
198+ REG_RULE(2484 - 10, 2484 + 10, 40, 0, 20, 0),
199+ REG_RULE(5150 - 10, 5240 + 10, 80, 0, 30, 0),
200+ REG_RULE(5260 - 10, 5320 + 10, 80, 0, 30,
201+ NL80211_RRF_DFS_CONCURRENT | NL80211_RRF_DFS),
202+ REG_RULE(5745 - 10, 5825 + 10, 80, 0, 30, 0),
203+ REG_RULE(5855 - 10, 5925 + 10, 80, 0, 33, 0),
204+ }
205+};
206+
193207 static const struct ieee80211_regdomain *hwsim_world_regdom_custom[] = {
194208 &hwsim_world_regdom_custom_01,
195209 &hwsim_world_regdom_custom_02,
196210 &hwsim_world_regdom_custom_03,
211+ &hwsim_world_regdom_custom_04,
197212 };
198213
199214 struct hwsim_vif_priv {
@@ -5294,6 +5309,10 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, · 5094 unmodified lines
52945309 schedule_timeout_interruptible(1);
52955310 }
52965311
5312+ /* TODO: Add param */
5313+ wiphy_ext_feature_set(hw->wiphy,
5314+ NL80211_EXT_FEATURE_DFS_CONCURRENT);
5315+
52975316 if (param->no_vif)
52985317 ieee80211_hw_set(hw, NO_AUTO_VIF);
52995318

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t