Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4448ad27 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Greg Kroah-Hartman
Browse files

wl3501_cs: use eth_hw_addr_set()



[ Upstream commit 18774612246d036c04ce9fee7f67192f96f48725 ]

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: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018235021.1279697-15-kuba@kernel.org


Stable-dep-of: 391af06a02e7 ("wifi: wl3501_cs: Fix an error handling path in wl3501_probe()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c368c4de
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1946,8 +1946,7 @@ static int wl3501_config(struct pcmcia_device *link)
		goto failed;
	}

	for (i = 0; i < 6; i++)
		dev->dev_addr[i] = ((char *)&this->mac_addr)[i];
	eth_hw_addr_set(dev, this->mac_addr);

	/* print probe information */
	printk(KERN_INFO "%s: wl3501 @ 0x%3.3x, IRQ %d, "