From 1caae3743d59fcf7ff5f46da70796325ad824f5d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 18 Jan 2017 17:52:04 +0100 Subject: [PATCH] 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 (cherry picked from commit 66ff601ecff0c740f449b61489397b75393f6ff2) --- src/supplicant/nm-supplicant-manager.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/supplicant/nm-supplicant-manager.c b/src/supplicant/nm-supplicant-manager.c index 2fbfa391b..e62fab049 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); } }