freebsd-dev/contrib/wpa/src
Bjoern A. Zeeb bfb202c455 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.

[1] 5fcdc19a81 and
    d06d7eb091

Sponsored by:	The FreeBSD Foundation
MFC after:	10 days
Reviewed by:	cy, enweiwu (earlier)
Differential Revision: https://reviews.freebsd.org/D38807
2023-03-23 23:51:24 +00:00
..
ap wpa: Import wpa_supplicant/hostapd commit b26f5c0fe 2022-01-06 10:30:51 -08:00
common wpa: Import wpa 2.10. 2022-01-18 08:17:08 -08:00
crypto wpa: Import wpa 2.10. 2022-01-18 08:17:08 -08:00
drivers WPA: driver_bsd.c: backout upstream IFF_ change and add logging 2023-03-23 23:51:24 +00:00
eap_common wpa: Import wpa 2.10. 2022-01-18 08:17:08 -08:00
eap_peer wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
eap_server wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
eapol_auth wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
eapol_supp wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
fst wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
l2_packet wpa: Correctly call pcap_next_ex() 2022-04-14 06:16:45 -07:00
p2p wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
pae wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
radius wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
rsn_supp wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
tls wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
utils wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
wps wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816 2021-12-02 15:08:52 -08:00
build.rules wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
lib.rules wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
Makefile wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00
objs.mk wpa: Import wpa_supplicant/hostapd commits up to b4f7506ff 2021-09-03 06:08:41 -07:00