Haneen Mohammed
e0e982b436
Staging: rtl8712: replace memcpy with ether_addr_copy
This patch replace memcpy with ethe_addr_copy to address the following
warning generated by checkpatch.pl: ""Prefer ether_addr_copy over memcpy
if the Ethernet addresses are __aligned(2)"
Follwoing is the output of pahole for the relevant datastructures:
1- for "iwe.u.ap_addr.sa_data" and "wrqu->ap_addr.sa_data"
struct sockaddr {
sa_family_t sa_family; /* 0 2 */
char sa_data[14]; /* 2 14 */
/* size: 16, cachelines: 1, members: 2 */
/* last cacheline: 16 bytes */
};
struct iw_event {
__u16 len; /* 0 2 */
__u16 cmd; /* 2 2 */
/* XXX 4 bytes hole, try to pack */
union iwreq_data u; /* 8 16 */
/* size: 24, cachelines: 1, members: 3 */
/* sum members: 20, holes: 1, sum holes: 4 */
/* last cacheline: 24 bytes */
};
2- for "pnetwork->network.MacAddress" and "pcur_bss->MacAddress"
struct wlan_network {
struct list_head list; /* 0 16 */
int network_type; /* 16 4 */
int fixed; /* 20 4 */
unsigned int last_scanned; /* 24 4 */
int aid; /* 28 4 */
int join_res; /* 32 4 */
struct ndis_wlan_bssid_ex network; /* 36 884 */
/* --- cacheline 14 boundary (896 bytes) was 24 bytes ago --- */
/* size: 920, cachelines: 15, members: 7 */
/* last cacheline: 24 bytes */
};
struct ndis_wlan_bssid_ex {
u32 Length; /* 0 4 */
unsigned char MacAddress[6]; /* 4 6 */
u8 Reserved[2]; /* 10 2 */
struct ndis_802_11_ssid Ssid; /* 12 36 */
u32 Privacy; /* 48 4 */
s32 Rssi; /* 52 4 */
enum NDIS_802_11_NETWORK_TYPE NetworkTypeInUse; /* 56 4 */
struct NDIS_802_11_CONFIGURATION Configuration; /* 60 32 */
/* --- cacheline 1 boundary (64 bytes) was 28 bytes ago --- */
enum NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode; /* 92 4 */
NDIS_802_11_RATES_EX SupportedRates; /* 96 16 */
u32 IELength; /* 112 4 */
u8 IEs[768]; /* 116 768 */
/* --- cacheline 13 boundary (832 bytes) was 52 bytes ago --- */
/* size: 884, cachelines: 14, members: 12 */
/* last cacheline: 52 bytes */
};
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-18 10:32:39 +01:00
..
2015-03-06 01:29:16 +01:00
2015-02-10 10:23:15 +00:00
2015-03-01 18:43:51 -08:00
2015-02-12 14:30:53 -08:00
2015-03-06 01:29:31 +01:00
2015-01-29 10:54:43 +02:00
2015-02-28 10:21:57 -08:00
2015-02-23 09:30:35 +02:00
2015-02-17 09:27:54 -08:00
2015-02-19 20:58:42 -06:00
2015-03-04 22:11:17 +01:00
2015-02-25 10:28:55 +01:00
2015-02-04 10:42:55 -08:00
2015-03-06 13:43:33 -08:00
2015-03-05 23:13:19 +01:00
2015-02-18 08:49:20 -08:00
2015-02-13 21:39:06 +01:00
2015-03-09 08:13:01 +01:00
2015-02-19 11:18:14 -08:00
2015-01-26 13:47:55 +09:00
2015-02-02 21:56:03 +01:00
2015-03-02 14:18:57 +01:00
2015-02-23 15:40:32 +01:00
2015-03-07 07:40:17 +10:00
2015-02-23 15:28:40 +01:00
2015-02-15 10:48:44 -08:00
2015-02-22 20:10:30 -08:00
2015-03-07 01:08:26 +01:00
2015-02-15 19:40:09 +01:00
2015-02-28 07:19:27 -08:00
2015-02-22 17:42:14 -08:00
2015-02-21 12:59:04 -08:00
2015-02-12 09:16:56 -08:00
2015-02-21 19:41:38 -08:00
2015-03-03 15:30:07 -08:00
2015-02-02 14:36:10 -08:00
2015-02-18 09:24:01 -08:00
2015-02-11 12:56:40 -08:00
2015-02-03 15:48:51 -08:00
2015-02-25 11:38:46 +11:00
2015-02-11 17:06:05 -08:00
2015-01-29 22:57:43 -06:00
2015-02-03 15:58:39 -08:00
2015-02-18 09:05:48 -08:00
2015-03-01 19:34:50 -08:00
2015-02-21 12:30:30 -08:00
2015-02-18 08:01:44 -08:00
2015-03-03 15:30:07 -08:00
2015-02-04 09:15:18 +01:00
2015-02-18 09:43:46 -08:00
2015-02-28 00:47:00 +01:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-11 11:23:13 -08:00
2015-02-21 11:12:07 -08:00
2015-02-21 04:29:16 +01:00
2015-01-28 15:08:10 +01:00
2015-02-18 08:40:29 +01:00
2015-02-18 08:49:20 -08:00
2015-02-18 09:05:48 -08:00
2015-03-06 01:29:05 +01:00
2015-02-13 09:55:09 -08:00
2015-02-21 19:16:42 -08:00
2015-02-24 07:26:12 +09:00
2015-02-17 09:38:59 -08:00
2015-02-19 10:36:45 -08:00
2015-02-11 14:38:29 -08:00
2015-03-18 10:32:39 +01:00
2015-02-21 13:21:19 -08:00
2015-03-05 01:47:57 -04:00
2015-03-08 12:25:40 -07:00
2015-03-08 12:47:18 -07:00
2015-02-15 10:24:55 -08:00
2015-02-10 12:38:14 -07:00
2015-03-03 15:30:07 -08:00
2015-02-11 17:06:05 -08:00
2015-02-17 16:19:29 +10:30
2015-03-06 17:03:22 -08:00
2015-03-06 00:46:31 +01:00
2015-02-23 16:30:25 +00:00
2015-02-03 15:58:39 -08:00