Skip to content

Commit 6724808

Browse files
committed
Add some constants for Linux nl80211
Including other constants, add the following enums: - nl80211_commands - nl80211_attrs - nl80211_iftype - nl80211_mesh_setup_params - nl80211_channel_type - nl80211_chan_width - nl80211_bss - nl80211_auth_type - nl80211_scan_flags Includes '#define'ed commands or attrs defined for legacy compatibility but does not include those defined for programs to '#ifdef' To the best of my knowledge, these constants are accurate to the linux-wireless tree at tag 'wireless-next-2025-06-25' available here: https://web.git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git/
1 parent 6f7da72 commit 6724808

File tree

3 files changed

+1325
-0
lines changed

3 files changed

+1325
-0
lines changed

libc-test/build.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,7 @@ fn test_android(target: &str) {
19681968
"linux/netfilter_ipv6.h",
19691969
"linux/netfilter_ipv6/ip6_tables.h",
19701970
"linux/netlink.h",
1971+
"linux/nl80211.h",
19711972
"linux/quota.h",
19721973
"linux/reboot.h",
19731974
"linux/seccomp.h",
@@ -3868,6 +3869,7 @@ fn test_linux(target: &str) {
38683869
"linux/netfilter_ipv6.h",
38693870
"linux/netfilter_ipv6/ip6_tables.h",
38703871
"linux/netlink.h",
3872+
"linux/nl80211.h",
38713873
"linux/nsfs.h",
38723874
"linux/openat2.h",
38733875
// FIXME(linux): some items require Linux >= 5.6:
@@ -4197,6 +4199,7 @@ fn test_linux(target: &str) {
41974199
|| name.starts_with("KEXEC_")
41984200
|| name.starts_with("MS_")
41994201
|| name.starts_with("MSG_")
4202+
|| name.starts_with("NL80211_")
42004203
|| name.starts_with("OPEN_TREE_")
42014204
|| name.starts_with("P_")
42024205
|| name.starts_with("PF_")
@@ -4661,6 +4664,33 @@ fn test_linux(target: &str) {
46614664
// FIXME(linux): Requires >= 6.6 kernel headers.
46624665
"PROC_EVENT_NONZERO_EXIT" => true,
46634666

4667+
// FIXME(linux): Requires >= 6.8 kernel headers
4668+
"NL80211_CMD_SET_TID_TO_LINK_MAPPING"
4669+
| "NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA"
4670+
| "NL80211_ATTR_MLO_TTLM_DLINK"
4671+
| "NL80211_ATTR_MLO_TTLM_ULINK"
4672+
| "NL80211_BSS_USE_FOR"
4673+
| "NL80211_BSS_CANNOT_USE_REASONS"
4674+
// FIXME(linux): Requires >= 6.9 kernel headers
4675+
| "NL80211_ATTR_ASSOC_SPP_AMSDU"
4676+
// FIXME(linux): Requires >= 6.11 kernel headers
4677+
| "NL80211_ATTR_WIPHY_RADIOS"
4678+
| "NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS"
4679+
// FIXME(linux): Requires >= 6.13 kernel headers
4680+
| "NL80211_ATTR_VIF_RADIO_MASK"
4681+
// FIXME(linux): Requires >= 6.14 kernel headers
4682+
| "NL80211_ATTR_SUPPORTED_SELECTORS"
4683+
| "NL80211_ATTR_MLO_RECONF_REM_LINKS"
4684+
| "NL80211_ATTR_EPCS"
4685+
// FIXME(linux): Requires >= 6.15 kernel headers
4686+
| "NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS"
4687+
| "NL80211_ATTR_WIPHY_RADIO_INDEX"
4688+
// FIXME(linux): Requires >= 6.16 kernel headers
4689+
| "NL80211_MAX_SUPP_SELECTORS"
4690+
// FIXME(linux): Requires >= 6.14 kernel headers
4691+
| "NL80211_CMD_ASSOC_MLO_RECONF"
4692+
| "NL80211_CMD_EPCS_CFG" => true,
4693+
46644694
_ => false,
46654695
}
46664696
});

0 commit comments

Comments
 (0)