Skip to content

[bug] Wireless interfaces should be enlisted with DSA support on OpenWrt 21.02+ #230

@mfoxworthy

Description

@mfoxworthy

Option ifname has gone away and option device replaced it. Luci will fix it and it isn't really broken but just thought I'd mention it. I wouldn't have even noticed if I didn't have some users who use Luci. This screen will pop up:

Screen Shot 2022-05-10 at 9 44 41 AM

	option auto '1'
	option enabled '1'
        option ifname 'wlan0' <--- should be "option device 'wlan0'" for OpenWrt 21.02+
	option mtu '1500'
	option proto 'none'

This particular instance was seen when using the "Wireless Interface" interface template.

I believe the "name" key is getting translated as "ifname" and it should be translated to "device" in OpenWRT 21.02.X as per the OpenWRT documentation found in this link:

https://openwrt.org/releases/21.02/notes-21.02.0#new_network_configuration_syntax_and_boardjson_change

    "interfaces": [
        {
            "wireless": {
                "network": [
                    "lan"
                ],
                "mode": "access_point",
                "radio": "radio0",
                "ack_distance": 0,
                "rts_threshold": 0,
                "frag_threshold": 0,
                "ssid": "{{ def_ssid }}",
                "hidden": false,
                "wds": false,
                "encryption": {
                    "protocol": "wpa2_personal_mixed",
                    "key": "SturdyNet1!",
                    "disabled": false,
                    "cipher": "ccmp",
                    "ieee80211w": "1"
                },
                "wmm": true,
                "isolate": false,
                "ieee80211r": false,
                "reassociation_deadline": 1000,
                "ft_psk_generate_local": false,
                "ft_over_ds": true,
                "rsn_preauth": false,
                "macfilter": "disable",
                "maclist": []
            },
            "type": "wireless",
            "name": "wlan0",
            "mtu": 1500,
            "disabled": false,
            "network": "wifinet0",
            "mac": "",
            "autostart": true,
            "addresses": []
        },

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions