Bug#1003907: fails to successfully associate

Masashi Honma <[email protected]> Sun, 23 Jan 2022 10:30:44 +0900
Newsgroups gmane.linux.debian.devel.bugs.rc,gmane.linux.drivers.hostap
Message-ID <CAFk-A4m3CORK-wi5_pdMaROL4zQVT_6WaH+8Kg_JzjyF-W5NDw@mail.gmail.com>
2022=E5=B9=B41=E6=9C=8819=E6=97=A5(=E6=B0=B4) 19:13 Michael Biebl <biebl@de=
bian.org>:
> I tried the various versions from snapshots.d.o
>
> 2:2.9.0-23 - works
> 2:2.9.0+git20200221+f65da0c-1 - works
> 2:2.9.0+git20200517+dd2daf0-1 - doesn't work
> 2:2.9.0+git20210909+a75fdcd-1 - doesn't work
> 2:2.9.0+git20211018+2e122945fa53-1 - doesn't work
> 2:2.9.0+git20211116+0b853303ae31-1 - doesn't work
> 2:2.10-1 - doesn't work
>
>
> I then went on and disabled WPA2+WPA3 mode on the Wi-Fi router and set
> it to WPA2 (CCMP).
>
> After that, the connection was established successfully with 2.10.
>
> If I remember correctly, my hardware doesn't support WPA3, but since I
> enabled support for both WPA2+WPA3, it should fall back to WPA2.
>
> Obviously I'd like to keep WPA3 enabled for newer clients.
>
> Regards,
> Michael

Could you try this patch to latest wpa_supplicant ?

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplican=
t.c
index d37a994f9..626e26e4f 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -7976,17 +7976,10 @@ int wpas_network_disabled(struct
wpa_supplicant *wpa_s, struct wpa_ssid *ssid)

 int wpas_get_ssid_pmf(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
 {
-       if (ssid =3D=3D NULL || ssid->ieee80211w =3D=3D MGMT_FRAME_PROTECTI=
ON_DEFAULT) {
-               if (wpa_s->conf->pmf =3D=3D MGMT_FRAME_PROTECTION_OPTIONAL =
&&
-                   !(wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_BIP)) {
-                       /*
-                        * Driver does not support BIP -- ignore pmf=3D1 de=
fault
-                        * since the connection with PMF would fail and the
-                        * configuration does not require PMF to be enabled=
.
-                        */
-                       return NO_MGMT_FRAME_PROTECTION;
-               }
+       if (!(wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_BIP))
+               return NO_MGMT_FRAME_PROTECTION;

+       if (ssid =3D=3D NULL || ssid->ieee80211w =3D=3D MGMT_FRAME_PROTECTI=
ON_DEFAULT) {
                if (ssid &&
                    (ssid->key_mgmt &
                     ~(WPA_KEY_MGMT_NONE | WPA_KEY_MGMT_WPS |

Regards,
Masashi Honma.