I frequently travel by buses, most of which have some sort of WiFi onboard. The usual way to connect to them with an automagical connection manager like Wicd is to select the network and then, upon launching the browser some additional authentication takes place and I'm done. But OpenBSD has no such manager, so I came to use and like the standard ifconfig
method. In the standard case, where I have e.g. WEP2 encryption and password authentication, the way to go about it is to first run:
ifconfig iwn0 nwid <network_id> wpakey <password>
and after that:
dhclient iwn0
The question is how to connect in the bus case, where there's no password? So far I tried several things like not specifying the password at all or giving an empty password (rejected immediately), but all of them resulted in output like this:
iwn0: no link ............. sleeping
upon running dhclient
.