OSDN Git Service

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)
commit796e1112176ada7ebc084491458dfbfbe3a193b6
tree51542a73a916fa835aac2d901dd5d13391273baf
parent0466080c751ec2de9efae3ac6305225cc4326047
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: cb1a5bae5684 ("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