Skip to content

wifi interface do not always get deconfigured correctly #1222

@pony1k

Description

@pony1k

After removing list modes 'ieee80211s' in config lime-wifi-band '2ghz' section in lime-node, when I run lime-config, wlan1-mesh (2 GHz) is still being configured.

root@kh-ab3657:~# lime-config 
Mac-config: lime-0cea14ab3657
Clearing wireless config...
Clearing network config...
Disabling odhcpd
Cleaning dnsmasq
Disabling 6relayd...
network.scandevices found device eth0 in board.json
network.scandevices.owrt_ifname_parser found ifname wlan0-mesh
network.scandevices.dev_parser found WiFi device wlan0-mesh
network.scandevices.owrt_ifname_parser found ifname wlan1-apname
network.scandevices.dev_parser found WiFi device wlan1-apname
network.scandevices.dev_parser found plain Ethernet device eth0
network.scandevices.dev_parser found WiFi device wlan0-ap
network.scandevices.dev_parser found WiFi device wlan0-mesh
network.scandevices.dev_parser found WiFi device wlan1-ap
network.scandevices.dev_parser found WiFi device wlan1-mesh
Configuring system...
Let uhttpd listen on IPv4/IPv6
Applying generic configs:
 uhttpd_https
 Error on generic config uci_set: uhttpd.main.redirect_https=0
Done applying generic configs.
Copying assets:
Done copying assets.
Running assets on ATCONFIG :
Done running assets.

This is because it was still present in /sys/class/net. I believe these lines could safely be removed:

elseif dev:match("^wlan%d+"..wireless.WIFI_MODE_SEPARATOR().."%w+$") then
utils.log( "network.scandevices.dev_parser found WiFi device %s",
dev )

The correct wifi interfaces are still found by these lines:
--! Scrape from uci wireless
local uci = config.get_uci_cursor()
uci:foreach("wireless", "wifi-iface", owrt_ifname_parser)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions