diff options
author | Thomas Haller <thaller@redhat.com> | 2017-01-18 17:52:04 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-01-18 18:56:01 +0100 |
commit | 66ff601ecff0c740f449b61489397b75393f6ff2 (patch) | |
tree | 1ca06bb4b4ee1e6d31f2a4341bc95c86ae85e349 /src | |
parent | d5685c183ca6edde0b22dd73d7ff0309c86ccae5 (diff) | |
download | NetworkManager-66ff601ecff0c740f449b61489397b75393f6ff2.tar.gz |
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: 9f5f141100e390015341aee1f2fb50f7626da3b1
Diffstat (limited to 'src')
-rw-r--r-- | src/supplicant/nm-supplicant-manager.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/supplicant/nm-supplicant-manager.c b/src/supplicant/nm-supplicant-manager.c index 2fbfa391ba..e62fab049d 100644 --- a/src/supplicant/nm-supplicant-manager.c +++ b/src/supplicant/nm-supplicant-manager.c @@ -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); } } |