@@ -137,6 +137,13 @@ static std::vector<WifiChannel> get_channels_2G() {
137
137
static std::vector<WifiChannel> get_channels_5G () {
138
138
return std::vector<WifiChannel>{
139
139
// https://en.wikipedia.org/wiki/List_of_WLAN_channels#5_GHz_(802.11a/h/j/n/ac/ax)
140
+ // illegal channels
141
+ WifiChannel{5080 , 16 , WifiSpace::G5_8, true , true , true , true },
142
+ WifiChannel{5100 , 20 , WifiSpace::G5_8, true , true , true , true },
143
+ WifiChannel{5120 , 24 , WifiSpace::G5_8, true , true , true , true },
144
+ WifiChannel{5140 , 28 , WifiSpace::G5_8, true , true , true , true },
145
+ WifiChannel{5160 , 32 , WifiSpace::G5_8, true , true , true , true },
146
+ // legal channels
140
147
WifiChannel{5180 , 36 , WifiSpace::G5_8, true , true , true , true },
141
148
WifiChannel{5200 , 40 , WifiSpace::G5_8, true , true , true , false },
142
149
WifiChannel{5220 , 44 , WifiSpace::G5_8, true , true , true , true },
@@ -181,8 +188,18 @@ static std::vector<WifiChannel> get_channels_5G() {
181
188
// This one (177) is listed in wikipedia, but not valid in any country -
182
189
// but it works on rtl8812bu
183
190
WifiChannel{5885 , 177 , WifiSpace::G5_8, true , true , true , false },
184
- // this one does not work on bu, au no idea - for now, hide it
191
+ // more illegal channels
185
192
WifiChannel{5905 , 181 , WifiSpace::G5_8, true , false , false , true },
193
+ WifiChannel{5925 , 185 , WifiSpace::G5_8, true , false , false , true },
194
+ WifiChannel{5945 , 189 , WifiSpace::G5_8, true , false , false , true },
195
+ WifiChannel{5965 , 193 , WifiSpace::G5_8, true , false , false , true },
196
+ WifiChannel{5985 , 197 , WifiSpace::G5_8, true , false , false , true },
197
+ WifiChannel{6005 , 201 , WifiSpace::G5_8, true , false , false , true },
198
+ WifiChannel{6025 , 205 , WifiSpace::G5_8, true , false , false , true },
199
+ WifiChannel{6045 , 209 , WifiSpace::G5_8, true , false , false , true },
200
+ WifiChannel{6065 , 213 , WifiSpace::G5_8, true , false , false , true },
201
+ WifiChannel{6085 , 233 , WifiSpace::G5_8, true , false , false , true },
202
+
186
203
};
187
204
};
188
205
// Returns all Wi-Fi channels 5G that are legal in any country
0 commit comments