wlan: Replace api memcpy in BAP.
Replace memcpy with vos_mem_copy due to KW error.
Change-Id: Ibaa32d6373cb437143c419426f2eee3f6229b6bf
CRs-Fixed: 687989
diff --git a/CORE/BAP/src/bapApiStatus.c b/CORE/BAP/src/bapApiStatus.c
index 45dec26..dc97618 100644
--- a/CORE/BAP/src/bapApiStatus.c
+++ b/CORE/BAP/src/bapApiStatus.c
@@ -587,12 +587,12 @@
vos_mem_copy(
btamp_ASSOC.AMP_Assoc_MAC_Addr.mac_addr,
btampContext->self_mac_addr,
- sizeof(btampContext->self_mac_addr));
+ sizeof(btampContext->self_mac_addr));
/*Save the local AMP assoc info*/
vos_mem_copy(btampContext->btamp_AMP_Assoc.HC_mac_addr,
btampContext->self_mac_addr,
- sizeof(btampContext->self_mac_addr));
+ sizeof(btampContext->self_mac_addr));
/* JEZ090303: This logic should return a single channel list with the */
@@ -603,7 +603,7 @@
/* Return the local Preferred Channel List */
/* Return both the Regulatory Info and one channel list */
btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.present = 1;
- memcpy (btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.country, "XXX", 3);
+ vos_mem_copy (btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.country, "XXX", 3);
/*Save the local AMP assoc info*/
vos_mem_copy(btampContext->btamp_AMP_Assoc.HC_pref_country, "XXX", 3);
@@ -640,7 +640,7 @@
/* Return the local Preferred Channel List */
/* Return only the Regulatory Info */
btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.present = 1;
- memcpy (btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.country, "XXX", 3);
+ vos_mem_copy (btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.country, "XXX", 3);
btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.num_triplets = 1;
btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.triplets[0][0] = 201;
btamp_ASSOC.AMP_Assoc_Preferred_Channel_List.triplets[0][1] = 254;
@@ -662,7 +662,7 @@
/* We really want him to use our channel. Since we only support one.*/
/* Return the local Connected Channel */
btamp_ASSOC.AMP_Assoc_Connected_Channel.present = 1;
- memcpy (btamp_ASSOC.AMP_Assoc_Connected_Channel.country, "XXX", 3);
+ vos_mem_copy (btamp_ASSOC.AMP_Assoc_Connected_Channel.country, "XXX", 3);
btamp_ASSOC.AMP_Assoc_Connected_Channel.num_triplets = 2;
btamp_ASSOC.AMP_Assoc_Connected_Channel.triplets[0][0] = 201;
btamp_ASSOC.AMP_Assoc_Connected_Channel.triplets[0][1] = 254;