wifi: fix WPS PBC string typo

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

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/845
This commit is contained in:
Wade Berrier 2021-05-07 14:57:37 -06:00 committed by Thomas Haller
parent 661934e48e
commit 3839db5191
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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