Using Ad-Hoc Mode
Follow the instructions on UserDocs/AdHocInterface before proceeding with the instructions below.
(optional) This iwpriv command locks the NIC in the 802.11g-only mode
iwpriv ath0 mode 3
Set the type of network to ad-hoc
iwconfig ath0 mode ad-hoc
After you have your ad-hoc interface, set it up as normal:
Set the ESSID for the cell you want to connect to.
iwconfig ath0 essid yournetworkidhere
(optional) Set the network WEP key... Consult the iwconfig manpages to see other ways of setting a key. Here it is done using a string.
iwconfig ath0 key s:yourkeyhere
Set up your network using a static ip address.
ifconfig ath0 192.168.2.1