WAN comes from wifi in station mode
From Entuura
Here is a working config for getting your WAN access from wi-fi:
Put this in /etc/config/wireless:
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'channel' 'auto'
config 'wifi-iface'
option 'device' 'wifi0'
option 'network' 'wan'
option 'mode' 'sta'
option 'encryption' 'none'
option 'ssid' 'Leeds Met Wireless'
And put this in /etc/config/network (replacing the wan section that's there)
config 'interface' 'wan'
option 'ifname' 'ath0'
option 'proto' 'dhcp'
At Leeds Met, you have to use this script to overcome the stupid captive portal. (Yes, it's OK for us to use a captive portal, just not OTHER people. It's a double standard, get over it.)
#!/bin/sh
# et-nti: connect when behind the stupid captive portal at NTI
wget -O/dev/null --post-data \
"which_form=reg&bs_name=nti_user&bs_password=password" \
--no-check-certificate "https://160.9.163.2/login.pl"
