Skip to content

Commit

Permalink
Wireless drivers: port 8723cs to be compatible with kernel 6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jun 6, 2024
1 parent 9b16fad commit 6ded2e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/functions/compilation/patch/drivers_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ driver_rtl8723cs() {
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.8.patch" "applying"
fi

if linux-version compare "${version}" ge 6.9; then
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.9.patch" "applying"
fi

}

### The vendor's RTL8723DS driver is still required for RockPI-S support because
Expand Down
31 changes: 31 additions & 0 deletions patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 4d13c6ecde5727adcf46bb9895c07f1dbb92f8d7 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 15 Mar 2024 23:04:21 +0100
Subject: [PATCH] 8723cs: Port to v6.9

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
index 817041e4644b..9bf7bb782b7e 100644
--- a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c
@@ -452,14 +452,14 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
goto exit;

if (started) {
- cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
+ cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
goto exit;
}

if (!rtw_cfg80211_allow_ch_switch_notify(adapter))
goto exit;

- cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
+ cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);

exit:
return ret;

0 comments on commit 6ded2e4

Please sign in to comment.