diff --git a/net/basicstation/Makefile b/net/basicstation/Makefile index 05f0725592..dbb509ce9a 100644 --- a/net/basicstation/Makefile +++ b/net/basicstation/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=basicstation PKG_VERSION:=2.0.6 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/lorabasics/basicstation/tar.gz/v$(PKG_VERSION)? diff --git a/net/basicstation/patches/002-fix-tls-makeconf-prototype.patch b/net/basicstation/patches/002-fix-tls-makeconf-prototype.patch new file mode 100644 index 0000000000..2934f28696 --- /dev/null +++ b/net/basicstation/patches/002-fix-tls-makeconf-prototype.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens +Date: Sat, 28 Nov 2026 03:07:46 +0100 +Subject: [PATCH] Use a void parameter list for tls_makeConf + +The only caller passes no arguments and the definition ignores all +three declared parameters. Give both a matching C23 prototype. + +--- a/src/tls.h ++++ b/src/tls.h +@@ -42,7 +42,7 @@ typedef struct mbedtls_ssl_context* tlsc + extern u1_t tls_dbgLevel; + void log_mbedError (u1_t mod_level, int ret, const char* fmt, ...); + +-tlsconf_t* tls_makeConf (); ++tlsconf_t* tls_makeConf (void); + void tls_freeConf (tlsconf_t* conf); + int tls_setMyCert (tlsconf_t* conf, const char* cert, int certlen, const char* key, int keylen, const char* pwd); + int tls_setTrustedCAs (tlsconf_t* conf, const char* file_or_data, int len); +--- a/src/tls.c ++++ b/src/tls.c +@@ -107,7 +107,7 @@ void log_mbedError (u1_t mod_level, int + } + + +-tlsconf_t* tls_makeConf (mbedtls_x509_crt* trust, mbedtls_x509_crt* mycert, mbedtls_pk_context* mykey) { ++tlsconf_t* tls_makeConf (void) { + tlsconf_t* conf = rt_malloc(tlsconf_t); + mbedtls_ssl_config_init(&conf->sslconfig); + conf->trust = NULL;