summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2024-11-06 21:14:38 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2024-11-06 21:16:53 +0900
commite07f4e919732e18a862154fe4f9b1a565693cb9a (patch)
tree5b86e0de84d408cdbd0442f3da8d8f6ac0751f4b
parentae6d50cb15baf7d6c9a5b77dc40fabc3e82173b0 (diff)
downloadlinux-thead-e07f4e919732e18a862154fe4f9b1a565693cb9a.tar.gz
linux-thead-e07f4e919732e18a862154fe4f9b1a565693cb9a.tar.bz2
linux-thead-e07f4e919732e18a862154fe4f9b1a565693cb9a.zip
net: wireless: rtl8723ds:don't write directly to netdev->dev_addr
Instead of direct write to netdev->dev_addr, it should use dev_addr_set(). Change-Id: I94557ed087bd35a109f88a065dcd2c26d134aefd Ref: 48eab831ae8b ("net: create netdev->dev_addr assignment helpers") Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--drivers/net/wireless/rtl8723ds/os_dep/linux/os_intfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtl8723ds/os_dep/linux/os_intfs.c b/drivers/net/wireless/rtl8723ds/os_dep/linux/os_intfs.c
index ce8e18b9ea07..99d89f7d191f 100644
--- a/drivers/net/wireless/rtl8723ds/os_dep/linux/os_intfs.c
+++ b/drivers/net/wireless/rtl8723ds/os_dep/linux/os_intfs.c
@@ -1631,7 +1631,7 @@ static int rtw_net_set_mac_address(struct net_device *pnetdev, void *addr)
}
_rtw_memcpy(adapter_mac_addr(padapter), sa->sa_data, ETH_ALEN); /* set mac addr to adapter */
- _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
+ dev_addr_set(pnetdev, sa->sa_data); /* set mac addr to net_device */
#if 0
if (rtw_is_hw_init_completed(padapter)) {
@@ -2167,7 +2167,7 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
/* alloc netdev name */
rtw_init_netdev_name(ndev, name);
- _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
+ dev_addr_set(ndev, adapter_mac_addr(adapter));
/* Tell the network stack we exist */