Howto

simple test was done with static IP, an ad-hoc network named "test" 
and no security:

iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid "test"
ifconfig wlan0 add <ipaddr>
ifconfig wlan0 netmask <mask>
ifconfig wlan0 up

iwlist wlan0 scanning

ping <other-ip>

