diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-20 20:18:50 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-09-29 08:38:59 +0200 |
commit | 8e310690b01a32e4beef27bc2ed05c2147533ecf (patch) | |
tree | eac19c2ae572c7e0ea741d5b8fbe939925d3176f /src/libsystemd | |
parent | sd-netlink, wifi-util: fix attribute type of NL80211_ATTR_SSID (diff) | |
download | systemd-8e310690b01a32e4beef27bc2ed05c2147533ecf.tar.xz systemd-8e310690b01a32e4beef27bc2ed05c2147533ecf.zip |
sd-netlink: add several attributes for nl80211
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-types-genl.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-types-genl.c b/src/libsystemd/sd-netlink/netlink-types-genl.c index 5df88c0518..bdd5700c6e 100644 --- a/src/libsystemd/sd-netlink/netlink-types-genl.c +++ b/src/libsystemd/sd-netlink/netlink-types-genl.c @@ -180,10 +180,15 @@ static const NLType genl_macsec_types[] = { /***************** genl nl80211 type systems *****************/ static const NLType genl_nl80211_types[] = { - [NL80211_ATTR_IFINDEX] = { .type = NETLINK_TYPE_U32 }, - [NL80211_ATTR_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR }, - [NL80211_ATTR_SSID] = { .type = NETLINK_TYPE_BINARY, .size = IEEE80211_MAX_SSID_LEN }, - [NL80211_ATTR_IFTYPE] = { .type = NETLINK_TYPE_U32 }, + [NL80211_ATTR_WIPHY] = { .type = NETLINK_TYPE_U32 }, + [NL80211_ATTR_WIPHY_NAME] = { .type = NETLINK_TYPE_STRING }, + [NL80211_ATTR_IFINDEX] = { .type = NETLINK_TYPE_U32 }, + [NL80211_ATTR_IFNAME] = { .type = NETLINK_TYPE_STRING, .size = IFNAMSIZ-1 }, + [NL80211_ATTR_IFTYPE] = { .type = NETLINK_TYPE_U32 }, + [NL80211_ATTR_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN }, + [NL80211_ATTR_SSID] = { .type = NETLINK_TYPE_BINARY, .size = IEEE80211_MAX_SSID_LEN }, + [NL80211_ATTR_STATUS_CODE] = { .type = NETLINK_TYPE_U16 }, + [NL80211_ATTR_4ADDR] = { .type = NETLINK_TYPE_U8 }, }; /***************** genl wireguard type systems *****************/ |