Skip to content

Commit 75f36f5

Browse files
committed
Support Linux v6.1.84
Update timer deletion to use the new timer_delete_sync() interface introduced in Linux commit 9b13df3f ("timers: Rename del_timer_sync() to timer_delete_sync()"), which replaces the older del_timer_sync() for naming consistency. The legacy del_timer_sync() interface remains as an inline wrapper but is discouraged for new code. Compatibility is maintained using a version check against KERNEL_VERSION(6, 1, 84).
1 parent d3114d3 commit 75f36f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vwifi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
19741974

19751975
cancel_work_sync(&vif->ws_scan);
19761976
cancel_work_sync(&vif->ws_scan_timeout);
1977+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 84)
1978+
timer_delete_sync(&vif->scan_complete);
1979+
#else
19771980
del_timer_sync(&vif->scan_complete);
1981+
#endif
19781982

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

19871991
/* Make sure that no work is queued */
1992+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 84)
1993+
timer_delete_sync(&vif->scan_timeout);
1994+
#else
19881995
del_timer_sync(&vif->scan_timeout);
1996+
#endif
19891997
cancel_work_sync(&vif->ws_connect);
19901998
cancel_work_sync(&vif->ws_disconnect);
19911999

0 commit comments

Comments
 (0)