Question: how to connect 2 laptops via wifi?
Answer: On the next dialog, click on the Setup a new connection or network link towards the bottom.
In the new connection dialog, scroll down till you see the Setup a wireless ad hoc (computer-to-computer) network option.