From 878652691458c5baef540a2284161934c72d925d Mon Sep 17 00:00:00 2001 From: Paolo Sabatino Date: Thu, 11 Jan 2024 20:18:42 +0100 Subject: [PATCH] rtl8723cs: fix driver compilation on kernel 6.7 --- .../compilation/patch/drivers_network.sh | 4 +++ .../8723cs-Port-to-6.7.patch | 34 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.7.patch diff --git a/lib/functions/compilation/patch/drivers_network.sh b/lib/functions/compilation/patch/drivers_network.sh index 4170377a77..a1be6e99cb 100644 --- a/lib/functions/compilation/patch/drivers_network.sh +++ b/lib/functions/compilation/patch/drivers_network.sh @@ -732,4 +732,8 @@ driver_rtl8723cs() { process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.5.patch" "applying" fi + if linux-version compare "${version}" ge 6.7; then + process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.7.patch" "applying" + fi + } diff --git a/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.7.patch b/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.7.patch new file mode 100644 index 0000000000..9f94759c80 --- /dev/null +++ b/patch/misc/wireless-rtl8723cs/8723cs-Port-to-6.7.patch @@ -0,0 +1,34 @@ +From 62ad3a8e79901b90be578d11e0aee8c5e1bd72bc Mon Sep 17 00:00:00 2001 +From: Paolo Sabatino +Date: Thu, 11 Jan 2024 20:13:20 +0100 +Subject: [PATCH] rtl8723cs: fix for kernel 6.7 + +--- + drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c | 5 +++-- + 1 file changed, 3 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 130e1a66886a..ba9816460f5a 100644 +--- a/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c ++++ b/drivers/staging/rtl8723cs/os_dep/linux/ioctl_cfg80211.c +@@ -5320,14 +5320,15 @@ static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev, + } + + static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev, +- struct cfg80211_beacon_data *info) ++ struct cfg80211_ap_update *info) + { + int ret = 0; ++ struct cfg80211_beacon_data *beacon = &info->beacon; + _adapter *adapter = (_adapter *)rtw_netdev_priv(ndev); + + RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); + +- ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len); ++ ret = rtw_add_beacon(adapter, beacon->head, beacon->head_len, beacon->tail, beacon->tail_len); + + return ret; + } +-- +2.34.1 +