Network basics wifi not working if lan is decoupled

im strugling to find out what is not right here:

uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd6d:d556:908d::/48'
network.lan=interface
network.lan.ifname='eth0'
network.lan.ip6assign='60'
network.lan.proto='dhcp'
network.lan.host='openwrt-lan'
network.lan_dev=device
network.lan_dev.name='eth0'
network.lan_dev.macaddr='9c:65:f9:29:e2:ad'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='0'
network.wifi=interface
network.wifi.proto='dhcp'
network.wifi.host='openwrt-wifi'

as every time i deplug the ethernet cable from my device wifi stops working as well.
i have a device with wifi on board and a single ethernet port on a developmentboard so in the end i like to get wifi working without the developmentboard.

Your /etc/config/wireless likely still contains "option network lan" which causes the wifi netdev to get attached to the lan interface. Try uci set wireless.@wifi-iface[0].network=wifi; uci commit wireless; wifi up

true! thanks that worked.

uci set wireless.@wifi-iface[0].network=wifi
uci commit wireless
wifi up

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.