summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_crypt_tkip.c
diff options
context:
space:
mode:
authorIoana Ciornei <ciorneiioana@gmail.com>2015-03-18 15:26:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-20 13:11:45 +0100
commit7078db9dffde19f4ea82acb0c2d8a9f81531e15a (patch)
tree479cc83cd7bc7117eb72a1b780c1ea2419e42287 /drivers/staging/rtl8192e/rtllib_crypt_tkip.c
parentec523735e4a9969e5469c93c87a25a92f619f118 (diff)
downloadlinux-7078db9dffde19f4ea82acb0c2d8a9f81531e15a.tar.bz2
staging: prism2sta: Replace memcpy with ether_add_copy
Replace memcpy() with ether_addr_copy() since addresses are __aligned(2). The 2 structures are aligned to u16 as showed below: typedef struct hfa384x_authenticateStation_data { u8 address[ETH_ALEN]; /* 0 6 */ u16 status; /* 6 2 */ u16 algorithm; /* 8 2 */ } __packed hfa384x_authenticateStation_data_t; Total size: 10 typedef struct hfa384x_AuthRequest { u8 sta_addr[ETH_ALEN]; /* 0 6 */ u16 algorithm; /* 6 2 */ } __packed hfa384x_AuthReq_t; Total size: 8 Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_crypt_tkip.c')
0 files changed, 0 insertions, 0 deletions