mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
bsdinstall: wlanconfig: ensure the interface is always up for scanning
Sponsored by: The FreeBSD Foundation
Reviewed by: thj (earlier), emaste
Differential Revision: https://reviews.freebsd.org/D51312
(cherry picked from commit 153e73d782)
This commit is contained in:
parent
c09dfb35ef
commit
0b2faedaa6
1 changed files with 6 additions and 0 deletions
|
|
@ -200,6 +200,12 @@ fi
|
|||
|
||||
while :; do
|
||||
SCANSSID=0
|
||||
# While wpa_supplicant may IFF_UP the interface, we do not want to rely
|
||||
# in this. In case the script is run manually (outside the installer,
|
||||
# e.g., for testing) wpa_supplicant may be running and the wlanN
|
||||
# interface may be down (especially if dialog_country_select is not
|
||||
# run successfully either) and scanning will not work.
|
||||
f_eval_catch -d wlanconfig ifconfig "ifconfig $WLAN_IFACE up"
|
||||
f_eval_catch -d wlanconfig wpa_cli "wpa_cli scan"
|
||||
f_dialog_title "Scanning"
|
||||
f_dialog_pause "Waiting 5 seconds to scan for wireless networks..." 5 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue