mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
9e58d23246
commit
ea85ee0516
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue