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)
1974
1974
1975
1975
cancel_work_sync (& vif -> ws_scan );
1976
1976
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
1977
1980
del_timer_sync (& vif -> scan_complete );
1981
+ #endif
1978
1982
1979
1983
/* If there's a pending scan, call cfg80211_scan_done to finish it. */
1980
1984
if (vif -> scan_request ) {
@@ -1985,7 +1989,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
1985
1989
}
1986
1990
1987
1991
/* 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
1988
1995
del_timer_sync (& vif -> scan_timeout );
1996
+ #endif
1989
1997
cancel_work_sync (& vif -> ws_connect );
1990
1998
cancel_work_sync (& vif -> ws_disconnect );
1991
1999
You can’t perform that action at this time.
0 commit comments