Restarting WiFi Connectivity after Return from FreeBSD Suspend


By default, at the time of writing this FreeBSD doesn't exit suspend with WiFi Active. You have to in my experience run sudo service netif restart wlan0 to get it back running.

As mentioned in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263632#c27 to get it to work you need to put the following in rc.suspend

/usr/sbin/service netif stop wlan0

And the following in rc.resume

/usr/sbin/service netif start wlan0

Note I put them before the line exit 0 which appears to work without issues.