eiwd

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

commit 2435adc33bf3afb7736546b4a0e666e9068e96f5
parent 7a3d4dabb174ff362d075f23d46e8d6c76a20737
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 12 Jan 2022 10:08:39 -0800

nl80211util: support ATTR_FRAME in parse_attrs()

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

diff --git a/src/nl80211util.c b/src/nl80211util.c @@ -118,6 +118,16 @@ static bool extract_flag(const void *data, uint16_t len, void *o) return true; } +static bool extract_iovec(const void *data, uint16_t len, void *o) +{ + struct iovec *iov = o; + + iov->iov_base = (void *) data; + iov->iov_len = len; + + return true; +} + static attr_handler handler_for_type(enum nl80211_attrs type) { switch (type) { @@ -145,6 +155,8 @@ static attr_handler handler_for_type(enum nl80211_attrs type) case NL80211_ATTR_CENTER_FREQ1: case NL80211_ATTR_CENTER_FREQ2: return extract_uint32; + case NL80211_ATTR_FRAME: + return extract_iovec; default: break; }