[Bug 256957] Wi-Fi: rc.conf(5) NOAUTO, ifconfig(8) up and unwanted WLAN connections to open networks

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Jul 2021 13:15:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256957

            Bug ID: 256957
           Summary: Wi-Fi: rc.conf(5) NOAUTO, ifconfig(8) up and unwanted
                    WLAN connections to open networks
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: grahamperrin@gmail.com

If     ifconfig_wlan0    includes   NOAUTO 
and if open networks are within range, 
then   ifconfig wlan0 up
results in association with an open network; 
one that is not specified in /etc/wpa_supplicant.conf


### Environments

First observed with FreeBSD 14.0-CURRENT. 

Reproducible at another computer with 13.0-RELEASE-p3, with 
/etc/wpa_supplicant.conf comprising the lines below (psk not disclosed): 

----

ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
    ssid="piano"
    scan_ssid=0
    psk="…"
    priority=5
}
# network={
#     priority=0
#     key_mgmt=NONE
# }

----

/etc/rc.conf comprises: 

----

hostname="mowa219-gjp4-ev631-freebsd-13"
keymap="uk.kbd"

wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP NOAUTO"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
create_args_wlan0="country GB regdomain ETSI"

ifconfig_re0="DHCP"

ntpdate_enable="YES"
ntpd_enable="YES"
dumpdev="AUTO"
savecore_enable="YES"
sddm_enable="NO"
dbus_enable="NO"
kld_list="i915kms"

-- 
You are receiving this mail because:
You are the assignee for the bug.