Skip to content

Commit a5ac678

Browse files
authored
Merge pull request #342 from CGarces/kernel_6_9
Adapt to Kernel 6.9
2 parents 2741064 + 2fddecc commit a5ac678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

os_dep/linux/ioctl_cfg80211.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)