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 @@ -1979,7 +1979,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
1979
1979
1980
1980
cancel_work_sync (& vif -> ws_scan );
1981
1981
cancel_work_sync (& vif -> ws_scan_timeout );
1982
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 84 )
1983
+ timer_delete_sync (& vif -> scan_complete );
1984
+ #else
1982
1985
del_timer_sync (& vif -> scan_complete );
1986
+ #endif
1983
1987
1984
1988
/* If there's a pending scan, call cfg80211_scan_done to finish it. */
1985
1989
if (vif -> scan_request ) {
@@ -1990,7 +1994,11 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
1990
1994
}
1991
1995
1992
1996
/* Make sure that no work is queued */
1997
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 84 )
1998
+ timer_delete_sync (& vif -> scan_timeout );
1999
+ #else
1993
2000
del_timer_sync (& vif -> scan_timeout );
2001
+ #endif
1994
2002
cancel_work_sync (& vif -> ws_connect );
1995
2003
cancel_work_sync (& vif -> ws_disconnect );
1996
2004
You can’t perform that action at this time.
0 commit comments