Contents

OpenBSD: No wireless network after upgrading to 7.1

Note
The name of my wireless network interface is iwn0 (you can list your network interfaces via ifconfig) - remember to replace according to your device name.

Problem

After upgrading to OpenBSD 7.1 I was no longer able to connect to my wireless network after booting. Setting wifi up manually via command line:

1
ifconfig %YOURWIRELESSINTERFACENAME% nwid %YOURNETWORKID% wpa wpakey %YOURWPAKEY%

worked flawlessly, but after every boot, my computer was not connected to my wireless network anymore.

Solution

Originally, my /etc/hostname.iwn0 looked like this:

1
dhcp nwid %YOURNETWORKID% wpakey %YOURWPAKEY%

After changing it to:

1
2
join %YOURNETWORKID% wpakey %YOURWPAKEY%
inet autoconf

and rebooting, wirless network was working again.

References