Default AD-HOC

I have done this before but have forgotten since reinstalling my rom, i had modified some file i think to allow my Xperia Go to connect to an AD-HOC wireless network. Can anyone remind me the procedure? (answers get +thanks )