38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
|
From f507578759ec1331a155299a3f6d9ed1daa93682 Mon Sep 17 00:00:00 2001
|
||
|
From: Paolo Sabatino <paolo.sabatino@gmail.com>
|
||
|
Date: Wed, 26 Apr 2023 21:03:07 +0000
|
||
|
Subject: [PATCH] fix rtl8812au driver for kernel 6.3
|
||
|
|
||
|
---
|
||
|
.../net/wireless/rtl8812au/os_dep/linux/ioctl_cfg80211.c | 6 +++++-
|
||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/drivers/net/wireless/rtl8812au/os_dep/linux/ioctl_cfg80211.c b/drivers/net/wireless/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
||
|
index f1a5493663cf..4a28b8258c54 100644
|
||
|
--- a/drivers/net/wireless/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
||
|
+++ b/drivers/net/wireless/rtl8812au/os_dep/linux/ioctl_cfg80211.c
|
||
|
@@ -460,7 +460,9 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
|
||
|
|
||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
|
||
|
if (started) {
|
||
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
||
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
|
||
|
+ cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
|
||
|
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
||
|
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
|
||
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0))
|
||
|
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
|
||
|
@@ -475,6 +477,8 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
|
||
|
goto exit;
|
||
|
|
||
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
||
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
|
||
|
+ cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
|
||
|
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
||
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
||
|
#else
|
||
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
||
|
--
|
||
|
2.34.1
|
||
|
|