mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
nl80211util: support ATTR_FRAME in parse_attrs()
This commit is contained in:
parent
7a3d4dabb1
commit
2435adc33b
@ -118,6 +118,16 @@ static bool extract_flag(const void *data, uint16_t len, void *o)
|
|||||||
return true;
|
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)
|
static attr_handler handler_for_type(enum nl80211_attrs type)
|
||||||
{
|
{
|
||||||
switch (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_FREQ1:
|
||||||
case NL80211_ATTR_CENTER_FREQ2:
|
case NL80211_ATTR_CENTER_FREQ2:
|
||||||
return extract_uint32;
|
return extract_uint32;
|
||||||
|
case NL80211_ATTR_FRAME:
|
||||||
|
return extract_iovec;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user