THIS ONLY APPLIES TO THE WGT634U
This is for AP mode. For client mode, follow ClientModeHowto or ClientMode_(Managed_Mode)_with_WPA-Supplicant.
Wireless, by default, isn't on, or working. Follow these steps to set it up:
ipkg install kmod-madwifi
-OR-
ipkg install kmod-madwifi-old (thanks J4k3!)
#!/bin/sh
wlanconfig ath0 create wlandev wifi0 wlanmode ap
iwconfig ath0 essid "OpenWrt"
## At this place, you can also make other settings like channel, wep, key etc.
ifup ath0
# OL: for some reason I have to ifup ath0 before running iwconfig in order to set the channel etc.
ath_pci
ath_pci autocreate=ap
lan_ifnames="vlan0 ath0"
ifup lan