Skip to content

Commit 8e31069

Browse files
committed
sd-netlink: add several attributes for nl80211
1 parent f3e235f commit 8e31069

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/libsystemd/sd-netlink/netlink-types-genl.c

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,15 @@ static const NLType genl_macsec_types[] = {
180180

181181
/***************** genl nl80211 type systems *****************/
182182
static const NLType genl_nl80211_types[] = {
183-
[NL80211_ATTR_IFINDEX] = { .type = NETLINK_TYPE_U32 },
184-
[NL80211_ATTR_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR },
185-
[NL80211_ATTR_SSID] = { .type = NETLINK_TYPE_BINARY, .size = IEEE80211_MAX_SSID_LEN },
186-
[NL80211_ATTR_IFTYPE] = { .type = NETLINK_TYPE_U32 },
183+
[NL80211_ATTR_WIPHY] = { .type = NETLINK_TYPE_U32 },
184+
[NL80211_ATTR_WIPHY_NAME] = { .type = NETLINK_TYPE_STRING },
185+
[NL80211_ATTR_IFINDEX] = { .type = NETLINK_TYPE_U32 },
186+
[NL80211_ATTR_IFNAME] = { .type = NETLINK_TYPE_STRING, .size = IFNAMSIZ-1 },
187+
[NL80211_ATTR_IFTYPE] = { .type = NETLINK_TYPE_U32 },
188+
[NL80211_ATTR_MAC] = { .type = NETLINK_TYPE_ETHER_ADDR, .size = ETH_ALEN },
189+
[NL80211_ATTR_SSID] = { .type = NETLINK_TYPE_BINARY, .size = IEEE80211_MAX_SSID_LEN },
190+
[NL80211_ATTR_STATUS_CODE] = { .type = NETLINK_TYPE_U16 },
191+
[NL80211_ATTR_4ADDR] = { .type = NETLINK_TYPE_U8 },
187192
};
188193

189194
/***************** genl wireguard type systems *****************/

0 commit comments

Comments
 (0)