]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix secondary MAC address assignment
authorJohannes Berg <johannes.berg@intel.com>
Wed, 21 Mar 2018 08:07:02 +0000 (09:07 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Mar 2018 08:08:45 +0000 (09:08 +0100)
commite976ce57ac2af9672f1335ab39e6b7703bdaecf9
tree51542a73a916fa835aac2d901dd5d13391273baf
parent63028f23b201cf18493878bcd14dbac7bd6022a1
mac80211_hwsim: fix secondary MAC address assignment

OR'ing in 0x40 before a memcpy() to overwrite the value doesn't
do much good - flip the order of operations are reported and
tested by Jouni.

Fixes: 8a8253e0cfdc ("mac80211_hwsim: add permanent mac address option for new radios")
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c