File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 , 15 , 0 )
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 , 15 , 0 )
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
You can’t perform that action at this time.
0 commit comments