]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: add several attributes for nl80211
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Sep 2021 18:18:50 +0000 (03:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 06:38:59 +0000 (15:38 +0900)
src/libsystemd/sd-netlink/netlink-types-genl.c

index 5df88c0518d2b7b1839c83c30a72ef5d08c1aa07..bdd5700c6e2c32a6c794673cea5631e6ea8e10de 100644 (file)
@@ -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 *****************/