aboutsummaryrefslogtreecommitdiff
path: root/repos
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-07-24 15:03:05 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-07-24 15:03:05 +0800
commitae1b852341b680b0e4de3379e64cf485218f56e2 (patch)
treebb1b9bac226b05cb1395d90104efb07dbc59cfd5 /repos
parent12b9212ed59bfad84a10320583bbaa7a7dc7f0a6 (diff)
downloadalicelinux-ae1b852341b680b0e4de3379e64cf485218f56e2.tar.gz
alicelinux-ae1b852341b680b0e4de3379e64cf485218f56e2.zip
libnl-tiny: added nla_s8 patch for wpa_supplicant
Diffstat (limited to 'repos')
-rw-r--r--repos/extra/libnl-tiny/abuild5
-rw-r--r--repos/extra/libnl-tiny/nla_s8.patch30
2 files changed, 33 insertions, 2 deletions
diff --git a/repos/extra/libnl-tiny/abuild b/repos/extra/libnl-tiny/abuild
index 9b2f50f6..fe6b3d98 100644
--- a/repos/extra/libnl-tiny/abuild
+++ b/repos/extra/libnl-tiny/abuild
@@ -1,4 +1,5 @@
name=libnl-tiny
version=39ec78bb012edc2739c3d3d0058e4076411068b1
-release=1
-source="$name-$version.tar.xz::https://github.com/sabotage-linux/${name}/archive/${version}.tar.gz"
+release=2
+source="$name-$version.tar.xz::https://github.com/sabotage-linux/${name}/archive/${version}.tar.gz
+ nla_s8.patch"
diff --git a/repos/extra/libnl-tiny/nla_s8.patch b/repos/extra/libnl-tiny/nla_s8.patch
new file mode 100644
index 00000000..9a48b1f4
--- /dev/null
+++ b/repos/extra/libnl-tiny/nla_s8.patch
@@ -0,0 +1,30 @@
+diff --git a/include/netlink/attr.h b/include/netlink/attr.h
+index 3e3047f..789e8c2 100644
+--- a/include/netlink/attr.h
++++ b/include/netlink/attr.h
+@@ -45,6 +45,7 @@ enum {
+ NLA_FLAG, /**< Flag */
+ NLA_MSECS, /**< Micro seconds (64bit) */
+ NLA_NESTED, /**< Nested attributes */
++ NLA_S8,
+ __NLA_TYPE_MAX,
+ };
+
+@@ -248,6 +249,17 @@ static inline int nla_put_addr(struct nl_msg *msg, int attrtype, struct nl_addr
+ * @name Integer Attributes
+ */
+
++/**
++ * Return value of 8 bit signed integer attribute.
++ * @arg nla 8 bit integer attribute
++ *
++ * @return Payload as 8 bit integer
++ */
++static inline int8_t nla_get_s8(const struct nlattr *nla)
++{
++ return *(const int8_t *) nla_data(nla);
++}
++
+ /**
+ * Add 8 bit integer attribute to netlink message.
+ * @arg msg Netlink message.