diff options
author | Benjamin Beichler <benjamin.beichler@uni-rostock.de> | 2018-01-22 18:04:35 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-01-31 12:45:35 +0100 |
commit | cb1a5bae568450b96c6828f235589cb42ce1dc81 (patch) | |
tree | 3954364284702bdebda9f9922864da928f1b6cd9 /drivers/platform | |
parent | ipmr: Fix ptrdiff_t print formatting (diff) | |
download | linux-cb1a5bae568450b96c6828f235589cb42ce1dc81.tar.xz linux-cb1a5bae568450b96c6828f235589cb42ce1dc81.zip |
mac80211_hwsim: add permanent mac address option for new radios
If simulation needs predictable permanent mac addresses of hwsim wireless
phy, this patch add the ability to create a new radio with a user defined
permanent mac address. Allowed mac addresses needs to be locally
administrated mac addresses (as also the former fixed 42:* and 02:* were).
To do not break the operation with legacy software using hwsim, the new
address is set twice. The problem here is, the netlink call backs use
wiphy->addresses[1] as identification of a radio and not the proposed
permanent address (wiphy->addresses[0]). This design decision is not
documented in the kernel repo, therefore this patch simply reproduces this,
but with the same address.
Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
[make pointer const]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions