qcacld-3.0: Correct the country code validation check

Country code comparison result is checked against true value,
but the comparison result is non-zero if the country code is
valid, hence checking the result against true fails and do
not set the country code.

Correct the conditional logic to check if the given country
valid or not.

Change-Id: Id893cfec8571939e4e455fa35ea95310f4c77263
CRs-Fixed: 1060242
This commit is contained in:
Kiran Kumar Lokere 2016-08-26 18:09:20 -07:00 • committed by Gerrit - the friendly Code Review server
commit ea85ee0516

View file

@ -7540,7 +7540,7 @@ QDF_STATUS sme_handle_change_country_code(tpAniSirGlobal pMac, void *pMsgBuf)
* if the reset Supplicant country code command is triggered,
* enable 11D, reset the country code and return
*/
if (true !=
if (false ==
qdf_mem_cmp(pMsg->countryCode, SME_INVALID_COUNTRY_CODE, 2)) {
pMac->roam.configParam.Is11dSupportEnabled =
pMac->roam.configParam.Is11dSupportEnabledOriginal;