From 914d875dc2ea2e410c422cf9d027d33e47396cdf Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 16 Nov 2015 16:51:54 +0100 Subject: [PATCH] wifi: fix handling APs list using string-hashing Commit d51827801128564c31dc5f9cc31db18f1bf7ae79 changed the hashing for the APs to use direct-hashing. That was wrong because get_ap_by_path() needs a full string-comparison. Fixes: d51827801128564c31dc5f9cc31db18f1bf7ae79 --- src/devices/wifi/nm-device-wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index a9fb6c82bd..0eeb8459ce 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -2881,7 +2881,7 @@ nm_device_wifi_init (NMDeviceWifi *self) NMDeviceWifiPrivate *priv = NM_DEVICE_WIFI_GET_PRIVATE (self); priv->mode = NM_802_11_MODE_INFRA; - priv->aps = g_hash_table_new (g_direct_hash, g_direct_equal); + priv->aps = g_hash_table_new (g_str_hash, g_str_equal); } static void