wifi: fix handling APs list using string-hashing

Commit d518278011 changed
the hashing for the APs to use direct-hashing.

That was wrong because get_ap_by_path() needs a full
string-comparison.

Fixes: d518278011
This commit is contained in:
Thomas Haller 2015-11-16 16:51:54 +01:00
parent 3e3bceb6db
commit 914d875dc2

View file

@ -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