]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mac80211_hwsim: support any address in userspace"
authorBob Copeland <me@bobcopeland.com>
Sat, 19 Dec 2015 14:59:37 +0000 (09:59 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jan 2016 10:10:17 +0000 (11:10 +0100)
commitd287bf6f0c1011d7c28486793d6146306ebba1db
treee119e4bb6263141e04ec712cf8dea8971d971184
parent069416406a1459325d4525ef81f6979215c34cd0
Revert "mac80211_hwsim: support any address in userspace"

This reverts commit 703349445db9409c710446643da14a42205ce8c3.

Different userspace programs interpreted HWSIM_ATTR_ADDR_TRANSMITTER
and HWSIM_ATTR_ADDR_RECEIVER differently: some expected it to
be an unchanging hardware address that is tied to the radio despite
which address is configured on the interface, while others expected
to be a copy of the address in the frame (the configured address).
The intent of the original authors is unclear.

The latter interpretation doesn't really work properly with multiple
vifs and broadcast frames.  Also, as the TA is already in the
frame, userspace programs can actually support configured addresses
in the former interpretation by mapping between them and the supplied
HWSIM_ATTR_ADDR_TRANSMITTER.

So, in the interest of API stability, revert to the previous mode
of operation and going forward use the former interpretation.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c