From: Ningyuan Wang Date: Fri, 26 Aug 2016 22:47:29 +0000 (-0700) Subject: Do not report error if no ssid is found in IE X-Git-Tag: android-x86-8.1-r1~136 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bd25e1f73ccd2d74ea539e4d509edb78597f1aa3;p=android-x86%2Fsystem-connectivity-wificond.git Do not report error if no ssid is found in IE BUG=None TEST=compile Change-Id: I71b441728687faf167d417e50255322143c17f80 --- diff --git a/scanning/scan_utils.cpp b/scanning/scan_utils.cpp index 0b40567..bbbac99 100644 --- a/scanning/scan_utils.cpp +++ b/scanning/scan_utils.cpp @@ -135,8 +135,9 @@ bool ScanUtils::ParseScanResult(unique_ptr packet, ScanResu } vector 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)) {