Re: [PATCH v3 4/5] mac80211_hwsim: add permanent mac address option for new radios
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2018-01-15 12:09:31
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2018-01-15 12:09:31
On Wed, 2018-01-10 at 17:42 +0100, Benjamin Beichler wrote:
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.
It's weird to have the same address twice - perhaps we can XOR 0x40 or so? johannes