mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 07:50:16 +01:00
supplicant: fix detection of EAP-FAST
At least with my supplicant, the capability is called all-upper-case "FAST". The check used case-insensitive, but that was broken by a previous change. Fixes:9f5f141100(cherry picked from commit66ff601ecf)
This commit is contained in:
parent
90f097b9f5
commit
1caae3743d
1 changed files with 8 additions and 2 deletions
|
|
@ -223,8 +223,14 @@ update_capabilities (NMSupplicantManager *self)
|
|||
if (g_variant_is_of_type (value, G_VARIANT_TYPE_STRING_ARRAY)) {
|
||||
array = g_variant_get_strv (value, NULL);
|
||||
if (array) {
|
||||
if (g_strv_contains (array, "fast"))
|
||||
priv->fast_supported = TRUE;
|
||||
const char **a;
|
||||
|
||||
for (a = array; *a; a++) {
|
||||
if (g_ascii_strcasecmp (*a, "FAST") == 0) {
|
||||
priv->fast_supported = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
g_free (array);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue