>From my knowledge, during first boot the file /etc/config/wireless is written. If you remove it, it can be recreated with a console command (don't know at the moment but it's somewhere in OpenWrt-Wiki) If you remove one "wifi-device" from config file Luci will no longer recognize it. Why not using uci and read /etc/config/wireless.