Skip to contentSkip to conversation

package/xr819-xradio: fix build failure due to local patch

PATCH In review Giulio Benetti 2 participants 3 messages Dec 14, 2025 – Dec 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/xr819-xradio: fix build failure due to local patch

Local patch hasn't been removed while bumping package version resulting into build failure. So let's drop local path to fix build failure.

---
 .../0001-Fix-build-for-kernel-6.17.patch      | 80 -------------------
 1 file changed, 80 deletions(-)
 delete mode 100644 package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch
package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch deleted +0 -80
deleted file mode 100644
index 3329016472..0000000000
@@ -1,80 +0,0 @@
-From dbf3f744650e05a40fc3df6325fc657e5c23cece Mon Sep 17 00:00:00 2001
-From: Giulio Benetti <[email protected]>
-Date: Fri, 10 Oct 2025 22:18:12 +0200
-Subject: [PATCH] Fix build for kernel 6.17
-
-With commit:
-https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b74947b4f6ff7c122a1bb6eb38bb7ecfbb1d3820
-set_rts_threshold() and config() gain argument radio_idx to get radio
-index. So let's add that argument according to Linux version >= 6.17.
-
-Upstream: https://github.com/fifteenhex/xradio/commit/43992a7e7ed95ff815cf6d8ba81cef1085e50ab9
-Signed-off-by: Giulio Benetti <[email protected]>
----
- sta.c | 12 ++++++++++--
- sta.h | 12 ++++++++++--
- 2 files changed, 20 insertions(+), 4 deletions(-)
-
-diff --git a/sta.c b/sta.c
-index 1203ce9..d769b81 100644
---- a/sta.c
-+++ b/sta.c
-@@ -381,7 +381,11 @@ int xradio_change_interface(struct ieee80211_hw *dev,
- 	return ret;
- }
- 
--int xradio_config(struct ieee80211_hw *dev, u32 changed)
-+int xradio_config(struct ieee80211_hw *dev,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
-+		  int radio_idx,
-+#endif
-+		  u32 changed)
- {
- 	int ret = 0;
- 	struct xradio_common *hw_priv = dev->priv;
-@@ -796,7 +800,11 @@ void xradio_wep_key_work(struct work_struct *work)
- 	wsm_unlock_tx(hw_priv);
- }
- 
--int xradio_set_rts_threshold(struct ieee80211_hw *hw, u32 value)
-+int xradio_set_rts_threshold(struct ieee80211_hw *hw,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
-+			     int radio_idx,
-+#endif
-+			     u32 value)
- {
- 	struct xradio_common *hw_priv = hw->priv;
- 	int ret = 0;
-diff --git a/sta.h b/sta.h
-index 39a023a..de8f837 100644
---- a/sta.h
-+++ b/sta.h
-@@ -42,7 +42,11 @@ int xradio_change_interface(struct ieee80211_hw *dev,
-                             struct ieee80211_vif *vif,
-                             enum nl80211_iftype new_type,
-                             bool p2p);
--int xradio_config(struct ieee80211_hw *dev, u32 changed);
-+int xradio_config(struct ieee80211_hw *dev,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
-+		  int radio_idx,
-+#endif
-+		  u32 changed);
- int xradio_change_interface(struct ieee80211_hw *dev,
-                             struct ieee80211_vif *vif,
-                             enum nl80211_iftype new_type,
-@@ -65,7 +69,11 @@ int xradio_get_stats(struct ieee80211_hw *dev,
- int xradio_get_tx_stats(struct ieee80211_hw *dev,
- 			struct ieee80211_tx_queue_stats *stats);
- */
--int xradio_set_rts_threshold(struct ieee80211_hw *hw, u32 value);
-+int xradio_set_rts_threshold(struct ieee80211_hw *hw,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
-+			     int radio_idx,
-+#endif
-+			     u32 value);
- 
- void xradio_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u32 queues, bool drop);
- 
--- 
-2.47.3
-
Signature · 6 lines
2.47.3

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

Hi Giulio,

Quoted 2 lines · Giulio Benetti

Local patch hasn't been removed while bumping package version resulting into build failure. So let's drop local path to fix build failure.

You are not saying which Buildroot commit bumped the package version without removing the package patch. I believe you are referring to:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

This patch was not merged in Buildroot, until now. I just applied it in:
https://gitlab.com/buildroot.org/buildroot/-/commit/d60dc5e6184dd2740fb33f6bc7aa8c6a76b35d7b

So I believe this patch is not needed anymore.

Quoted 1 line

Best regards,

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

#2 lore raw

Hi Julien,

Quoted 12 lines

Il giorno 27 dic 2025, alle ore 22:39, Julien Olivain <[email protected]> ha scritto:

Hi Giulio,

Quoted 3 lines · Giulio Benetti

Local patch hasn't been removed while bumping package version resulting into build failure. So let's drop local path to fix build failure.

You are not saying which Buildroot commit bumped the package version without removing the package patch. I believe you are referring to:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Quoted 5 lines

This patch was not merged in Buildroot, until now. I just applied it in:
https://gitlab.com/buildroot.org/buildroot/-/commit/d60dc5e6184dd2740fb33f6bc7aa8c6a76b35d7b

So I believe this patch is not needed anymore.

Your assumption is correct. Thanks for taking care and sorry for the noise!

Best regards
Giulio

Quoted 6 lines
Quoted 2 lines

Best regards,

Julien.

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