PD#SWPL-65570
Problem:
optimize the code
Solution:
optimize the code
Verify:
local
Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: I4de5b003e61702b77dde1cbed8e044b9454e921a
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);