[ ] fix build on OpenBSD
[ ] fix build on NetBSD
[ ] fix build on FreeBSD
[ ] test wifi functions after the last few commits