Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wl3501_cs: 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.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-15-kuba@kernel.org

authored by

Jakub Kicinski and committed by
Kalle Valo
18774612 6dedb274

+1 -2
+1 -2
drivers/net/wireless/wl3501_cs.c
··· 1945 1945 goto failed; 1946 1946 } 1947 1947 1948 - for (i = 0; i < 6; i++) 1949 - dev->dev_addr[i] = ((char *)&this->mac_addr)[i]; 1948 + eth_hw_addr_set(dev, this->mac_addr); 1950 1949 1951 1950 /* print probe information */ 1952 1951 printk(KERN_INFO "%s: wl3501 @ 0x%3.3x, IRQ %d, "