OpenWrt Forum Archive

Topic: Deleted /etc/config/wireless file

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I was following the method of this link: http://wiki.openwrt.org/doc/recipes/rou … masquerade
To put my wrt54gl in wireless client mode. However i deleted the  /etc/config/wireless file by mistake...

root@192.168.1.1:~$ uci set wireless.@wifi-iface[0].mode=sta
/bin/uci: export: 1: CONFIG_wifi-iface[0].@wifi-iface[0].mode_TYPE: bad variable name
root@192.168.1.1:~$ iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

eth1      No scan results
br0       Interface doesn't support scanning.

vlan0     Interface doesn't support scanning.

vlan1     Interface doesn't support scanning.

Could anyone help please? Much appreciated

wifi detect > /etc/config/wireless

Thanks m8 smile

rm -f /etc/config/wireless
wifi detect > /etc/config/wireless
wifi

The discussion might have continued from here.