wlan: Update missing review comments for CL657555
do the vos_mem_compare last since it is the most expensive operation and
not likely to be true
Change-Id: I944e652250a5d55828aaa41384e6dfd4818bc690
CR-Fixed: 417938
diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c
index c218af9..d2d6f77 100644
--- a/CORE/SME/src/csr/csrApiScan.c
+++ b/CORE/SME/src/csr/csrApiScan.c
@@ -2970,9 +2970,9 @@
if( NV_CHANNEL_ENABLE == channelEnabledType)
{
// Ignore the channel 165 for the country INDONESIA
- if ( vos_mem_compare(countryCode, "ID", VOS_COUNTRY_CODE_LEN )
- && ( pChannelList->channelList[i] == 165 )
- && ( pMac->scan.fIgnore_chan165 == VOS_TRUE ))
+ if (( pChannelList->channelList[i] == 165 )
+ && ( pMac->scan.fIgnore_chan165 == VOS_TRUE )
+ && vos_mem_compare(countryCode, "ID", VOS_COUNTRY_CODE_LEN ))
{
continue;
}