eiwd

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

commit 9ee2b4ea4a1ee888116fe2c2d4952484da09bc42
parent ab14515715046397a481a63546189e62de9f9ee3
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue, 17 Dec 2019 16:20:17 -0600

nl80211util: Support ATTR_MAC

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

diff --git a/src/nl80211util.c b/src/nl80211util.c @@ -63,6 +63,17 @@ static bool extract_name(const void *data, uint16_t len, void *o) return true; } +static bool extract_mac(const void *data, uint16_t len, void *o) +{ + const uint8_t **out = o; + + if (len != 6) + return false; + + *out = data; + return true; +} + static bool extract_uint64(const void *data, uint16_t len, void *o) { uint64_t *out = o; @@ -99,6 +110,8 @@ static attr_handler handler_for_type(enum nl80211_attrs type) case NL80211_ATTR_IFNAME: case NL80211_ATTR_WIPHY_NAME: return extract_name; + case NL80211_ATTR_MAC: + return extract_mac; default: break; }