Introduce 'auto-join' to the wifi 802.11 stack.
authorphessler <phessler@openbsd.org>
Wed, 11 Jul 2018 20:18:09 +0000 (20:18 +0000)
committerphessler <phessler@openbsd.org>
Wed, 11 Jul 2018 20:18:09 +0000 (20:18 +0000)
commit020402a2d9a78338a2f43a558b13c1ceec7f9eae
treed4c9c0f5dde2ae9b8b17f8581f8f17078a218e1f
parent955497113c24aac6990c8c23a5deb73c57372b1c
Introduce 'auto-join' to the wifi 802.11 stack.

This allows a system to remember which ESSIDs it wants to connect to, any
relevant security configuration, and switch to it when the network we are
currently connected to is no longer available.

Works when connecting and switching between WPA2/WPA1/WEP/clear encryptions.

example hostname.if:
join home wpakey password
join work wpakey mekmitasdigoat
join open-lounge
join cafe wpakey cafe2018
join "wepnetwork" nwkey "12345"
dhcp
inet6 autoconf
up

OK stsp@ reyk@
and enthusiasm from every hackroom I've been in for the last 3 years
sbin/ifconfig/ifconfig.8
sbin/ifconfig/ifconfig.c
sys/net80211/ieee80211_ioctl.c
sys/net80211/ieee80211_ioctl.h
sys/net80211/ieee80211_node.c
sys/net80211/ieee80211_node.h
sys/net80211/ieee80211_var.h