Skip to content

Commit d8c1bcc

Browse files
channels
1 parent a8b77f0 commit d8c1bcc

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

app/telemetry/settings/wifi_channel.h

+18-1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ static std::vector<WifiChannel> get_channels_2G() {
137137
static std::vector<WifiChannel> get_channels_5G() {
138138
return std::vector<WifiChannel>{
139139
// 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
140147
WifiChannel{5180, 36, WifiSpace::G5_8, true, true, true, true},
141148
WifiChannel{5200, 40, WifiSpace::G5_8, true, true, true, false},
142149
WifiChannel{5220, 44, WifiSpace::G5_8, true, true, true, true},
@@ -181,8 +188,18 @@ static std::vector<WifiChannel> get_channels_5G() {
181188
// This one (177) is listed in wikipedia, but not valid in any country -
182189
// but it works on rtl8812bu
183190
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
185192
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+
186203
};
187204
};
188205
// Returns all Wi-Fi channels 5G that are legal in any country

0 commit comments

Comments
 (0)