If you are using the S6 module, then I would suggest going to the following website:
If you are using the S6B, ad-hoc isn't yet supported. You may be able to create a network, but data communications are not enabled. The next version of firmware will include both ad-hoc and soft AP modes that will make using a portable WiFi device such as a smartphone or tablet possible.
Check the AI status. If it is anything other than 0x00, it means the radios are not joined up to a network (in this case, just the two)