3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01: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; struct watch_group *group = data;
const uint64_t *wdev_id = user_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; return true;
}
if (group->id != 0) if (group->id != 0)
return false; return false;