3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

frame-watch: Actually unregister removed groups

Actually close the sockets for removed groups an free resources
This commit is contained in:
Andrew Zaborowski 2020-02-04 12:23:04 +01:00 committed by Denis Kenzior
parent c4b2f10483
commit 1df4cb5be7

View File

@ -362,8 +362,10 @@ static bool frame_watch_group_remove_wdev(void *data, void *user_data)
struct watch_group *group = data;
const uint64_t *wdev_id = user_data;
if (group->wdev_id == *wdev_id)
if (group->wdev_id == *wdev_id) {
frame_watch_group_destroy(group);
return true;
}
if (group->id != 0)
return false;