From 9edd35b93d30db01f75adc84ff213b4cd26e4001 Mon Sep 17 00:00:00 2001 From: libo Date: Thu, 2 Dec 2021 11:14:35 +0800 Subject: [PATCH] wifi: optimize the code [1/1] PD#SWPL-65570 Problem: optimize the code Solution: optimize the code Verify: local Signed-off-by: libo Change-Id: I4de5b003e61702b77dde1cbed8e044b9454e921a --- bcmdhd.101.10.361.x/wl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcmdhd.101.10.361.x/wl_cfg80211.c b/bcmdhd.101.10.361.x/wl_cfg80211.c index 8a317d8..2739b3e 100755 --- a/bcmdhd.101.10.361.x/wl_cfg80211.c +++ b/bcmdhd.101.10.361.x/wl_cfg80211.c @@ -17786,7 +17786,7 @@ s32 wl_cfg80211_get_p2p_dev_addr(struct net_device *net, struct ether_addr *p2pd return -1; if (!p2p_is_on(cfg)) { get_primary_mac(cfg, &primary_mac); - memcpy((void *)&p2pdev_addr, (void *)&primary_mac, ETHER_ADDR_LEN); + memcpy((void *)p2pdev_addr, (void *)&primary_mac, ETHER_ADDR_LEN); } else { memcpy(p2pdev_addr->octet, wl_to_p2p_bss_macaddr(cfg, P2PAPI_BSSCFG_DEVICE).octet, ETHER_ADDR_LEN); -- 2.20.1