eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9f1fa53aae4192e75def32e03fc3c79dbf8bbfca
parent 53469c5c0da6b3f644b014c81d22f08bca7d938e
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue,  1 Nov 2022 13:17:45 -0700

nl80211util: add key type/idx to nl80211_parse_attrs

Diffstat:
Msrc/nl80211util.c | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/nl80211util.c b/src/nl80211util.c @@ -139,6 +139,17 @@ static bool extract_nested(const void *data, uint16_t len, void *o) return true; } +static bool extract_u8(const void *data, uint16_t len, void *o) +{ + uint8_t *out = o; + + if (len != 1) + return false; + + *out = l_get_u8(data); + return true; +} + static attr_handler handler_for_type(enum nl80211_attrs type) { switch (type) { @@ -146,6 +157,7 @@ static attr_handler handler_for_type(enum nl80211_attrs type) return extract_ifindex; case NL80211_ATTR_WIPHY: case NL80211_ATTR_IFTYPE: + case NL80211_ATTR_KEY_TYPE: return extract_uint32; case NL80211_ATTR_WDEV: case NL80211_ATTR_COOKIE: @@ -170,6 +182,8 @@ static attr_handler handler_for_type(enum nl80211_attrs type) return extract_iovec; case NL80211_ATTR_WIPHY_BANDS: return extract_nested; + case NL80211_ATTR_KEY_IDX: + return extract_u8; default: break; }