if i understand right, basically you asking if an equipment can connect to a WLAN without knowing the access code ... i find that unrealistic because it will be such a security failure, if such option exist anyone can access to any network. I didn't really work with Wifi module, but in a project i tried to learn about microchip wifi solutions so out of the box, your product need to act as an access point with an embedded server , you can connect to the thing with your labtop or phone it will show any wifi network available, you select it , configure it , and then the same wifi module will act as a client and connect to the chosen network.