mac80211: use eth_hw_addr_set()
authorJakub Kicinski <kuba@kernel.org>
Tue, 19 Oct 2021 16:28:15 +0000 (09:28 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Oct 2021 14:46:49 +0000 (16:46 +0200)
commitde1352ead8a8cb4367a19ac23d9deaaa23befc3e
tree45bdd0b657eac3707e64053c0a5b8c9639fa2802
parente76219e675ebebebdb054bb57b0c6236c27755fe
mac80211: use eth_hw_addr_set()

Commit 406f42fa0d3c ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it got through appropriate helpers.

Convert mac80211 from memcpy(... ETH_ADDR) to eth_hw_addr_set():

  @@
  expression dev, np;
  @@
  - memcpy(dev->dev_addr, np, ETH_ALEN)
  + eth_hw_addr_set(dev, np)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20211019162816.1384077-1-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c