2G/5G/6G wireless config

Hello, we need to config 2G+5G or 2G+6G wireless configuration from UCI command.
anyone know how to setup /etc/config/wireless?

for 2G+5G case, can I set wireless config like this?

config	wifi-device	'wl0'
	option	device	'wl0'
config	wifi-iface
	option	device	'wl0'


config	wifi-device	'wl1'
	option	device	'wl1'
config	wifi-iface
	option	device	'wl1'


config	wifi-device	'wl2'
	option	device	'wl2'
	option disabled  1
config	wifi-iface
	option	device	'wl2'


/etc/wireless # iw dev
phy#0
        Interface ap0
                ifindex 36
                wdev 0x3
                addr 02:0c:e7:66:32:e1
                ssid MiFi_Softap_2G
                type AP
        Interface ap1
                ifindex 37
                wdev 0x4
                addr 06:0c:e7:66:32:e0
                ssid MiFi_Softap_5G
                type AP
        Interface wlan0
                ifindex 34
                wdev 0x1
                addr 00:0c:e7:66:32:e1
                type managed

Thanks

what device is this ?

1 Like

Hi frollic,
This is MiFi device which supports 2G, 5G, 6G(WiFi 6E) Hz
Currently, I only can setup 2G or 5G wireless configuration.
I was wondering if I can setup 2G, 5G, 6G wireless configuration, but only enable 2G or 2G+5G or 2G+6G.

Thanks

cool,

then please post the output of ubus call system board.

Hi frollic,
the output of ubus call system board as below,
any suggestion about the wireless configuration of 2G+5G or 2G+6G?

/ # ubus call system board
{
        "kernel": "5.4.179",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 0",
        "release": {
                "distribution": "OpenWrt",
                "version": "21.02.2",
                "revision": "r16495-bf0c965af0",
                "description": "OpenWrt 21.02.2 r16495-bf0c965af0"
        }
}