wlan: ATT uverse AP probe resoponse contains SPACE as SSID

ATT Uverse AP sending the probe response with space as SSID for
a broadcast SSID probe request when it is configured as hidden SSID.
This result in the scan result with actual SSID is overwritten with
the SSID as "space".As part of this change added the logic to consider
the SSID as NULL when SSID is recieved as space.

Change-Id: I958d604a889b7effff5465cce57fbacb353700db
CRs-Fixed: 639555
diff --git a/CORE/MAC/src/pe/lim/limUtils.c b/CORE/MAC/src/pe/lim/limUtils.c
index 179a661..e784093 100644
--- a/CORE/MAC/src/pe/lim/limUtils.c
+++ b/CORE/MAC/src/pe/lim/limUtils.c
@@ -1740,27 +1740,13 @@
         }
 
 #define ASCII_SPACE_CHARACTER 0x20
-        /* If the first charactes is space, then check if all characters in 
-         * SSID are spaces to consider it as NULL SSID*/
-        if( ASCII_SPACE_CHARACTER == pSsid->ssId[0])
+        /* If the first charactes is space and SSID length is 1
+         * then consider it as NULL SSID*/
+        if ((ASCII_SPACE_CHARACTER == pSsid->ssId[0]) &&
+            (pSsid->length == 1))
         {
-            SsidLength = pSsid->length;
-            pSsidStr = pSsid->ssId;
-            /* check if all the charactes in SSID are spaces*/
-            while ( SsidLength )
-            {
-                if( ASCII_SPACE_CHARACTER != *pSsidStr )
-                    break;
-    
-                pSsidStr++;
-                SsidLength--;
-            }
-    
-            if( 0 == SsidLength )
-            {
-                fNullSsid = true;
-                break;
-            }
+             fNullSsid = true;
+             break;
         }
         else
         {