From ec361e7d10b2763df43965d62d0a1c32c166b8a6 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Sun, 18 May 2025 01:30:42 +0200 Subject: [PATCH] package/rtl8723ds: fix build failure with Linux 6.14 Add local patch pending upstream to fix build failure with Linux 6.14 Fixes: https://autobuild.buildroot.org/results/f6421f9669934686e1ff881b9618198afc9e1259/ Signed-off-by: Giulio Benetti Signed-off-by: Julien Olivain --- .../0002-Fix-build-with-Linux-6.14.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/rtl8723ds/0002-Fix-build-with-Linux-6.14.patch diff --git a/package/rtl8723ds/0002-Fix-build-with-Linux-6.14.patch b/package/rtl8723ds/0002-Fix-build-with-Linux-6.14.patch new file mode 100644 index 0000000000..3027489e33 --- /dev/null +++ b/package/rtl8723ds/0002-Fix-build-with-Linux-6.14.patch @@ -0,0 +1,33 @@ +From d75e35dea1b2551c12e54d5997a1db946ab06080 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti +Date: Sun, 18 May 2025 01:24:26 +0200 +Subject: [PATCH] Fix build with Linux 6.14 + +Commit: +https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7a53af85d3bbdbe06cd47b81a6d99a04dc0a3963 +adds argument "unsigned int link_id" to get_tx_power(), so let's add it to +cfg80211_rtw_get_txpower() according to Linux version. + +Upstream: https://github.com/lwfinger/rtl8723ds/pull/52/commits/d75e35dea1b2551c12e54d5997a1db946ab06080 +Signed-off-by: Giulio Benetti +--- + os_dep/linux/ioctl_cfg80211.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c +index 75391e7..adc1fec 100644 +--- a/os_dep/linux/ioctl_cfg80211.c ++++ b/os_dep/linux/ioctl_cfg80211.c +@@ -3362,6 +3362,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, + static int cfg80211_rtw_get_txpower(struct wiphy *wiphy, + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) + struct wireless_dev *wdev, ++#endif ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)) ++ unsigned int link_id, + #endif + int *dbm) + { +-- +2.39.5 +