Skip to contentSkip to conversation

package/rtl8188eu: fix build failure with Linux 6.13

PATCH Applied Giulio Benetti 2 participants 3 messages Apr 16, 2025 – May 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rtl8188eu: fix build failure with Linux 6.13

Add local patch pending upstream to fix build failure with Linux 6.13

Fixes:
https://autobuild.buildroot.org/results/4a0ebbcd62a2bfc59a7f6183f100f0e111cee750

---
 .../0001-Fix-build-with-Linux-6.13.patch      | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch
package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch new file +35 -0
new file mode 100644
index 0000000000..3594283ff1
@@ -0,0 +1,35 @@
+From 408ac4abdd1e187624ebef9f6a45ecc437525de5 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Wed, 16 Apr 2025 17:34:54 +0200
+Subject: [PATCH] Fix build with Linux 6.13
+
+Commit:
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c4f830927750a2bf9fd9426a5257f0fdce3b662
+adds struct net_device *dev as argument to set_monitor_channel(), so let's
+add it to cfg80211_rtw_set_monitor_channel() according to Linux version.
+
+Upstream: https://github.com/lwfinger/rtl8188eu/pull/463
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ ioctl_cfg80211.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c
+index c6ae5aa..270cfce 100644
+--- a/ioctl_cfg80211.c
++++ b/ioctl_cfg80211.c
+@@ -4404,7 +4404,10 @@ static int	cfg80211_rtw_set_channel(struct wiphy *wiphy
+ }
+ 
+ static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
++	, struct net_device *dev
++	, struct cfg80211_chan_def *chandef
++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
+ 	, struct cfg80211_chan_def *chandef
+ #else
+ 	, struct ieee80211_channel *chan
+-- 
+2.39.5
+
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Wed, 16 Apr 2025 21:56:36 +0200 Giulio Benetti…

Add local patch pending upstream to fix build failure with Linux 6.13

Fixes:
https://autobuild.buildroot.org/results/4a0ebbcd62a2bfc59a7f6183f100f0e111cee750

---
 .../0001-Fix-build-with-Linux-6.13.patch      | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Giulio Benetti
Quoted 6 lines · Giulio Benetti

Add local patch pending upstream to fix build failure with Linux 6.13

Fixes:
https://autobuild.buildroot.org/results/4a0ebbcd62a2bfc59a7f6183f100f0e111cee750

Applied to 2025.02.x, thanks.

Regards,
Arnout

Quoted 36 lines
---
  .../0001-Fix-build-with-Linux-6.13.patch      | 35 +++++++++++++++++++
  1 file changed, 35 insertions(+)

create mode 100644 package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch

package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch new file +25 -0
new file mode 100644
index 0000000000..3594283ff1
@@ -0,0 +1,35 @@
+From 408ac4abdd1e187624ebef9f6a45ecc437525de5 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Wed, 16 Apr 2025 17:34:54 +0200
+Subject: [PATCH] Fix build with Linux 6.13
+
+Commit:
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c4f830927750a2bf9fd9426a5257f0fdce3b662
+adds struct net_device *dev as argument to set_monitor_channel(), so let's
+add it to cfg80211_rtw_set_monitor_channel() according to Linux version.
+
+Upstream: https://github.com/lwfinger/rtl8188eu/pull/463
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ ioctl_cfg80211.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c
+index c6ae5aa..270cfce 100644
+--- a/ioctl_cfg80211.c
++++ b/ioctl_cfg80211.c
+@@ -4404,7 +4404,10 @@ static int	cfg80211_rtw_set_channel(struct wiphy *wiphy
+ }
+
+ static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
+-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))

package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch line 35

Quoted 10 lines
package/rtl8188eu/0001-Fix-build-with-Linux-6.13.patch new file +10 -0
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
++	, struct net_device *dev
++	, struct cfg80211_chan_def *chandef
++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
+ 	, struct cfg80211_chan_def *chandef
+ #else
+ 	, struct ieee80211_channel *chan
+--
+2.39.5
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot