3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

device: Update to the new watchlist API

This commit is contained in:
Denis Kenzior 2017-08-31 17:58:23 -05:00
parent 2071fb7836
commit 0fa0d49adc

View File

@ -2081,7 +2081,7 @@ struct device *device_create(struct wiphy *wiphy, struct netdev *netdev)
device = l_new(struct device, 1);
device->bss_list = l_queue_new();
device->networks = l_hashmap_new();
watchlist_init(&device->state_watches);
watchlist_init(&device->state_watches, NULL);
l_hashmap_set_hash_function(device->networks, l_str_hash);
l_hashmap_set_compare_function(device->networks,
(l_hashmap_compare_func_t) strcmp);
@ -2177,7 +2177,7 @@ bool device_init(void)
NULL, false))
return false;
watchlist_init(&device_watches);
watchlist_init(&device_watches, NULL);
device_list = l_queue_new();
return true;