OSDN Git Service

Do not report error if no ssid is found in IE
authorNingyuan Wang <nywang@google.com>
Fri, 26 Aug 2016 22:47:29 +0000 (15:47 -0700)
committerNingyuan Wang <nywang@google.com>
Fri, 26 Aug 2016 22:49:01 +0000 (15:49 -0700)
BUG=None
TEST=compile

Change-Id: I71b441728687faf167d417e50255322143c17f80

scanning/scan_utils.cpp

index 0b40567..bbbac99 100644 (file)
@@ -135,8 +135,9 @@ bool ScanUtils::ParseScanResult(unique_ptr<const NL80211Packet> packet, ScanResu
     }
     vector<uint8_t> ssid;
     if (!GetSSIDFromInfoElement(ie, &ssid)) {
-      LOG(ERROR) << "Failed to get SSID from Information Element";
-      return false;
+      // Hidden wireless network has no SSID in IE.
+      LOG(DEBUG) << "Failed to get SSID from Information Element. "
+                 << "This might be a hidden network";
     }
     uint64_t tsf;
     if (!bss.GetAttributeValue(NL80211_BSS_TSF, &tsf)) {