Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions vwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)

cancel_work_sync(&vif->ws_scan);
cancel_work_sync(&vif->ws_scan_timeout);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 84)
timer_delete_sync(&vif->scan_complete);
#else
del_timer_sync(&vif->scan_complete);
#endif

/* If there's a pending scan, call cfg80211_scan_done to finish it. */
if (vif->scan_request) {
Expand All @@ -1985,7 +1989,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
}

/* Make sure that no work is queued */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 84)
timer_delete_sync(&vif->scan_timeout);
#else
del_timer_sync(&vif->scan_timeout);
#endif
cancel_work_sync(&vif->ws_connect);
cancel_work_sync(&vif->ws_disconnect);

Expand Down