Here is the configuration which works for me to make a WL-520gU associate as a client to my AP. Not everything is tested, but a web page created on the router with 'echo "<html><body><p>Hello, World from wl62</p></body></html>" > /www/hello.htm' is accessible from another PC wirelessly connected to the AP, that PC can ssh into the WL-520gU, the router is successful with "opkg update", and is successful with "ping www.google.com".
This is with trunk, r18957, and the 2.4 kernel.
Thanks to rjw4 in this thread: https://forum.openwrt.org/viewtopic.php … 589#p99589
And hscottm on this one: https://forum.openwrt.org/viewtopic.php?id=22644
And to many other postings which pointed the way but weren't quite there in terms that I could understand.
/etc/config/wireless
config wifi-device wl0
option type broadcom
option channel 6
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface
option device wl0
option network lan
option mode sta
option ssid Omnibus0
option encryption none
/etc/config/network
config 'switch' 'eth0'
option 'enable' '1'
config 'switch_vlan' 'eth0_0'
option 'device' 'eth0'
option 'vlan' '0'
option 'ports' '1 2 3 4 5*'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'type' 'bridge'
option 'ifname' 'eth0.0'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'dns' '192.168.1.1'
option 'gateway' '192.168.1.1'
option 'ipaddr' '192.168.1.60'
/etc/config/firewall
config defaults
option syn_flood 1
option input DROP
option output ACCEPT
option forward DROP
config zone
option name lan
option input ACCEPT
option output ACCEPT
option forward ACCEPT
option masq 1
config zone
option name wan
option input ACCEPT
option output ACCEPT
option forward ACCEPT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
...
Essentially, I have done away with the wan connection (might need it for other devices plugged into the router, but how do that without losing what I have?). I'm not sure that the firewall settings are needed or are safe. In particular, I don't know if the wan settings have any significance in the absence of wan in network or wireless.
Any suggestions for cleaning this up or extending it would be welcome.
(Last edited by lizby on 5 Jan 2010, 17:45)