diff options
author | Chung-yih Wang <cywang@google.com> | 2009-09-15 12:39:08 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2009-09-15 12:42:58 +0800 |
commit | 20f16e25734c96dc7e48e3a9577180460404773f (patch) | |
tree | d227bb61544761f05e69f6fa4718a9ca5a4e3beb /sta_dk_4_0_4_32 | |
parent | 06cb189c0ecdd4fbfc949ae442634aeacfb3f26b (diff) | |
download | ti-20f16e25734c96dc7e48e3a9577180460404773f.tar.gz |
Fix the assoication with SSID containing CJK characters.
This fix the validity check for the first 3 characters in original code.
Signed-off-by: Chung-yih Wang <cywang@google.com>
Diffstat (limited to 'sta_dk_4_0_4_32')
-rw-r--r-- | sta_dk_4_0_4_32/common/src/utils/utils.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sta_dk_4_0_4_32/common/src/utils/utils.c b/sta_dk_4_0_4_32/common/src/utils/utils.c index cd9ad9f..cf3c672 100644 --- a/sta_dk_4_0_4_32/common/src/utils/utils.c +++ b/sta_dk_4_0_4_32/common/src/utils/utils.c @@ -1617,9 +1617,10 @@ BOOL utils_isJunkSSID(ssid_t *pSsid) if (pSsid->len > 2) { - if ((pSsid->ssidString[0] < FIRST_VALID_CHAR) && - (pSsid->ssidString[1] < FIRST_VALID_CHAR) && - (pSsid->ssidString[2] < FIRST_VALID_CHAR)) + unsigned char *ssidString = (unsigned char *)pSsid->ssidString; + if ((ssidString[0] < FIRST_VALID_CHAR) && + (ssidString[1] < FIRST_VALID_CHAR) && + (ssidString[2] < FIRST_VALID_CHAR)) { return TRUE; } @@ -2015,5 +2016,3 @@ void util_printProfile(void) #endif /* UTIL_DEBUG_PROFILE */ - - |