aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-09-09 00:20:52 +0000
committerCy Schubert <cy@FreeBSD.org>2021-11-04 18:30:25 +0000
commit33b73d010d01ef24739562f93e7156448045d720 (patch)
tree588ecf074dd2e1c39a0219f9ba68d453df38d8ea
parentf9d2cbc6a5267003042663e0311d1b9d86ba4e36 (diff)
wpa: Address CTRL-EVENT-SCAN-FAILED
5fcdc19a8111 didn't fully resolve the issue. There remains a report that an ifconfig wlan0 up by itself is insufficient. Ifconfig down must precede it. Reported by: Filipe da Silva Santos <contact _ shiori_com_br> Fixes: 5fcdc19a8111 (cherry picked from commit d06d7eb09131edea666bf049d6c0c55672726f76)
-rwxr-xr-xlibexec/rc/rc.d/wpa_supplicant2
1 files changed, 2 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/wpa_supplicant b/libexec/rc/rc.d/wpa_supplicant
index 3c5c9d243f68..9e5f64a5373f 100755
--- a/libexec/rc/rc.d/wpa_supplicant
+++ b/libexec/rc/rc.d/wpa_supplicant
@@ -29,6 +29,8 @@ is_ndis_interface()
}
wpa_poststart() {
+ ifconfig ${ifn} down
+ sleep 2
ifconfig ${ifn} up
}