From f599ea1cacff247d8ff97c6093234b54fecfa2e7 Mon Sep 17 00:00:00 2001 From: Egor Tsyganchuk Date: Mon, 6 Apr 2026 15:36:06 +0300 Subject: [PATCH] Update nla_get_s8 function signature to accept non-const struct nlattr pointer for improved compatibility --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 09e0596..0d52ea5 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -69,7 +69,7 @@ enum nlmsgerr_attrs { #ifndef NLA_S8 /* libnl < 3.3 does not define signed 8-bit attr helpers */ #define NLA_S8 NLA_U8 -static inline s8 nla_get_s8(const struct nlattr *nla) +static inline s8 nla_get_s8(struct nlattr *nla) { return (s8) nla_get_u8(nla); }