Add support for mac80211_hwsim Generic Netlink family#311
Open
a-gavin wants to merge 2 commits intojbaublitz:mainfrom
Open
Add support for mac80211_hwsim Generic Netlink family#311a-gavin wants to merge 2 commits intojbaublitz:mainfrom
mac80211_hwsim Generic Netlink family#311a-gavin wants to merge 2 commits intojbaublitz:mainfrom
Conversation
Add support for Linux 'mac80211_hwsim' virtual WiFi driver https://www.kernel.org/doc/html/next/networking/mac80211_hwsim/mac80211_hwsim.html Unlike other netlink constants (e.g. 'nl80211'), these constants are presently only available in the 'mac80211_hwsim' kernel driver (specifically in 'mac80211_hwsim.h'). Somewhat confusingly, this header file includes both netlink API constants and structs in addition to those which are driver-internal only. To the best of my knowledge, the constants added in this commit constitute all of the netlink API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As mentioned in the commit message (copied below), these constants and docstring comments come direclty from the driver which is not importable from userspace, unlike other Netlink families. See here for reference.
This driver is not loaded by default, but can be loaded by running
modprobe mac80211_hwsimon supporting kernels with root permissions.As discussed here there is an issue is present for this attribute where the value is actually a
u8but cannot be defined as such currently given explicit requirement foru16Netlink attributes in this crate. However, once that is sorted, I'd be happy to address the issue.