mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 12:18:13 +02:00
wifi: fix checking AP mode and EAP-FAST support
Classic strcmp() return value thinko. Oops.
This commit is contained in:
parent
cf1d2f81f2
commit
c73e891a4c
1 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ get_capabilities_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_
|
|||
if (value && G_VALUE_HOLDS (value, G_TYPE_STRV)) {
|
||||
priv->ap_support = AP_SUPPORT_NO;
|
||||
for (iter = g_value_get_boxed (value); iter && *iter; iter++) {
|
||||
if (strcasecmp (*iter, "ap"))
|
||||
if (strcasecmp (*iter, "ap") == 0)
|
||||
priv->ap_support = AP_SUPPORT_YES;
|
||||
}
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ get_capabilities_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_
|
|||
value = g_hash_table_lookup (props, "EapMethods");
|
||||
if (value && G_VALUE_HOLDS (value, G_TYPE_STRV)) {
|
||||
for (iter = g_value_get_boxed (value); iter && *iter; iter++) {
|
||||
if (strcasecmp (*iter, "fast"))
|
||||
if (strcasecmp (*iter, "fast") == 0)
|
||||
priv->fast_supported = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue