summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSameer Thalappil <sameert@qca.qualcomm.com>2014-01-15 10:32:54 -0800
committerPrakash Dhavali <pdhavali@qca.qualcomm.com>2014-01-26 20:08:20 -0800
commitda6be59ba625ecc54692edd3f2591241210f4e8d (patch)
treeb007532b9ceda80f2ff87938a60e9c2a34e8c04a
parent371f8a5144842bc18ed4e40496364b0eebe03a9e (diff)
qcacld: Fix issues reported by code inspection tool
Caller of the SME country code change API is only providing two bytes for country code. CRs-Fixed: 601548 Change-Id: If034a6065a0b4b894277d0994aedf4671710172c
-rw-r--r--CORE/SME/src/sme_common/sme_Api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c
index f918b47a8ed9..6b1b6f6d1ba9 100644
--- a/CORE/SME/src/sme_common/sme_Api.c
+++ b/CORE/SME/src/sme_common/sme_Api.c
@@ -5412,7 +5412,7 @@ eHalStatus sme_GenericChangeCountryCode( tHalHandle hHal,
pMsg->msgType = pal_cpu_to_be16((tANI_U16)eWNI_SME_GENERIC_CHANGE_COUNTRY_CODE);
pMsg->msgLen = (tANI_U16)sizeof(tAniGenericChangeCountryCodeReq);
- vos_mem_copy(pMsg->countryCode, pCountry, 3);
+ vos_mem_copy(pMsg->countryCode, pCountry, 2);
pMsg->domain_index = reg_domain;
msg.type = eWNI_SME_GENERIC_CHANGE_COUNTRY_CODE;