From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:34 +0000 (+0200) Subject: staging: rtl8723au: OnAuth23a(): Use ether_addr_copy() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ded7a20f827164bb7efc602f6f11e70cfa3e73e4;p=linux-beck.git staging: rtl8723au: OnAuth23a(): Use ether_addr_copy() Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index 14193b4319b5..bed7eb764a51 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c @@ -1087,7 +1087,7 @@ auth_fail: pstat = &stat; memset((char *)pstat, '\0', sizeof(stat)); pstat->auth_seq = 2; - memcpy(pstat->hwaddr, sa, 6); + ether_addr_copy(pstat->hwaddr, sa); issue_auth(padapter, pstat, (unsigned short)status);