mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
offchannel: always use -ECANCELED for cancelation
info->error gets reset to zero on a successful ROC callback which was getting used for cancelation.
This commit is contained in:
parent
4a8a43965f
commit
484dea8d7a
@ -231,7 +231,7 @@ void offchannel_cancel(uint64_t wdev_id, uint32_t id)
|
|||||||
|
|
||||||
destroy:
|
destroy:
|
||||||
if (info->destroy)
|
if (info->destroy)
|
||||||
info->destroy(info->error, info->user_data);
|
info->destroy(-ECANCELED, info->user_data);
|
||||||
|
|
||||||
info->destroy = NULL;
|
info->destroy = NULL;
|
||||||
info->started = NULL;
|
info->started = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user