Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2024 08:00:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 278306] service netif start doesn't bring up the wireless interface if /etc/wpa_supplicant.conf is missing
Message-ID:  <bug-278306-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278306

            Bug ID: 278306
           Summary: service netif start doesn't bring up the wireless
                    interface if /etc/wpa_supplicant.conf is missing
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: arrowd@FreeBSD.org

A fresh FreeBSD installation may end up with no /etc/wpa_supplicant.conf fi=
le
existing. It may happen when an user completely skipped any network interfa=
ces
setup in the installer.

Now, I do necessary adjustments in /etc/rc.conf

wlans_foo0=3Dwlan0
ifconfig_wlan0=3D"WPA DHCP"

then do

service netif restart

to apply them and then expect "ifconfig wlan0 scan" to give me a list of
networks available.

However, restarting the netif service results in

...
Destroyed wlan(4) interfaces: wlan0.
Created wlan(4) interfaces: wlan0.
/etc/rc.d/wpa_supplicant: WARNING: /etc/wpa_supplicant.conf is not readable.
/etc/rc.d/wpa_supplicant: WARNING: failed precmd routine for wpa_supplicant
Starting Network: lo0 wlan0.
...

This in turn leads to wlan0 interface remain in "down" state, which prevents
"ifconfig wlan0 scan" from returning anything useful.

>From an user perspective I found it a bit misleading. I wasted some time tr=
ying
to figure out why I don't see any networks until I ran "ifconfig wlan0 up".

Would it be possible to bring the interface up regardless of the
wpa_supplicant.conf file present?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278306-21060>