[Buildroot] [PATCH] package/xr819-xradio: fix build failure with Linux 6.17
Giulio Benetti
giulio.benetti at benettiengineering.com
Fri Oct 10 20:31:37 UTC 2025
Add a local patch pending upstream to fix build failure with Linux 6.17
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
.../0001-Fix-build-for-kernel-6.17.patch | 80 +++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch
diff --git a/package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch b/package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch
new file mode 100644
index 0000000000..e53352ec0e
--- /dev/null
+++ b/package/xr819-xradio/0001-Fix-build-for-kernel-6.17.patch
@@ -0,0 +1,80 @@
+From dbf3f744650e05a40fc3df6325fc657e5c23cece Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <giulio.benetti at benettiengineering.com>
+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/pull/28
+Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
+---
+ 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
+
--
2.47.3
More information about the buildroot
mailing list