Skip to contentSkip to conversation

package/esp-hosted: fix build with Linux 6.17

PATCH New Giulio Benetti 1 participant 1 message Nov 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/esp-hosted: fix build with Linux 6.17

* Since Upstream doesn't release new versions even if pinged[1] let's go back using git commit SHA1
* Drop local patch committed upstream to fix building Linux 6.15.
* Add local patch pending upstream to fix building Linux 6.17.

[1]: https://github.com/espressif/esp-hosted/issues/550

Fixes:
https://autobuild.buildroot.org/results/a8f830cb84754ab9cf68ab4745ea3d5050611e1e/

---
 .../0001-Fix-build-for-kernel-6.17.patch      |  57 ++++++
 .../0001-Fix-ng-build-for-6.15.patch          | 167 ------------------
 package/esp-hosted/esp-hosted.hash            |   2 +-
 package/esp-hosted/esp-hosted.mk              |   3 +-
 4 files changed, 59 insertions(+), 170 deletions(-)
 create mode 100644 package/esp-hosted/0001-Fix-build-for-kernel-6.17.patch
 delete mode 100644 package/esp-hosted/0001-Fix-ng-build-for-6.15.patch
package/esp-hosted/0001-Fix-build-for-kernel-6.17.patch new file +57 -0
new file mode 100644
index 0000000000..1d86d9ecf4
@@ -0,0 +1,57 @@
+From c5b4134f3548b54048ab90f21e7fb6eaf02ee268 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Tue, 25 Nov 2025 10:26:32 +0100
+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_wiphy_params() and set/get_tx_power() gain argument radio_idx to get
+radio index. So let's add that argument according to Linux version >=
+6.17.
+
+Upstream: https://github.com/espressif/esp-hosted/pull/686
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ esp_hosted_ng/host/esp_cfg80211.c | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/esp_hosted_ng/host/esp_cfg80211.c b/esp_hosted_ng/host/esp_cfg80211.c
+index 7abb22c453..43ddadcbf2 100644
+--- a/esp_hosted_ng/host/esp_cfg80211.c
++++ b/esp_hosted_ng/host/esp_cfg80211.c
+@@ -738,6 +738,9 @@ static void esp_cfg80211_set_wakeup(struct wiphy *wiphy,
+ 
+ static int esp_cfg80211_set_tx_power(struct wiphy *wiphy,
+ 				     struct wireless_dev *wdev,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
++				     int radio_idx,
++#endif
+ 				     enum nl80211_tx_power_setting type, int mbm)
+ {
+ 	struct esp_adapter *adapter = esp_get_adapter();
+@@ -815,6 +818,9 @@ static int esp_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev
+ 
+ static int esp_cfg80211_get_tx_power(struct wiphy *wiphy,
+ 				     struct wireless_dev *wdev,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
++				     int radio_idx,
++#endif
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
+ 				     unsigned int link_id,
+ #endif
+@@ -842,7 +848,11 @@ static int esp_cfg80211_get_tx_power(struct wiphy *wiphy,
+ 	return 0;
+ }
+ 
+-static int esp_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed)
++static int esp_cfg80211_set_wiphy_params(struct wiphy *wiphy,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
++					 int radio_idx,
++#endif
++					 u32 changed)
+ {
+ 	esp_dbg("\n");
+ 	return 0;
+-- 
+2.47.3
+
package/esp-hosted/0001-Fix-ng-build-for-6.15.patch deleted +0 -167

167 lines not on this page · raw message

package/esp-hosted/esp-hosted.hash +1 -1
index 8af32e9239..0a376e5e26 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  1025b8c8d982bab03ebec9859f828a1c81218077245b602621eb4f07c169bac8  ng-v1.0.4.0.0.tar.gz
+sha256  6e6ff868dc6f193333f894af6e3faefe18050d1964312cea7757b619c289653d  esp-hosted-cd587b09e3be1c374c310f7bd16e1b3bba23cc69.tar.gz
 sha256  f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79  esp_hosted_ng/host/LICENSE
package/esp-hosted/esp-hosted.mk +1 -2
index 965d3a5cc6..98657bc00f 100644
@@ -4,9 +4,8 @@
 #
 ################################################################################
 
-ESP_HOSTED_VERSION = 1.0.4.0.0
+ESP_HOSTED_VERSION = cd587b09e3be1c374c310f7bd16e1b3bba23cc69
 ESP_HOSTED_SITE = $(call github,espressif,esp-hosted,release/ng-v$(ESP_HOSTED_VERSION))
-ESP_HOSTED_SOURCE = ng-v$(ESP_HOSTED_VERSION).tar.gz
 ESP_HOSTED_DEPENDENCIES = linux
 ESP_HOSTED_LICENSE = GPL-2.0
 ESP_HOSTED_LICENSE_FILES = esp_hosted_ng/host/LICENSE
Signature · 6 lines
2.47.3

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