@@ -439,7 +439,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
439439
440440#if (LINUX_VERSION_CODE >= KERNEL_VERSION (3 , 19 , 0 ))
441441 if (started ) {
442- #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 3 , 0 ))
442+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 3 , 0 )) && ( LINUX_VERSION_CODE < KERNEL_VERSION ( 6 , 9 , 0 ))
443443 cfg80211_ch_switch_started_notify (adapter -> pnetdev , & chdef , 0 , 0 , false, 0 );
444444#elif (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
445445 cfg80211_ch_switch_started_notify (adapter -> pnetdev , & chdef , 0 , 0 , false);
@@ -454,7 +454,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
454454
455455 if (!rtw_cfg80211_allow_ch_switch_notify (adapter ))
456456 goto exit ;
457- #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 3 , 0 ))
457+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 3 , 0 )) && ( LINUX_VERSION_CODE < KERNEL_VERSION ( 6 , 9 , 0 ))
458458 cfg80211_ch_switch_notify (adapter -> pnetdev , & chdef , 0 , 0 );
459459#elif (LINUX_VERSION_CODE >= KERNEL_VERSION (5 ,19 , 2 ))
460460 cfg80211_ch_switch_notify (adapter -> pnetdev , & chdef , 0 );
0 commit comments