staging: rtl8723au: OnAuth23a(): Use ether_addr_copy()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:34 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:00:20 +0000 (14:00 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index 14193b4319b52c7c817c0686da59722c4581d024..bed7eb764a51df635a871151ea9cea9a99a4ddb2 100644 (file)
@@ -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);