I futzed with my setup for hours before I figured out that single quotes around the key are pretty much required, at least in my case...
Before I noticed this, it was quite bewildering, as iwconfig showed the AP's MAC address as associated, but wl0 could never get a DHCP offer.
Here's what my config looks like now:
Code: Select all
config wifi-device wl0
option type broadcom
option channel 1
# REMOVE THIS LINE TO ENABLE WIFI:
# option disabled 1
config wifi-iface
option device wl0
option network wan
option mode sta
option ssid MySSID
option encryption psk2
option key 'MyWPA2Key'