aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 18:01:05 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-20 18:01:05 -0400
commit25aebdb1bb13bbab2d620ae48e3ea3184a8fdac5 (patch)
treee18c2b0cd46a2f2274024b35fa3d299420cfe605
parent4bcb20f83441f1ffa5907200444066c580231755 (diff)
staging: csr: remove CsrMemCpy()
It was just a wrapper around memcpy() so call that instead. Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com> Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com> Cc: Riku Mettälä <riku.mettala@bluegiga.com> Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/csr/csr_serialize_primitive_types.c4
-rw-r--r--drivers/staging/csr/csr_utf16.c6
-rw-r--r--drivers/staging/csr/csr_util.c11
-rw-r--r--drivers/staging/csr/csr_util.h9
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c6
-rw-r--r--drivers/staging/csr/csr_wifi_hip_packing.c96
-rw-r--r--drivers/staging/csr/csr_wifi_hip_send.c2
-rw-r--r--drivers/staging/csr/csr_wifi_hip_xbv.c4
-rw-r--r--drivers/staging/csr/csr_wifi_nme_ap_lib.h6
-rw-r--r--drivers/staging/csr/csr_wifi_nme_lib.h12
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_lib.h2
-rw-r--r--drivers/staging/csr/csr_wifi_sme_ap_lib.h6
-rw-r--r--drivers/staging/csr/csr_wifi_sme_lib.h4
-rw-r--r--drivers/staging/csr/sme_mgt.c2
-rw-r--r--drivers/staging/csr/unifi_sme.c4
15 files changed, 77 insertions, 97 deletions
diff --git a/drivers/staging/csr/csr_serialize_primitive_types.c b/drivers/staging/csr/csr_serialize_primitive_types.c
index 1d84938bbb4d..dfb89f1f9fab 100644
--- a/drivers/staging/csr/csr_serialize_primitive_types.c
+++ b/drivers/staging/csr/csr_serialize_primitive_types.c
@@ -42,7 +42,7 @@ EXPORT_SYMBOL_GPL(CsrUint32Des);
42 42
43void CsrMemCpyDes(void *value, u8 *buffer, size_t *offset, size_t length) 43void CsrMemCpyDes(void *value, u8 *buffer, size_t *offset, size_t length)
44{ 44{
45 CsrMemCpy(value, &buffer[*offset], length); 45 memcpy(value, &buffer[*offset], length);
46 *offset += length; 46 *offset += length;
47} 47}
48EXPORT_SYMBOL_GPL(CsrMemCpyDes); 48EXPORT_SYMBOL_GPL(CsrMemCpyDes);
@@ -114,7 +114,7 @@ EXPORT_SYMBOL_GPL(CsrUint32Ser);
114 114
115void CsrMemCpySer(u8 *buffer, size_t *offset, const void *value, size_t length) 115void CsrMemCpySer(u8 *buffer, size_t *offset, const void *value, size_t length)
116{ 116{
117 CsrMemCpy(&buffer[*offset], value, length); 117 memcpy(&buffer[*offset], value, length);
118 *offset += length; 118 *offset += length;
119} 119}
120EXPORT_SYMBOL_GPL(CsrMemCpySer); 120EXPORT_SYMBOL_GPL(CsrMemCpySer);
diff --git a/drivers/staging/csr/csr_utf16.c b/drivers/staging/csr/csr_utf16.c
index edfc4b718db5..682efa909947 100644
--- a/drivers/staging/csr/csr_utf16.c
+++ b/drivers/staging/csr/csr_utf16.c
@@ -151,7 +151,7 @@ u32 CsrUtf16StringToUint32(const u16 *unicodeString)
151*********************************************************************************/ 151*********************************************************************************/
152u16 *CsrUtf16MemCpy(u16 *dest, const u16 *src, u32 count) 152u16 *CsrUtf16MemCpy(u16 *dest, const u16 *src, u32 count)
153{ 153{
154 return CsrMemCpy((u8 *) dest, (u8 *) src, count * sizeof(u16)); 154 return memcpy((u8 *) dest, (u8 *) src, count * sizeof(u16));
155} 155}
156 156
157/******************************************************************************** 157/********************************************************************************
@@ -706,7 +706,7 @@ u16 *CsrUtf16StrCpy(u16 *target, const u16 *source)
706{ 706{
707 if (source) /* if source is not NULL*/ 707 if (source) /* if source is not NULL*/
708 { 708 {
709 CsrMemCpy(target, source, (CsrUtf16StrLen(source) + 1) * sizeof(u16)); 709 memcpy(target, source, (CsrUtf16StrLen(source) + 1) * sizeof(u16));
710 return target; 710 return target;
711 } 711 }
712 else 712 else
@@ -736,7 +736,7 @@ u16 *CsrUtf16StringDuplicate(const u16 *source)
736 { 736 {
737 length = (CsrUtf16StrLen(source) + 1) * sizeof(u16); 737 length = (CsrUtf16StrLen(source) + 1) * sizeof(u16);
738 target = (u16 *) CsrPmemAlloc(length); 738 target = (u16 *) CsrPmemAlloc(length);
739 CsrMemCpy(target, source, length); 739 memcpy(target, source, length);
740 } 740 }
741 return target; 741 return target;
742} 742}
diff --git a/drivers/staging/csr/csr_util.c b/drivers/staging/csr/csr_util.c
index c3db3ee71b89..ae2e1dcbfd4d 100644
--- a/drivers/staging/csr/csr_util.c
+++ b/drivers/staging/csr/csr_util.c
@@ -33,17 +33,6 @@ void CsrUInt16ToHex(u16 number, char *str)
33 str[4] = '\0'; 33 str[4] = '\0';
34} 34}
35 35
36/*------------------------------------------------------------------*/
37/* String */
38/*------------------------------------------------------------------*/
39#ifndef CSR_USE_STDC_LIB
40void *CsrMemCpy(void *dest, const void *src, size_t count)
41{
42 return memcpy(dest, src, count);
43}
44EXPORT_SYMBOL_GPL(CsrMemCpy);
45#endif
46
47MODULE_DESCRIPTION("CSR Operating System Kernel Abstraction"); 36MODULE_DESCRIPTION("CSR Operating System Kernel Abstraction");
48MODULE_AUTHOR("Cambridge Silicon Radio Ltd."); 37MODULE_AUTHOR("Cambridge Silicon Radio Ltd.");
49MODULE_LICENSE("GPL and additional rights"); 38MODULE_LICENSE("GPL and additional rights");
diff --git a/drivers/staging/csr/csr_util.h b/drivers/staging/csr/csr_util.h
index fb5f05e75c25..d60d8df3b89b 100644
--- a/drivers/staging/csr/csr_util.h
+++ b/drivers/staging/csr/csr_util.h
@@ -23,15 +23,6 @@ extern "C" {
23/*------------------------------------------------------------------*/ 23/*------------------------------------------------------------------*/
24void CsrUInt16ToHex(u16 number, char *str); 24void CsrUInt16ToHex(u16 number, char *str);
25 25
26/*------------------------------------------------------------------*/
27/* Standard C Library functions */
28/*------------------------------------------------------------------*/
29#ifdef CSR_USE_STDC_LIB
30#define CsrMemCpy memcpy
31#else /* !CSR_USE_STDC_LIB */
32void *CsrMemCpy(void *dest, const void *src, size_t count);
33#endif /* !CSR_USE_STDC_LIB */
34
35#define CsrOffsetOf(st, m) ((size_t) & ((st *) 0)->m) 26#define CsrOffsetOf(st, m) ((size_t) & ((st *) 0)->m)
36 27
37#ifdef __cplusplus 28#ifdef __cplusplus
diff --git a/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c b/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
index a111d40f3e34..6536cb35cf61 100644
--- a/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
+++ b/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
@@ -1750,7 +1750,7 @@ static CsrResult process_bulk_data_command(card_t *card, const u8 *cmdptr,
1750 return -1; 1750 return -1;
1751 } 1751 }
1752 1752
1753 CsrMemCpy((void *)host_bulk_data_slot, 1753 memcpy((void *)host_bulk_data_slot,
1754 (void *)(bdslot->os_data_ptr + offset), len); 1754 (void *)(bdslot->os_data_ptr + offset), len);
1755 1755
1756 r = unifi_bulk_rw(card, 1756 r = unifi_bulk_rw(card,
@@ -2104,7 +2104,7 @@ static CsrResult process_fh_cmd_queue(card_t *card, s32 *processed)
2104 card->fh_buffer.ptr[1] = 2104 card->fh_buffer.ptr[1] =
2105 (u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4)); 2105 (u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4));
2106 2106
2107 CsrMemCpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length); 2107 memcpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length);
2108 memset(card->fh_buffer.ptr + 2 + signal_length, 0, 2108 memset(card->fh_buffer.ptr + 2 + signal_length, 0,
2109 total_length - (2 + signal_length)); 2109 total_length - (2 + signal_length));
2110 2110
@@ -2382,7 +2382,7 @@ static CsrResult process_fh_traffic_queue(card_t *card, s32 *processed)
2382 card->fh_buffer.ptr[1] = 2382 card->fh_buffer.ptr[1] =
2383 (u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4)); 2383 (u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4));
2384 2384
2385 CsrMemCpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length); 2385 memcpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length);
2386 memset(card->fh_buffer.ptr + 2 + signal_length, 0, 2386 memset(card->fh_buffer.ptr + 2 + signal_length, 0,
2387 total_length - (2 + signal_length)); 2387 total_length - (2 + signal_length));
2388 2388
diff --git a/drivers/staging/csr/csr_wifi_hip_packing.c b/drivers/staging/csr/csr_wifi_hip_packing.c
index c01bb1372eba..0768aefc6d1f 100644
--- a/drivers/staging/csr/csr_wifi_hip_packing.c
+++ b/drivers/staging/csr/csr_wifi_hip_packing.c
@@ -1321,7 +1321,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1321 index += SIZEOF_UINT16; 1321 index += SIZEOF_UINT16;
1322 sig->u.MlmeStopAggregationConfirm.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1322 sig->u.MlmeStopAggregationConfirm.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1323 index += SIZEOF_UINT16; 1323 index += SIZEOF_UINT16;
1324 CsrMemCpy(sig->u.MlmeStopAggregationConfirm.PeerQstaAddress.x, &ptr[index], 48 / 8); 1324 memcpy(sig->u.MlmeStopAggregationConfirm.PeerQstaAddress.x, &ptr[index], 48 / 8);
1325 index += 48 / 8; 1325 index += 48 / 8;
1326 sig->u.MlmeStopAggregationConfirm.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1326 sig->u.MlmeStopAggregationConfirm.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1327 index += SIZEOF_UINT16; 1327 index += SIZEOF_UINT16;
@@ -1428,7 +1428,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1428 index += SIZEOF_UINT16; 1428 index += SIZEOF_UINT16;
1429 sig->u.MaPacketIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1429 sig->u.MaPacketIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1430 index += SIZEOF_UINT16; 1430 index += SIZEOF_UINT16;
1431 CsrMemCpy(sig->u.MaPacketIndication.LocalTime.x, &ptr[index], 64 / 8); 1431 memcpy(sig->u.MaPacketIndication.LocalTime.x, &ptr[index], 64 / 8);
1432 index += 64 / 8; 1432 index += 64 / 8;
1433 sig->u.MaPacketIndication.Ifindex = (CSR_IFINTERFACE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1433 sig->u.MaPacketIndication.Ifindex = (CSR_IFINTERFACE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1434 index += SIZEOF_UINT16; 1434 index += SIZEOF_UINT16;
@@ -1473,7 +1473,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1473 index += SIZEOF_UINT16; 1473 index += SIZEOF_UINT16;
1474 sig->u.MlmeConnectedIndication.ConnectionStatus = (CSR_CONNECTION_STATUS) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1474 sig->u.MlmeConnectedIndication.ConnectionStatus = (CSR_CONNECTION_STATUS) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1475 index += SIZEOF_UINT16; 1475 index += SIZEOF_UINT16;
1476 CsrMemCpy(sig->u.MlmeConnectedIndication.PeerMacAddress.x, &ptr[index], 48 / 8); 1476 memcpy(sig->u.MlmeConnectedIndication.PeerMacAddress.x, &ptr[index], 48 / 8);
1477 index += 48 / 8; 1477 index += 48 / 8;
1478 break; 1478 break;
1479#endif 1479#endif
@@ -1593,7 +1593,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1593 index += SIZEOF_UINT16; 1593 index += SIZEOF_UINT16;
1594 sig->u.MlmeStartAggregationRequest.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1594 sig->u.MlmeStartAggregationRequest.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1595 index += SIZEOF_UINT16; 1595 index += SIZEOF_UINT16;
1596 CsrMemCpy(sig->u.MlmeStartAggregationRequest.PeerQstaAddress.x, &ptr[index], 48 / 8); 1596 memcpy(sig->u.MlmeStartAggregationRequest.PeerQstaAddress.x, &ptr[index], 48 / 8);
1597 index += 48 / 8; 1597 index += 48 / 8;
1598 sig->u.MlmeStartAggregationRequest.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1598 sig->u.MlmeStartAggregationRequest.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1599 index += SIZEOF_UINT16; 1599 index += SIZEOF_UINT16;
@@ -1617,7 +1617,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1617 index += SIZEOF_UINT16; 1617 index += SIZEOF_UINT16;
1618 sig->u.MlmeHlSyncRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1618 sig->u.MlmeHlSyncRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1619 index += SIZEOF_UINT16; 1619 index += SIZEOF_UINT16;
1620 CsrMemCpy(sig->u.MlmeHlSyncRequest.GroupAddress.x, &ptr[index], 48 / 8); 1620 memcpy(sig->u.MlmeHlSyncRequest.GroupAddress.x, &ptr[index], 48 / 8);
1621 index += 48 / 8; 1621 index += 48 / 8;
1622 break; 1622 break;
1623#endif 1623#endif
@@ -1705,7 +1705,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1705 index += SIZEOF_UINT16; 1705 index += SIZEOF_UINT16;
1706 sig->u.MlmeResetRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1706 sig->u.MlmeResetRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1707 index += SIZEOF_UINT16; 1707 index += SIZEOF_UINT16;
1708 CsrMemCpy(sig->u.MlmeResetRequest.StaAddress.x, &ptr[index], 48 / 8); 1708 memcpy(sig->u.MlmeResetRequest.StaAddress.x, &ptr[index], 48 / 8);
1709 index += 48 / 8; 1709 index += 48 / 8;
1710 sig->u.MlmeResetRequest.SetDefaultMib = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1710 sig->u.MlmeResetRequest.SetDefaultMib = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1711 index += SIZEOF_UINT16; 1711 index += SIZEOF_UINT16;
@@ -1793,7 +1793,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
1793 index += SIZEOF_UINT16; 1793 index += SIZEOF_UINT16;
1794 sig->u.MlmeConnectStatusRequest.ConnectionStatus = (CSR_CONNECTION_STATUS) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1794 sig->u.MlmeConnectStatusRequest.ConnectionStatus = (CSR_CONNECTION_STATUS) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1795 index += SIZEOF_UINT16; 1795 index += SIZEOF_UINT16;
1796 CsrMemCpy(sig->u.MlmeConnectStatusRequest.StaAddress.x, &ptr[index], 48 / 8); 1796 memcpy(sig->u.MlmeConnectStatusRequest.StaAddress.x, &ptr[index], 48 / 8);
1797 index += 48 / 8; 1797 index += 48 / 8;
1798 sig->u.MlmeConnectStatusRequest.AssociationId = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 1798 sig->u.MlmeConnectStatusRequest.AssociationId = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
1799 index += SIZEOF_UINT16; 1799 index += SIZEOF_UINT16;
@@ -2010,7 +2010,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2010 index += SIZEOF_UINT32; 2010 index += SIZEOF_UINT32;
2011 sig->u.MaPacketRequest.Priority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2011 sig->u.MaPacketRequest.Priority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2012 index += SIZEOF_UINT16; 2012 index += SIZEOF_UINT16;
2013 CsrMemCpy(sig->u.MaPacketRequest.Ra.x, &ptr[index], 48 / 8); 2013 memcpy(sig->u.MaPacketRequest.Ra.x, &ptr[index], 48 / 8);
2014 index += 48 / 8; 2014 index += 48 / 8;
2015 sig->u.MaPacketRequest.TransmissionControl = (CSR_TRANSMISSION_CONTROL) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2015 sig->u.MaPacketRequest.TransmissionControl = (CSR_TRANSMISSION_CONTROL) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2016 index += SIZEOF_UINT16; 2016 index += SIZEOF_UINT16;
@@ -2033,7 +2033,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2033 index += SIZEOF_UINT16; 2033 index += SIZEOF_UINT16;
2034 sig->u.MlmeModifyBssParameterRequest.CapabilityInformation = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2034 sig->u.MlmeModifyBssParameterRequest.CapabilityInformation = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2035 index += SIZEOF_UINT16; 2035 index += SIZEOF_UINT16;
2036 CsrMemCpy(sig->u.MlmeModifyBssParameterRequest.Bssid.x, &ptr[index], 48 / 8); 2036 memcpy(sig->u.MlmeModifyBssParameterRequest.Bssid.x, &ptr[index], 48 / 8);
2037 index += 48 / 8; 2037 index += 48 / 8;
2038 sig->u.MlmeModifyBssParameterRequest.RtsThreshold = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2038 sig->u.MlmeModifyBssParameterRequest.RtsThreshold = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2039 index += SIZEOF_UINT16; 2039 index += SIZEOF_UINT16;
@@ -2081,7 +2081,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2081 index += SIZEOF_UINT16; 2081 index += SIZEOF_UINT16;
2082 sig->u.MlmeHlSyncCancelRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2082 sig->u.MlmeHlSyncCancelRequest.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2083 index += SIZEOF_UINT16; 2083 index += SIZEOF_UINT16;
2084 CsrMemCpy(sig->u.MlmeHlSyncCancelRequest.GroupAddress.x, &ptr[index], 48 / 8); 2084 memcpy(sig->u.MlmeHlSyncCancelRequest.GroupAddress.x, &ptr[index], 48 / 8);
2085 index += 48 / 8; 2085 index += 48 / 8;
2086 break; 2086 break;
2087#endif 2087#endif
@@ -2151,7 +2151,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2151 index += SIZEOF_UINT16; 2151 index += SIZEOF_UINT16;
2152 sig->u.MlmeGetKeySequenceRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2152 sig->u.MlmeGetKeySequenceRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2153 index += SIZEOF_UINT16; 2153 index += SIZEOF_UINT16;
2154 CsrMemCpy(sig->u.MlmeGetKeySequenceRequest.Address.x, &ptr[index], 48 / 8); 2154 memcpy(sig->u.MlmeGetKeySequenceRequest.Address.x, &ptr[index], 48 / 8);
2155 index += 48 / 8; 2155 index += 48 / 8;
2156 break; 2156 break;
2157#endif 2157#endif
@@ -2171,7 +2171,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2171 index += SIZEOF_UINT16; 2171 index += SIZEOF_UINT16;
2172 sig->u.MlmeSetChannelRequest.Channel = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2172 sig->u.MlmeSetChannelRequest.Channel = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2173 index += SIZEOF_UINT16; 2173 index += SIZEOF_UINT16;
2174 CsrMemCpy(sig->u.MlmeSetChannelRequest.Address.x, &ptr[index], 48 / 8); 2174 memcpy(sig->u.MlmeSetChannelRequest.Address.x, &ptr[index], 48 / 8);
2175 index += 48 / 8; 2175 index += 48 / 8;
2176 sig->u.MlmeSetChannelRequest.AvailabilityDuration = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2176 sig->u.MlmeSetChannelRequest.AvailabilityDuration = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2177 index += SIZEOF_UINT16; 2177 index += SIZEOF_UINT16;
@@ -2223,7 +2223,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2223 index += SIZEOF_UINT16; 2223 index += SIZEOF_UINT16;
2224 sig->u.MlmeAutonomousScanLossIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2224 sig->u.MlmeAutonomousScanLossIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2225 index += SIZEOF_UINT16; 2225 index += SIZEOF_UINT16;
2226 CsrMemCpy(sig->u.MlmeAutonomousScanLossIndication.Bssid.x, &ptr[index], 48 / 8); 2226 memcpy(sig->u.MlmeAutonomousScanLossIndication.Bssid.x, &ptr[index], 48 / 8);
2227 index += 48 / 8; 2227 index += 48 / 8;
2228 break; 2228 break;
2229#endif 2229#endif
@@ -2337,7 +2337,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2337 index += SIZEOF_UINT16; 2337 index += SIZEOF_UINT16;
2338 sig->u.MlmeStopAggregationRequest.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2338 sig->u.MlmeStopAggregationRequest.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2339 index += SIZEOF_UINT16; 2339 index += SIZEOF_UINT16;
2340 CsrMemCpy(sig->u.MlmeStopAggregationRequest.PeerQstaAddress.x, &ptr[index], 48 / 8); 2340 memcpy(sig->u.MlmeStopAggregationRequest.PeerQstaAddress.x, &ptr[index], 48 / 8);
2341 index += 48 / 8; 2341 index += 48 / 8;
2342 sig->u.MlmeStopAggregationRequest.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2342 sig->u.MlmeStopAggregationRequest.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2343 index += SIZEOF_UINT16; 2343 index += SIZEOF_UINT16;
@@ -2387,7 +2387,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2387 index += SIZEOF_UINT32; 2387 index += SIZEOF_UINT32;
2388 sig->u.MlmeAddBlackoutRequest.BlackoutDuration = CSR_GET_UINT32_FROM_LITTLE_ENDIAN(ptr + index); 2388 sig->u.MlmeAddBlackoutRequest.BlackoutDuration = CSR_GET_UINT32_FROM_LITTLE_ENDIAN(ptr + index);
2389 index += SIZEOF_UINT32; 2389 index += SIZEOF_UINT32;
2390 CsrMemCpy(sig->u.MlmeAddBlackoutRequest.PeerStaAddress.x, &ptr[index], 48 / 8); 2390 memcpy(sig->u.MlmeAddBlackoutRequest.PeerStaAddress.x, &ptr[index], 48 / 8);
2391 index += 48 / 8; 2391 index += 48 / 8;
2392 sig->u.MlmeAddBlackoutRequest.BlackoutCount = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2392 sig->u.MlmeAddBlackoutRequest.BlackoutCount = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2393 index += SIZEOF_UINT16; 2393 index += SIZEOF_UINT16;
@@ -2409,7 +2409,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2409 index += SIZEOF_UINT16; 2409 index += SIZEOF_UINT16;
2410 sig->u.MlmeDeletekeysRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2410 sig->u.MlmeDeletekeysRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2411 index += SIZEOF_UINT16; 2411 index += SIZEOF_UINT16;
2412 CsrMemCpy(sig->u.MlmeDeletekeysRequest.Address.x, &ptr[index], 48 / 8); 2412 memcpy(sig->u.MlmeDeletekeysRequest.Address.x, &ptr[index], 48 / 8);
2413 index += 48 / 8; 2413 index += 48 / 8;
2414 break; 2414 break;
2415#endif 2415#endif
@@ -2437,7 +2437,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2437 index += SIZEOF_UINT16; 2437 index += SIZEOF_UINT16;
2438 sig->u.MlmeHlSyncConfirm.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2438 sig->u.MlmeHlSyncConfirm.Dummydataref2.DataLength = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2439 index += SIZEOF_UINT16; 2439 index += SIZEOF_UINT16;
2440 CsrMemCpy(sig->u.MlmeHlSyncConfirm.GroupAddress.x, &ptr[index], 48 / 8); 2440 memcpy(sig->u.MlmeHlSyncConfirm.GroupAddress.x, &ptr[index], 48 / 8);
2441 index += 48 / 8; 2441 index += 48 / 8;
2442 sig->u.MlmeHlSyncConfirm.ResultCode = (CSR_RESULT_CODE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2442 sig->u.MlmeHlSyncConfirm.ResultCode = (CSR_RESULT_CODE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2443 index += SIZEOF_UINT16; 2443 index += SIZEOF_UINT16;
@@ -2499,9 +2499,9 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2499 index += SIZEOF_UINT16; 2499 index += SIZEOF_UINT16;
2500 sig->u.MlmeSmStartRequest.Channel = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2500 sig->u.MlmeSmStartRequest.Channel = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2501 index += SIZEOF_UINT16; 2501 index += SIZEOF_UINT16;
2502 CsrMemCpy(sig->u.MlmeSmStartRequest.InterfaceAddress.x, &ptr[index], 48 / 8); 2502 memcpy(sig->u.MlmeSmStartRequest.InterfaceAddress.x, &ptr[index], 48 / 8);
2503 index += 48 / 8; 2503 index += 48 / 8;
2504 CsrMemCpy(sig->u.MlmeSmStartRequest.Bssid.x, &ptr[index], 48 / 8); 2504 memcpy(sig->u.MlmeSmStartRequest.Bssid.x, &ptr[index], 48 / 8);
2505 index += 48 / 8; 2505 index += 48 / 8;
2506 sig->u.MlmeSmStartRequest.BeaconPeriod = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2506 sig->u.MlmeSmStartRequest.BeaconPeriod = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2507 index += SIZEOF_UINT16; 2507 index += SIZEOF_UINT16;
@@ -2579,7 +2579,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2579 index += SIZEOF_UINT16; 2579 index += SIZEOF_UINT16;
2580 sig->u.MlmeSetkeysRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2580 sig->u.MlmeSetkeysRequest.KeyType = (CSR_KEY_TYPE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2581 index += SIZEOF_UINT16; 2581 index += SIZEOF_UINT16;
2582 CsrMemCpy(sig->u.MlmeSetkeysRequest.Address.x, &ptr[index], 48 / 8); 2582 memcpy(sig->u.MlmeSetkeysRequest.Address.x, &ptr[index], 48 / 8);
2583 index += 48 / 8; 2583 index += 48 / 8;
2584 sig->u.MlmeSetkeysRequest.SequenceNumber[0] = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2584 sig->u.MlmeSetkeysRequest.SequenceNumber[0] = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2585 index += SIZEOF_UINT16; 2585 index += SIZEOF_UINT16;
@@ -2597,7 +2597,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2597 index += SIZEOF_UINT16; 2597 index += SIZEOF_UINT16;
2598 sig->u.MlmeSetkeysRequest.SequenceNumber[7] = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2598 sig->u.MlmeSetkeysRequest.SequenceNumber[7] = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2599 index += SIZEOF_UINT16; 2599 index += SIZEOF_UINT16;
2600 CsrMemCpy(&sig->u.MlmeSetkeysRequest.CipherSuiteSelector, &ptr[index], 32 / 8); 2600 memcpy(&sig->u.MlmeSetkeysRequest.CipherSuiteSelector, &ptr[index], 32 / 8);
2601 index += 32 / 8; 2601 index += 32 / 8;
2602 break; 2602 break;
2603#endif 2603#endif
@@ -2664,7 +2664,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2664 index += SIZEOF_UINT16; 2664 index += SIZEOF_UINT16;
2665 sig->u.MaPacketErrorIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2665 sig->u.MaPacketErrorIndication.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2666 index += SIZEOF_UINT16; 2666 index += SIZEOF_UINT16;
2667 CsrMemCpy(sig->u.MaPacketErrorIndication.PeerQstaAddress.x, &ptr[index], 48 / 8); 2667 memcpy(sig->u.MaPacketErrorIndication.PeerQstaAddress.x, &ptr[index], 48 / 8);
2668 index += 48 / 8; 2668 index += 48 / 8;
2669 sig->u.MaPacketErrorIndication.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2669 sig->u.MaPacketErrorIndication.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2670 index += SIZEOF_UINT16; 2670 index += SIZEOF_UINT16;
@@ -2829,7 +2829,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2829 index += SIZEOF_UINT16; 2829 index += SIZEOF_UINT16;
2830 sig->u.MlmeBlockackErrorIndication.ResultCode = (CSR_REASON_CODE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2830 sig->u.MlmeBlockackErrorIndication.ResultCode = (CSR_REASON_CODE) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2831 index += SIZEOF_UINT16; 2831 index += SIZEOF_UINT16;
2832 CsrMemCpy(sig->u.MlmeBlockackErrorIndication.PeerQstaAddress.x, &ptr[index], 48 / 8); 2832 memcpy(sig->u.MlmeBlockackErrorIndication.PeerQstaAddress.x, &ptr[index], 48 / 8);
2833 index += 48 / 8; 2833 index += 48 / 8;
2834 break; 2834 break;
2835#endif 2835#endif
@@ -2875,7 +2875,7 @@ CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig)
2875 index += SIZEOF_UINT16; 2875 index += SIZEOF_UINT16;
2876 sig->u.MlmeStartAggregationConfirm.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2876 sig->u.MlmeStartAggregationConfirm.VirtualInterfaceIdentifier = CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2877 index += SIZEOF_UINT16; 2877 index += SIZEOF_UINT16;
2878 CsrMemCpy(sig->u.MlmeStartAggregationConfirm.PeerQstaAddress.x, &ptr[index], 48 / 8); 2878 memcpy(sig->u.MlmeStartAggregationConfirm.PeerQstaAddress.x, &ptr[index], 48 / 8);
2879 index += 48 / 8; 2879 index += 48 / 8;
2880 sig->u.MlmeStartAggregationConfirm.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index); 2880 sig->u.MlmeStartAggregationConfirm.UserPriority = (CSR_PRIORITY) CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr + index);
2881 index += SIZEOF_UINT16; 2881 index += SIZEOF_UINT16;
@@ -3157,7 +3157,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3157 index += SIZEOF_UINT16; 3157 index += SIZEOF_UINT16;
3158 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationConfirm.VirtualInterfaceIdentifier, ptr + index); 3158 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationConfirm.VirtualInterfaceIdentifier, ptr + index);
3159 index += SIZEOF_UINT16; 3159 index += SIZEOF_UINT16;
3160 CsrMemCpy(ptr + index, sig->u.MlmeStopAggregationConfirm.PeerQstaAddress.x, 48 / 8); 3160 memcpy(ptr + index, sig->u.MlmeStopAggregationConfirm.PeerQstaAddress.x, 48 / 8);
3161 index += 48 / 8; 3161 index += 48 / 8;
3162 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationConfirm.UserPriority, ptr + index); 3162 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationConfirm.UserPriority, ptr + index);
3163 index += SIZEOF_UINT16; 3163 index += SIZEOF_UINT16;
@@ -3264,7 +3264,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3264 index += SIZEOF_UINT16; 3264 index += SIZEOF_UINT16;
3265 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketIndication.VirtualInterfaceIdentifier, ptr + index); 3265 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketIndication.VirtualInterfaceIdentifier, ptr + index);
3266 index += SIZEOF_UINT16; 3266 index += SIZEOF_UINT16;
3267 CsrMemCpy(ptr + index, sig->u.MaPacketIndication.LocalTime.x, 64 / 8); 3267 memcpy(ptr + index, sig->u.MaPacketIndication.LocalTime.x, 64 / 8);
3268 index += 64 / 8; 3268 index += 64 / 8;
3269 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketIndication.Ifindex, ptr + index); 3269 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketIndication.Ifindex, ptr + index);
3270 index += SIZEOF_UINT16; 3270 index += SIZEOF_UINT16;
@@ -3309,7 +3309,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3309 index += SIZEOF_UINT16; 3309 index += SIZEOF_UINT16;
3310 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectedIndication.ConnectionStatus, ptr + index); 3310 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectedIndication.ConnectionStatus, ptr + index);
3311 index += SIZEOF_UINT16; 3311 index += SIZEOF_UINT16;
3312 CsrMemCpy(ptr + index, sig->u.MlmeConnectedIndication.PeerMacAddress.x, 48 / 8); 3312 memcpy(ptr + index, sig->u.MlmeConnectedIndication.PeerMacAddress.x, 48 / 8);
3313 index += 48 / 8; 3313 index += 48 / 8;
3314 break; 3314 break;
3315#endif 3315#endif
@@ -3429,7 +3429,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3429 index += SIZEOF_UINT16; 3429 index += SIZEOF_UINT16;
3430 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationRequest.VirtualInterfaceIdentifier, ptr + index); 3430 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationRequest.VirtualInterfaceIdentifier, ptr + index);
3431 index += SIZEOF_UINT16; 3431 index += SIZEOF_UINT16;
3432 CsrMemCpy(ptr + index, sig->u.MlmeStartAggregationRequest.PeerQstaAddress.x, 48 / 8); 3432 memcpy(ptr + index, sig->u.MlmeStartAggregationRequest.PeerQstaAddress.x, 48 / 8);
3433 index += 48 / 8; 3433 index += 48 / 8;
3434 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationRequest.UserPriority, ptr + index); 3434 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationRequest.UserPriority, ptr + index);
3435 index += SIZEOF_UINT16; 3435 index += SIZEOF_UINT16;
@@ -3453,7 +3453,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3453 index += SIZEOF_UINT16; 3453 index += SIZEOF_UINT16;
3454 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncRequest.Dummydataref2.DataLength, ptr + index); 3454 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncRequest.Dummydataref2.DataLength, ptr + index);
3455 index += SIZEOF_UINT16; 3455 index += SIZEOF_UINT16;
3456 CsrMemCpy(ptr + index, sig->u.MlmeHlSyncRequest.GroupAddress.x, 48 / 8); 3456 memcpy(ptr + index, sig->u.MlmeHlSyncRequest.GroupAddress.x, 48 / 8);
3457 index += 48 / 8; 3457 index += 48 / 8;
3458 break; 3458 break;
3459#endif 3459#endif
@@ -3541,7 +3541,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3541 index += SIZEOF_UINT16; 3541 index += SIZEOF_UINT16;
3542 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeResetRequest.Dummydataref2.DataLength, ptr + index); 3542 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeResetRequest.Dummydataref2.DataLength, ptr + index);
3543 index += SIZEOF_UINT16; 3543 index += SIZEOF_UINT16;
3544 CsrMemCpy(ptr + index, sig->u.MlmeResetRequest.StaAddress.x, 48 / 8); 3544 memcpy(ptr + index, sig->u.MlmeResetRequest.StaAddress.x, 48 / 8);
3545 index += 48 / 8; 3545 index += 48 / 8;
3546 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeResetRequest.SetDefaultMib, ptr + index); 3546 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeResetRequest.SetDefaultMib, ptr + index);
3547 index += SIZEOF_UINT16; 3547 index += SIZEOF_UINT16;
@@ -3629,7 +3629,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3629 index += SIZEOF_UINT16; 3629 index += SIZEOF_UINT16;
3630 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectStatusRequest.ConnectionStatus, ptr + index); 3630 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectStatusRequest.ConnectionStatus, ptr + index);
3631 index += SIZEOF_UINT16; 3631 index += SIZEOF_UINT16;
3632 CsrMemCpy(ptr + index, sig->u.MlmeConnectStatusRequest.StaAddress.x, 48 / 8); 3632 memcpy(ptr + index, sig->u.MlmeConnectStatusRequest.StaAddress.x, 48 / 8);
3633 index += 48 / 8; 3633 index += 48 / 8;
3634 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectStatusRequest.AssociationId, ptr + index); 3634 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeConnectStatusRequest.AssociationId, ptr + index);
3635 index += SIZEOF_UINT16; 3635 index += SIZEOF_UINT16;
@@ -3846,7 +3846,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3846 index += SIZEOF_UINT32; 3846 index += SIZEOF_UINT32;
3847 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketRequest.Priority, ptr + index); 3847 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketRequest.Priority, ptr + index);
3848 index += SIZEOF_UINT16; 3848 index += SIZEOF_UINT16;
3849 CsrMemCpy(ptr + index, sig->u.MaPacketRequest.Ra.x, 48 / 8); 3849 memcpy(ptr + index, sig->u.MaPacketRequest.Ra.x, 48 / 8);
3850 index += 48 / 8; 3850 index += 48 / 8;
3851 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketRequest.TransmissionControl, ptr + index); 3851 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketRequest.TransmissionControl, ptr + index);
3852 index += SIZEOF_UINT16; 3852 index += SIZEOF_UINT16;
@@ -3869,7 +3869,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3869 index += SIZEOF_UINT16; 3869 index += SIZEOF_UINT16;
3870 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeModifyBssParameterRequest.CapabilityInformation, ptr + index); 3870 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeModifyBssParameterRequest.CapabilityInformation, ptr + index);
3871 index += SIZEOF_UINT16; 3871 index += SIZEOF_UINT16;
3872 CsrMemCpy(ptr + index, sig->u.MlmeModifyBssParameterRequest.Bssid.x, 48 / 8); 3872 memcpy(ptr + index, sig->u.MlmeModifyBssParameterRequest.Bssid.x, 48 / 8);
3873 index += 48 / 8; 3873 index += 48 / 8;
3874 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeModifyBssParameterRequest.RtsThreshold, ptr + index); 3874 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeModifyBssParameterRequest.RtsThreshold, ptr + index);
3875 index += SIZEOF_UINT16; 3875 index += SIZEOF_UINT16;
@@ -3917,7 +3917,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3917 index += SIZEOF_UINT16; 3917 index += SIZEOF_UINT16;
3918 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncCancelRequest.Dummydataref2.DataLength, ptr + index); 3918 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncCancelRequest.Dummydataref2.DataLength, ptr + index);
3919 index += SIZEOF_UINT16; 3919 index += SIZEOF_UINT16;
3920 CsrMemCpy(ptr + index, sig->u.MlmeHlSyncCancelRequest.GroupAddress.x, 48 / 8); 3920 memcpy(ptr + index, sig->u.MlmeHlSyncCancelRequest.GroupAddress.x, 48 / 8);
3921 index += 48 / 8; 3921 index += 48 / 8;
3922 break; 3922 break;
3923#endif 3923#endif
@@ -3987,7 +3987,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
3987 index += SIZEOF_UINT16; 3987 index += SIZEOF_UINT16;
3988 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeGetKeySequenceRequest.KeyType, ptr + index); 3988 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeGetKeySequenceRequest.KeyType, ptr + index);
3989 index += SIZEOF_UINT16; 3989 index += SIZEOF_UINT16;
3990 CsrMemCpy(ptr + index, sig->u.MlmeGetKeySequenceRequest.Address.x, 48 / 8); 3990 memcpy(ptr + index, sig->u.MlmeGetKeySequenceRequest.Address.x, 48 / 8);
3991 index += 48 / 8; 3991 index += 48 / 8;
3992 break; 3992 break;
3993#endif 3993#endif
@@ -4007,7 +4007,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4007 index += SIZEOF_UINT16; 4007 index += SIZEOF_UINT16;
4008 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetChannelRequest.Channel, ptr + index); 4008 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetChannelRequest.Channel, ptr + index);
4009 index += SIZEOF_UINT16; 4009 index += SIZEOF_UINT16;
4010 CsrMemCpy(ptr + index, sig->u.MlmeSetChannelRequest.Address.x, 48 / 8); 4010 memcpy(ptr + index, sig->u.MlmeSetChannelRequest.Address.x, 48 / 8);
4011 index += 48 / 8; 4011 index += 48 / 8;
4012 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetChannelRequest.AvailabilityDuration, ptr + index); 4012 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetChannelRequest.AvailabilityDuration, ptr + index);
4013 index += SIZEOF_UINT16; 4013 index += SIZEOF_UINT16;
@@ -4059,7 +4059,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4059 index += SIZEOF_UINT16; 4059 index += SIZEOF_UINT16;
4060 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeAutonomousScanLossIndication.VirtualInterfaceIdentifier, ptr + index); 4060 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeAutonomousScanLossIndication.VirtualInterfaceIdentifier, ptr + index);
4061 index += SIZEOF_UINT16; 4061 index += SIZEOF_UINT16;
4062 CsrMemCpy(ptr + index, sig->u.MlmeAutonomousScanLossIndication.Bssid.x, 48 / 8); 4062 memcpy(ptr + index, sig->u.MlmeAutonomousScanLossIndication.Bssid.x, 48 / 8);
4063 index += 48 / 8; 4063 index += 48 / 8;
4064 break; 4064 break;
4065#endif 4065#endif
@@ -4173,7 +4173,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4173 index += SIZEOF_UINT16; 4173 index += SIZEOF_UINT16;
4174 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationRequest.VirtualInterfaceIdentifier, ptr + index); 4174 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationRequest.VirtualInterfaceIdentifier, ptr + index);
4175 index += SIZEOF_UINT16; 4175 index += SIZEOF_UINT16;
4176 CsrMemCpy(ptr + index, sig->u.MlmeStopAggregationRequest.PeerQstaAddress.x, 48 / 8); 4176 memcpy(ptr + index, sig->u.MlmeStopAggregationRequest.PeerQstaAddress.x, 48 / 8);
4177 index += 48 / 8; 4177 index += 48 / 8;
4178 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationRequest.UserPriority, ptr + index); 4178 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStopAggregationRequest.UserPriority, ptr + index);
4179 index += SIZEOF_UINT16; 4179 index += SIZEOF_UINT16;
@@ -4223,7 +4223,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4223 index += SIZEOF_UINT32; 4223 index += SIZEOF_UINT32;
4224 CSR_COPY_UINT32_TO_LITTLE_ENDIAN(sig->u.MlmeAddBlackoutRequest.BlackoutDuration, ptr + index); 4224 CSR_COPY_UINT32_TO_LITTLE_ENDIAN(sig->u.MlmeAddBlackoutRequest.BlackoutDuration, ptr + index);
4225 index += SIZEOF_UINT32; 4225 index += SIZEOF_UINT32;
4226 CsrMemCpy(ptr + index, sig->u.MlmeAddBlackoutRequest.PeerStaAddress.x, 48 / 8); 4226 memcpy(ptr + index, sig->u.MlmeAddBlackoutRequest.PeerStaAddress.x, 48 / 8);
4227 index += 48 / 8; 4227 index += 48 / 8;
4228 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeAddBlackoutRequest.BlackoutCount, ptr + index); 4228 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeAddBlackoutRequest.BlackoutCount, ptr + index);
4229 index += SIZEOF_UINT16; 4229 index += SIZEOF_UINT16;
@@ -4245,7 +4245,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4245 index += SIZEOF_UINT16; 4245 index += SIZEOF_UINT16;
4246 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeDeletekeysRequest.KeyType, ptr + index); 4246 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeDeletekeysRequest.KeyType, ptr + index);
4247 index += SIZEOF_UINT16; 4247 index += SIZEOF_UINT16;
4248 CsrMemCpy(ptr + index, sig->u.MlmeDeletekeysRequest.Address.x, 48 / 8); 4248 memcpy(ptr + index, sig->u.MlmeDeletekeysRequest.Address.x, 48 / 8);
4249 index += 48 / 8; 4249 index += 48 / 8;
4250 break; 4250 break;
4251#endif 4251#endif
@@ -4273,7 +4273,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4273 index += SIZEOF_UINT16; 4273 index += SIZEOF_UINT16;
4274 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncConfirm.Dummydataref2.DataLength, ptr + index); 4274 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncConfirm.Dummydataref2.DataLength, ptr + index);
4275 index += SIZEOF_UINT16; 4275 index += SIZEOF_UINT16;
4276 CsrMemCpy(ptr + index, sig->u.MlmeHlSyncConfirm.GroupAddress.x, 48 / 8); 4276 memcpy(ptr + index, sig->u.MlmeHlSyncConfirm.GroupAddress.x, 48 / 8);
4277 index += 48 / 8; 4277 index += 48 / 8;
4278 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncConfirm.ResultCode, ptr + index); 4278 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeHlSyncConfirm.ResultCode, ptr + index);
4279 index += SIZEOF_UINT16; 4279 index += SIZEOF_UINT16;
@@ -4335,9 +4335,9 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4335 index += SIZEOF_UINT16; 4335 index += SIZEOF_UINT16;
4336 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSmStartRequest.Channel, ptr + index); 4336 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSmStartRequest.Channel, ptr + index);
4337 index += SIZEOF_UINT16; 4337 index += SIZEOF_UINT16;
4338 CsrMemCpy(ptr + index, sig->u.MlmeSmStartRequest.InterfaceAddress.x, 48 / 8); 4338 memcpy(ptr + index, sig->u.MlmeSmStartRequest.InterfaceAddress.x, 48 / 8);
4339 index += 48 / 8; 4339 index += 48 / 8;
4340 CsrMemCpy(ptr + index, sig->u.MlmeSmStartRequest.Bssid.x, 48 / 8); 4340 memcpy(ptr + index, sig->u.MlmeSmStartRequest.Bssid.x, 48 / 8);
4341 index += 48 / 8; 4341 index += 48 / 8;
4342 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSmStartRequest.BeaconPeriod, ptr + index); 4342 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSmStartRequest.BeaconPeriod, ptr + index);
4343 index += SIZEOF_UINT16; 4343 index += SIZEOF_UINT16;
@@ -4415,7 +4415,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4415 index += SIZEOF_UINT16; 4415 index += SIZEOF_UINT16;
4416 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.KeyType, ptr + index); 4416 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.KeyType, ptr + index);
4417 index += SIZEOF_UINT16; 4417 index += SIZEOF_UINT16;
4418 CsrMemCpy(ptr + index, sig->u.MlmeSetkeysRequest.Address.x, 48 / 8); 4418 memcpy(ptr + index, sig->u.MlmeSetkeysRequest.Address.x, 48 / 8);
4419 index += 48 / 8; 4419 index += 48 / 8;
4420 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.SequenceNumber[0], ptr + index); 4420 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.SequenceNumber[0], ptr + index);
4421 index += SIZEOF_UINT16; 4421 index += SIZEOF_UINT16;
@@ -4433,7 +4433,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4433 index += SIZEOF_UINT16; 4433 index += SIZEOF_UINT16;
4434 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.SequenceNumber[7], ptr + index); 4434 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeSetkeysRequest.SequenceNumber[7], ptr + index);
4435 index += SIZEOF_UINT16; 4435 index += SIZEOF_UINT16;
4436 CsrMemCpy(ptr + index, &sig->u.MlmeSetkeysRequest.CipherSuiteSelector, 32 / 8); 4436 memcpy(ptr + index, &sig->u.MlmeSetkeysRequest.CipherSuiteSelector, 32 / 8);
4437 index += 32 / 8; 4437 index += 32 / 8;
4438 break; 4438 break;
4439#endif 4439#endif
@@ -4500,7 +4500,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4500 index += SIZEOF_UINT16; 4500 index += SIZEOF_UINT16;
4501 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketErrorIndication.VirtualInterfaceIdentifier, ptr + index); 4501 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketErrorIndication.VirtualInterfaceIdentifier, ptr + index);
4502 index += SIZEOF_UINT16; 4502 index += SIZEOF_UINT16;
4503 CsrMemCpy(ptr + index, sig->u.MaPacketErrorIndication.PeerQstaAddress.x, 48 / 8); 4503 memcpy(ptr + index, sig->u.MaPacketErrorIndication.PeerQstaAddress.x, 48 / 8);
4504 index += 48 / 8; 4504 index += 48 / 8;
4505 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketErrorIndication.UserPriority, ptr + index); 4505 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MaPacketErrorIndication.UserPriority, ptr + index);
4506 index += SIZEOF_UINT16; 4506 index += SIZEOF_UINT16;
@@ -4665,7 +4665,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4665 index += SIZEOF_UINT16; 4665 index += SIZEOF_UINT16;
4666 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeBlockackErrorIndication.ResultCode, ptr + index); 4666 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeBlockackErrorIndication.ResultCode, ptr + index);
4667 index += SIZEOF_UINT16; 4667 index += SIZEOF_UINT16;
4668 CsrMemCpy(ptr + index, sig->u.MlmeBlockackErrorIndication.PeerQstaAddress.x, 48 / 8); 4668 memcpy(ptr + index, sig->u.MlmeBlockackErrorIndication.PeerQstaAddress.x, 48 / 8);
4669 index += 48 / 8; 4669 index += 48 / 8;
4670 break; 4670 break;
4671#endif 4671#endif
@@ -4711,7 +4711,7 @@ CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len)
4711 index += SIZEOF_UINT16; 4711 index += SIZEOF_UINT16;
4712 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationConfirm.VirtualInterfaceIdentifier, ptr + index); 4712 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationConfirm.VirtualInterfaceIdentifier, ptr + index);
4713 index += SIZEOF_UINT16; 4713 index += SIZEOF_UINT16;
4714 CsrMemCpy(ptr + index, sig->u.MlmeStartAggregationConfirm.PeerQstaAddress.x, 48 / 8); 4714 memcpy(ptr + index, sig->u.MlmeStartAggregationConfirm.PeerQstaAddress.x, 48 / 8);
4715 index += 48 / 8; 4715 index += 48 / 8;
4716 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationConfirm.UserPriority, ptr + index); 4716 CSR_COPY_UINT16_TO_LITTLE_ENDIAN(sig->u.MlmeStartAggregationConfirm.UserPriority, ptr + index);
4717 index += SIZEOF_UINT16; 4717 index += SIZEOF_UINT16;
diff --git a/drivers/staging/csr/csr_wifi_hip_send.c b/drivers/staging/csr/csr_wifi_hip_send.c
index 88b5e341d765..684d30459d75 100644
--- a/drivers/staging/csr/csr_wifi_hip_send.c
+++ b/drivers/staging/csr/csr_wifi_hip_send.c
@@ -129,7 +129,7 @@ static CsrResult send_signal(card_t *card, const u8 *sigptr, u32 siglen,
129 129
130 /* Make up the card_signal struct */ 130 /* Make up the card_signal struct */
131 csptr->signal_length = (u16)siglen; 131 csptr->signal_length = (u16)siglen;
132 CsrMemCpy((void *)csptr->sigbuf, (void *)sigptr, siglen); 132 memcpy((void *)csptr->sigbuf, (void *)sigptr, siglen);
133 133
134 for (i = 0; i < UNIFI_MAX_DATA_REFERENCES; ++i) 134 for (i = 0; i < UNIFI_MAX_DATA_REFERENCES; ++i)
135 { 135 {
diff --git a/drivers/staging/csr/csr_wifi_hip_xbv.c b/drivers/staging/csr/csr_wifi_hip_xbv.c
index e841306adb1a..c503365581ff 100644
--- a/drivers/staging/csr/csr_wifi_hip_xbv.c
+++ b/drivers/staging/csr/csr_wifi_hip_xbv.c
@@ -522,7 +522,7 @@ static s32 read_tag(card_t *card, ct_t *ct, tag_t *tag)
522 } 522 }
523 523
524 /* get section tag */ 524 /* get section tag */
525 CsrMemCpy(tag->t_name, buf, 4); 525 memcpy(tag->t_name, buf, 4);
526 526
527 /* get section length */ 527 /* get section length */
528 tag->t_len = xbv2uint(buf + 4, 4); 528 tag->t_len = xbv2uint(buf + 4, 4);
@@ -601,7 +601,7 @@ static u32 write_bytes(void *buf, const u32 offset, const u8 *data, const u32 le
601static u32 write_tag(void *buf, const u32 offset, const char *tag_str) 601static u32 write_tag(void *buf, const u32 offset, const char *tag_str)
602{ 602{
603 u8 *dst = (u8 *)buf + offset; 603 u8 *dst = (u8 *)buf + offset;
604 CsrMemCpy(dst, tag_str, 4); 604 memcpy(dst, tag_str, 4);
605 return 4; 605 return 4;
606} 606}
607 607
diff --git a/drivers/staging/csr/csr_wifi_nme_ap_lib.h b/drivers/staging/csr/csr_wifi_nme_ap_lib.h
index b7ebfe48dc3a..a07511e52c34 100644
--- a/drivers/staging/csr/csr_wifi_nme_ap_lib.h
+++ b/drivers/staging/csr/csr_wifi_nme_ap_lib.h
@@ -404,8 +404,8 @@ extern const char *CsrWifiNmeApDownstreamPrimNames[CSR_WIFI_NME_AP_PRIM_DOWNSTRE
404#define CsrWifiNmeApWmmParamUpdateReqCreate(msg__, dst__, src__, wmmApParams__, wmmApBcParams__) \ 404#define CsrWifiNmeApWmmParamUpdateReqCreate(msg__, dst__, src__, wmmApParams__, wmmApBcParams__) \
405 msg__ = (CsrWifiNmeApWmmParamUpdateReq *) CsrPmemAlloc(sizeof(CsrWifiNmeApWmmParamUpdateReq)); \ 405 msg__ = (CsrWifiNmeApWmmParamUpdateReq *) CsrPmemAlloc(sizeof(CsrWifiNmeApWmmParamUpdateReq)); \
406 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_AP_PRIM, CSR_WIFI_NME_AP_WMM_PARAM_UPDATE_REQ, dst__, src__); \ 406 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_AP_PRIM, CSR_WIFI_NME_AP_WMM_PARAM_UPDATE_REQ, dst__, src__); \
407 CsrMemCpy(msg__->wmmApParams, (wmmApParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); \ 407 memcpy(msg__->wmmApParams, (wmmApParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); \
408 CsrMemCpy(msg__->wmmApBcParams, (wmmApBcParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); 408 memcpy(msg__->wmmApBcParams, (wmmApBcParams__), sizeof(CsrWifiSmeWmmAcParams) * 4);
409 409
410#define CsrWifiNmeApWmmParamUpdateReqSendTo(dst__, src__, wmmApParams__, wmmApBcParams__) \ 410#define CsrWifiNmeApWmmParamUpdateReqSendTo(dst__, src__, wmmApParams__, wmmApBcParams__) \
411 { \ 411 { \
@@ -474,7 +474,7 @@ extern const char *CsrWifiNmeApDownstreamPrimNames[CSR_WIFI_NME_AP_PRIM_DOWNSTRE
474 msg__->interfaceTag = (interfaceTag__); \ 474 msg__->interfaceTag = (interfaceTag__); \
475 msg__->selectedDevicePasswordId = (selectedDevicePasswordId__); \ 475 msg__->selectedDevicePasswordId = (selectedDevicePasswordId__); \
476 msg__->selectedConfigMethod = (selectedConfigMethod__); \ 476 msg__->selectedConfigMethod = (selectedConfigMethod__); \
477 CsrMemCpy(msg__->pin, (pin__), sizeof(u8) * 8); 477 memcpy(msg__->pin, (pin__), sizeof(u8) * 8);
478 478
479#define CsrWifiNmeApWpsRegisterReqSendTo(dst__, src__, interfaceTag__, selectedDevicePasswordId__, selectedConfigMethod__, pin__) \ 479#define CsrWifiNmeApWpsRegisterReqSendTo(dst__, src__, interfaceTag__, selectedDevicePasswordId__, selectedConfigMethod__, pin__) \
480 { \ 480 { \
diff --git a/drivers/staging/csr/csr_wifi_nme_lib.h b/drivers/staging/csr/csr_wifi_nme_lib.h
index 4ec7b946bd1a..32ae9bfa9fd1 100644
--- a/drivers/staging/csr/csr_wifi_nme_lib.h
+++ b/drivers/staging/csr/csr_wifi_nme_lib.h
@@ -789,8 +789,8 @@ extern const char *CsrWifiNmeDownstreamPrimNames[CSR_WIFI_NME_PRIM_DOWNSTREAM_CO
789#define CsrWifiNmeSimUmtsAuthIndCreate(msg__, dst__, src__, rand__, autn__) \ 789#define CsrWifiNmeSimUmtsAuthIndCreate(msg__, dst__, src__, rand__, autn__) \
790 msg__ = (CsrWifiNmeSimUmtsAuthInd *) CsrPmemAlloc(sizeof(CsrWifiNmeSimUmtsAuthInd)); \ 790 msg__ = (CsrWifiNmeSimUmtsAuthInd *) CsrPmemAlloc(sizeof(CsrWifiNmeSimUmtsAuthInd)); \
791 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_IND, dst__, src__); \ 791 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_IND, dst__, src__); \
792 CsrMemCpy(msg__->rand, (rand__), sizeof(u8) * 16); \ 792 memcpy(msg__->rand, (rand__), sizeof(u8) * 16); \
793 CsrMemCpy(msg__->autn, (autn__), sizeof(u8) * 16); 793 memcpy(msg__->autn, (autn__), sizeof(u8) * 16);
794 794
795#define CsrWifiNmeSimUmtsAuthIndSendTo(dst__, src__, rand__, autn__) \ 795#define CsrWifiNmeSimUmtsAuthIndSendTo(dst__, src__, rand__, autn__) \
796 { \ 796 { \
@@ -838,11 +838,11 @@ extern const char *CsrWifiNmeDownstreamPrimNames[CSR_WIFI_NME_PRIM_DOWNSTREAM_CO
838 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_RES, dst__, src__); \ 838 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_RES, dst__, src__); \
839 msg__->status = (status__); \ 839 msg__->status = (status__); \
840 msg__->result = (result__); \ 840 msg__->result = (result__); \
841 CsrMemCpy(msg__->umtsCipherKey, (umtsCipherKey__), sizeof(u8) * 16); \ 841 memcpy(msg__->umtsCipherKey, (umtsCipherKey__), sizeof(u8) * 16); \
842 CsrMemCpy(msg__->umtsIntegrityKey, (umtsIntegrityKey__), sizeof(u8) * 16); \ 842 memcpy(msg__->umtsIntegrityKey, (umtsIntegrityKey__), sizeof(u8) * 16); \
843 msg__->resParameterLength = (resParameterLength__); \ 843 msg__->resParameterLength = (resParameterLength__); \
844 msg__->resParameter = (resParameter__); \ 844 msg__->resParameter = (resParameter__); \
845 CsrMemCpy(msg__->auts, (auts__), sizeof(u8) * 14); 845 memcpy(msg__->auts, (auts__), sizeof(u8) * 14);
846 846
847#define CsrWifiNmeSimUmtsAuthResSendTo(dst__, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__) \ 847#define CsrWifiNmeSimUmtsAuthResSendTo(dst__, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__) \
848 { \ 848 { \
@@ -1033,7 +1033,7 @@ extern const char *CsrWifiNmeDownstreamPrimNames[CSR_WIFI_NME_PRIM_DOWNSTREAM_CO
1033 msg__ = (CsrWifiNmeWpsReq *) CsrPmemAlloc(sizeof(CsrWifiNmeWpsReq)); \ 1033 msg__ = (CsrWifiNmeWpsReq *) CsrPmemAlloc(sizeof(CsrWifiNmeWpsReq)); \
1034 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_REQ, dst__, src__); \ 1034 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_REQ, dst__, src__); \
1035 msg__->interfaceTag = (interfaceTag__); \ 1035 msg__->interfaceTag = (interfaceTag__); \
1036 CsrMemCpy(msg__->pin, (pin__), sizeof(u8) * 8); \ 1036 memcpy(msg__->pin, (pin__), sizeof(u8) * 8); \
1037 msg__->ssid = (ssid__); \ 1037 msg__->ssid = (ssid__); \
1038 msg__->bssid = (bssid__); 1038 msg__->bssid = (bssid__);
1039 1039
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_lib.h b/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
index df9dd9bf6007..97d675a7a6c5 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_lib.h
@@ -2042,7 +2042,7 @@ extern const char *CsrWifiRouterCtrlDownstreamPrimNames[CSR_WIFI_ROUTER_CTRL_PRI
2042 msg__->clientData = (clientData__); \ 2042 msg__->clientData = (clientData__); \
2043 msg__->status = (status__); \ 2043 msg__->status = (status__); \
2044 msg__->numInterfaceAddress = (numInterfaceAddress__); \ 2044 msg__->numInterfaceAddress = (numInterfaceAddress__); \
2045 CsrMemCpy(msg__->stationMacAddress, (stationMacAddress__), sizeof(CsrWifiMacAddress) * 2); \ 2045 memcpy(msg__->stationMacAddress, (stationMacAddress__), sizeof(CsrWifiMacAddress) * 2); \
2046 msg__->smeVersions = (smeVersions__); \ 2046 msg__->smeVersions = (smeVersions__); \
2047 msg__->scheduledInterrupt = (scheduledInterrupt__); 2047 msg__->scheduledInterrupt = (scheduledInterrupt__);
2048 2048
diff --git a/drivers/staging/csr/csr_wifi_sme_ap_lib.h b/drivers/staging/csr/csr_wifi_sme_ap_lib.h
index 22a3419b1b1c..06a6f32845fa 100644
--- a/drivers/staging/csr/csr_wifi_sme_ap_lib.h
+++ b/drivers/staging/csr/csr_wifi_sme_ap_lib.h
@@ -524,7 +524,7 @@ extern const char *CsrWifiSmeApDownstreamPrimNames[CSR_WIFI_SME_AP_PRIM_DOWNSTRE
524 msg__->secIeLength = (secIeLength__); \ 524 msg__->secIeLength = (secIeLength__); \
525 msg__->secIe = (secIe__); \ 525 msg__->secIe = (secIe__); \
526 msg__->groupKeyId = (groupKeyId__); \ 526 msg__->groupKeyId = (groupKeyId__); \
527 CsrMemCpy(msg__->seqNumber, (seqNumber__), sizeof(u16) * 8); 527 memcpy(msg__->seqNumber, (seqNumber__), sizeof(u16) * 8);
528 528
529#define CsrWifiSmeApStaNotifyIndSendTo(dst__, src__, interfaceTag__, mediaStatus__, peerMacAddress__, peerDeviceAddress__, disassocReason__, deauthReason__, WpsRegistration__, secIeLength__, secIe__, groupKeyId__, seqNumber__) \ 529#define CsrWifiSmeApStaNotifyIndSendTo(dst__, src__, interfaceTag__, mediaStatus__, peerMacAddress__, peerDeviceAddress__, disassocReason__, deauthReason__, WpsRegistration__, secIeLength__, secIe__, groupKeyId__, seqNumber__) \
530 { \ 530 { \
@@ -556,8 +556,8 @@ extern const char *CsrWifiSmeApDownstreamPrimNames[CSR_WIFI_SME_AP_PRIM_DOWNSTRE
556 msg__ = (CsrWifiSmeApWmmParamUpdateReq *) CsrPmemAlloc(sizeof(CsrWifiSmeApWmmParamUpdateReq)); \ 556 msg__ = (CsrWifiSmeApWmmParamUpdateReq *) CsrPmemAlloc(sizeof(CsrWifiSmeApWmmParamUpdateReq)); \
557 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_AP_PRIM, CSR_WIFI_SME_AP_WMM_PARAM_UPDATE_REQ, dst__, src__); \ 557 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_AP_PRIM, CSR_WIFI_SME_AP_WMM_PARAM_UPDATE_REQ, dst__, src__); \
558 msg__->interfaceTag = (interfaceTag__); \ 558 msg__->interfaceTag = (interfaceTag__); \
559 CsrMemCpy(msg__->wmmApParams, (wmmApParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); \ 559 memcpy(msg__->wmmApParams, (wmmApParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); \
560 CsrMemCpy(msg__->wmmApBcParams, (wmmApBcParams__), sizeof(CsrWifiSmeWmmAcParams) * 4); 560 memcpy(msg__->wmmApBcParams, (wmmApBcParams__), sizeof(CsrWifiSmeWmmAcParams) * 4);
561 561
562#define CsrWifiSmeApWmmParamUpdateReqSendTo(dst__, src__, interfaceTag__, wmmApParams__, wmmApBcParams__) \ 562#define CsrWifiSmeApWmmParamUpdateReqSendTo(dst__, src__, interfaceTag__, wmmApParams__, wmmApBcParams__) \
563 { \ 563 { \
diff --git a/drivers/staging/csr/csr_wifi_sme_lib.h b/drivers/staging/csr/csr_wifi_sme_lib.h
index f320bd43e1d5..5b1b8638d8ce 100644
--- a/drivers/staging/csr/csr_wifi_sme_lib.h
+++ b/drivers/staging/csr/csr_wifi_sme_lib.h
@@ -1808,7 +1808,7 @@ extern const char *CsrWifiSmeDownstreamPrimNames[CSR_WIFI_SME_PRIM_DOWNSTREAM_CO
1808 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_CFM, dst__, src__); \ 1808 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_CFM, dst__, src__); \
1809 msg__->status = (status__); \ 1809 msg__->status = (status__); \
1810 msg__->numInterfaces = (numInterfaces__); \ 1810 msg__->numInterfaces = (numInterfaces__); \
1811 CsrMemCpy(msg__->capBitmap, (capBitmap__), sizeof(u8) * 2); 1811 memcpy(msg__->capBitmap, (capBitmap__), sizeof(u8) * 2);
1812 1812
1813#define CsrWifiSmeInterfaceCapabilityGetCfmSendTo(dst__, src__, status__, numInterfaces__, capBitmap__) \ 1813#define CsrWifiSmeInterfaceCapabilityGetCfmSendTo(dst__, src__, status__, numInterfaces__, capBitmap__) \
1814 { \ 1814 { \
@@ -3751,7 +3751,7 @@ extern const char *CsrWifiSmeDownstreamPrimNames[CSR_WIFI_SME_PRIM_DOWNSTREAM_CO
3751 msg__ = (CsrWifiSmeStationMacAddressGetCfm *) CsrPmemAlloc(sizeof(CsrWifiSmeStationMacAddressGetCfm)); \ 3751 msg__ = (CsrWifiSmeStationMacAddressGetCfm *) CsrPmemAlloc(sizeof(CsrWifiSmeStationMacAddressGetCfm)); \
3752 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_CFM, dst__, src__); \ 3752 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_CFM, dst__, src__); \
3753 msg__->status = (status__); \ 3753 msg__->status = (status__); \
3754 CsrMemCpy(msg__->stationMacAddress, (stationMacAddress__), sizeof(CsrWifiMacAddress) * 2); 3754 memcpy(msg__->stationMacAddress, (stationMacAddress__), sizeof(CsrWifiMacAddress) * 2);
3755 3755
3756#define CsrWifiSmeStationMacAddressGetCfmSendTo(dst__, src__, status__, stationMacAddress__) \ 3756#define CsrWifiSmeStationMacAddressGetCfmSendTo(dst__, src__, status__, stationMacAddress__) \
3757 { \ 3757 { \
diff --git a/drivers/staging/csr/sme_mgt.c b/drivers/staging/csr/sme_mgt.c
index 28295ef9b970..e252883d70eb 100644
--- a/drivers/staging/csr/sme_mgt.c
+++ b/drivers/staging/csr/sme_mgt.c
@@ -149,7 +149,7 @@ void CsrWifiSmeScanResultsGetCfmHandler(void* drvpriv, CsrWifiFsmEvent* msg)
149 for (i = 0; i < cfm->scanResultsCount; ++i) 149 for (i = 0; i < cfm->scanResultsCount; ++i)
150 { 150 {
151 CsrWifiSmeScanResult *scan_result = &scanCopy[i]; 151 CsrWifiSmeScanResult *scan_result = &scanCopy[i];
152 CsrMemCpy(current_buff, scan_result->informationElements, scan_result->informationElementsLength); 152 memcpy(current_buff, scan_result->informationElements, scan_result->informationElementsLength);
153 scan_result->informationElements = current_buff; 153 scan_result->informationElements = current_buff;
154 current_buff += scan_result->informationElementsLength; 154 current_buff += scan_result->informationElementsLength;
155 } 155 }
diff --git a/drivers/staging/csr/unifi_sme.c b/drivers/staging/csr/unifi_sme.c
index 2fe7b576a0e0..51d679234a52 100644
--- a/drivers/staging/csr/unifi_sme.c
+++ b/drivers/staging/csr/unifi_sme.c
@@ -130,7 +130,7 @@ sme_log_event(ul_client_t *pcli,
130 raddr = macHdrLocation + MAC_HEADER_ADDR1_OFFSET; 130 raddr = macHdrLocation + MAC_HEADER_ADDR1_OFFSET;
131 taddr = macHdrLocation + MAC_HEADER_ADDR2_OFFSET; 131 taddr = macHdrLocation + MAC_HEADER_ADDR2_OFFSET;
132 132
133 CsrMemCpy(peerMacAddress.a, taddr, ETH_ALEN); 133 memcpy(peerMacAddress.a, taddr, ETH_ALEN);
134 134
135 if(ind->ReceptionStatus == CSR_MICHAEL_MIC_ERROR) 135 if(ind->ReceptionStatus == CSR_MICHAEL_MIC_ERROR)
136 { 136 {
@@ -1218,7 +1218,7 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
1218 1218
1219 spin_lock_irqsave(&priv->wapi_lock, flags); 1219 spin_lock_irqsave(&priv->wapi_lock, flags);
1220 /* Copy over the MA PKT REQ bulk data */ 1220 /* Copy over the MA PKT REQ bulk data */
1221 CsrMemCpy(pktBulkData, (u8*)interfacePriv->wapi_unicast_bulk_data.os_data_ptr, pktBulkDataLength); 1221 memcpy(pktBulkData, (u8*)interfacePriv->wapi_unicast_bulk_data.os_data_ptr, pktBulkDataLength);
1222 /* Free any bulk data buffers allocated for the WAPI Data pkt */ 1222 /* Free any bulk data buffers allocated for the WAPI Data pkt */
1223 unifi_net_data_free(priv, &interfacePriv->wapi_unicast_bulk_data); 1223 unifi_net_data_free(priv, &interfacePriv->wapi_unicast_bulk_data);
1224 interfacePriv->wapi_unicast_bulk_data.net_buf_length = 0; 1224 interfacePriv->wapi_unicast_bulk_data.net_buf_length = 0;