mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
wifi-scripts: use OWE + country for 6GHz
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Wifi on the 6GHz band does not support open networks, configure owe by
default. 6GHz wifi also needs a country code, configure a broken country
code '00' by default to hint the user to change it.
Link: https://github.com/openwrt/openwrt/pull/21313
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 01a87f4bd0)
This commit is contained in:
parent
ff713d3d9e
commit
1818f4fbce
1 changed files with 8 additions and 2 deletions
|
|
@ -78,7 +78,13 @@ for (let phy_name, phy in board.wlan) {
|
|||
|
||||
band_name = lc(band_name);
|
||||
|
||||
let country, defaults, num_global_macaddr;
|
||||
let country, encryption, defaults, num_global_macaddr;
|
||||
if (band_name == '6g') {
|
||||
country = '00';
|
||||
encryption = 'owe';
|
||||
} else {
|
||||
encryption = 'open';
|
||||
}
|
||||
if (board.wlan.defaults) {
|
||||
defaults = board.wlan.defaults.ssids?.[band_name]?.ssid ? board.wlan.defaults.ssids?.[band_name] : board.wlan.defaults.ssids?.all;
|
||||
country = board.wlan.defaults.country;
|
||||
|
|
@ -105,7 +111,7 @@ set ${si}.device='${name}'
|
|||
set ${si}.network='lan'
|
||||
set ${si}.mode='ap'
|
||||
set ${si}.ssid='${defaults?.ssid || "OpenWrt"}'
|
||||
set ${si}.encryption='${defaults?.encryption || "none"}'
|
||||
set ${si}.encryption='${defaults?.encryption || encryption}'
|
||||
set ${si}.key='${defaults?.key || ""}'
|
||||
|
||||
`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue