wifi: fix caching ap-flags for supplicant-interface

Fixes: b83f07916a ('supplicant: large rework of wpa_supplicant handling')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/631
(cherry picked from commit 1d04770002)
This commit is contained in:
Thomas Haller 2021-01-18 08:32:59 +01:00
parent c1870b389d
commit 66fc6dd692
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -582,7 +582,7 @@ _bss_info_properties_changed(NMSupplicantInterface *self,
if (v_v) {
if (g_variant_lookup(v_v, "Type", "&s", &v_s)) {
p_ap_flags = NM_802_11_AP_FLAGS_WPS;
f = NM_802_11_AP_FLAGS_WPS;
if (nm_streq(v_s, "pcb"))
f |= NM_802_11_AP_FLAGS_WPS_PBC;
else if (nm_streq(v_s, "pin"))