aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/wpa_supplicant
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-03-23 22:37:12 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-06-26 09:00:55 +0000
commitded53e898c7be6d610e94c1746fd22304f5c5988 (patch)
tree91cfc914c0d947d1f43cc6ddb30efad6e6d444d1 /libexec/rc/rc.d/wpa_supplicant
parenta3a5f67d394999dc79be1c32a02ae659eea24963 (diff)
downloadsrc-ded53e898c7be6d610e94c1746fd22304f5c5988.tar.gz
src-ded53e898c7be6d610e94c1746fd22304f5c5988.zip
rc/WPA: driver_bsd.c: backout upstream IFF_ change and add logging
This reverts the state to our old supplicant logic setting or clearing IFF_UP if needed. In addition this adds logging for the cases in which we do (not) change the interface state. Depending on testing this seems to help bringing WiFi up or not log any needed changes (which would be the expected wpa_supplicant logic now). People should look out for ``(changed)`` log entries (at least if debugging the issue; this way we will at least have data points). There is a hypothesis still pondered that the entire IFF_UP toggling only exploits a race in net80211 (see further discssussions for more debugging and alternative solutions see D38508 and D38753). That may also explain why the changes to the rc startup script [1] only helped partially for some people to no longer see the continuous CTRL-EVENT-SCAN-FAILED. It is highly likely that we will want further changes and until we know for sure that people are seeing ''(changed)'' events this should stay local. Should we need to upstream this we'll likely need #ifdef __FreeBSD__ around this code. Remove ifconfig down/up workaround (bfb202c4554a) in rc.d/wpa_supplicant as it is no longer needed. [1] 5fcdc19a81115d975e238270754e28557a2fcfc5 and d06d7eb09131edea666bf049d6c0c55672726f76 Sponsored by: The FreeBSD Foundation Reviewed by: cy, enweiwu (earlier) Differential Revision: https://reviews.freebsd.org/D38807 (cherry picked from commit bfb202c4554a72383202a1a401d80721935b8c95) Reviewed by: bz (for wireless) Differential Revision: https://reviews.freebsd.org/D39257 (cherry picked from commit 052211e08c0e227277d0c4dc603bba2253eb3d73)
Diffstat (limited to 'libexec/rc/rc.d/wpa_supplicant')
-rwxr-xr-xlibexec/rc/rc.d/wpa_supplicant6
1 files changed, 0 insertions, 6 deletions
diff --git a/libexec/rc/rc.d/wpa_supplicant b/libexec/rc/rc.d/wpa_supplicant
index e7a34e6c5f6e..8a86fec90e4d 100755
--- a/libexec/rc/rc.d/wpa_supplicant
+++ b/libexec/rc/rc.d/wpa_supplicant
@@ -12,7 +12,6 @@
name="wpa_supplicant"
desc="WPA/802.11i Supplicant for wireless network devices"
-start_postcmd="wpa_poststart"
rcvar=
ifn="$2"
@@ -28,11 +27,6 @@ is_ndis_interface()
esac
}
-wpa_poststart() {
- ifconfig ${ifn} down
- ifconfig ${ifn} up
-}
-
if is_wired_interface ${ifn} ; then
driver="wired"
elif is_ndis_interface ${ifn} ; then