mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 04:08:01 +02: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) (cherry picked from commit1caae3743d) (cherry picked from commitd0ee773221)
This commit is contained in:
parent
ff6ef0d696
commit
1f48f89459
1 changed files with 11 additions and 3 deletions
|
|
@ -215,9 +215,17 @@ update_capabilities (NMSupplicantManager *self)
|
|||
if (value) {
|
||||
if (g_variant_is_of_type (value, G_VARIANT_TYPE_STRING_ARRAY)) {
|
||||
array = g_variant_get_strv (value, NULL);
|
||||
if (_nm_utils_string_in_list ("fast", array))
|
||||
priv->fast_supported = TRUE;
|
||||
g_free (array);
|
||||
if (array) {
|
||||
const char **a;
|
||||
|
||||
for (a = array; *a; a++) {
|
||||
if (g_ascii_strcasecmp (*a, "FAST") == 0) {
|
||||
priv->fast_supported = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
g_free (array);
|
||||
}
|
||||
}
|
||||
g_variant_unref (value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue