Previously, SIOCG80211NWID would return the "desired" netname if the interface was up, even if it was the empty string.  This tends to confuse users who have not set the desired net name (ie: associate with any AP).  Now we only return the desired net name if it is not empty and the interface is up.  Otherwise we return the current net name (ie: what we are associated with).
Previously, SIOCG80211NWID would return the "desired" netname if
the interface was up, even if it was the empty string.  This tends
to confuse users who have not set the desired net name (ie: associate
with any AP).  Now we only return the desired net name if it is not
empty and the interface is up.  Otherwise we return the current
net name (ie: what we are associated with).

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars