Home
last modified time | relevance | path

Searched refs:bssid (Results 1 – 25 of 28) sorted by relevance

12

/system/chre/util/nanoapp/
Dwifi.cc46 if (parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult()
90 bool parseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *buffer, in parseBssidToStr()
98 snprintf(buffer, bufferLen, kFormat, bssid[0], bssid[1], bssid[2], bssid[3], in parseBssidToStr()
99 bssid[4], bssid[5]); in parseBssidToStr()
/system/chre/apps/wifi_offload/
Dutility.cc49 bool ParseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *bssid_str, in ParseBssidToStr()
57 std::snprintf(bssid_str, bssid_str_len, kFormat, bssid[0], bssid[1], bssid[2], in ParseBssidToStr()
58 bssid[3], bssid[4], bssid[5]); in ParseBssidToStr()
111 void LogBssid(const uint8_t *bssid) { in LogBssid() argument
114 if (ParseBssidToStr(bssid, bssidBuffer, kBssidStrLen)) { in LogBssid()
125 LogBssid(result.bssid); in LogChreScanResult()
Dscan_result.cc96 if (fbs_result.bssid() == nullptr || in Deserialize()
97 fbs_result.bssid()->size() != kBssidSize) { in Deserialize()
102 bssid_[i] = fbs_result.bssid()->Get(i); in Deserialize()
152 std::memcpy(bssid_, chre_scan_result.bssid, CHRE_WIFI_BSSID_LEN); in UpdateFromChreWifiScanResult()
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DChreCrossValidatorWifi.java310 private static byte[] bssidToBytes(String bssid) { in bssidToBytes() argument
315 expectedBssidFormat, bssid), verifyBssid(bssid)); in bssidToBytes()
318 String hexStringNoColon = bssid.replace(":" , ""); in bssidToBytes()
336 private static boolean verifyBssid(String bssid) { in verifyBssid() argument
337 boolean passedVerification = (bssid.length() == NUM_BYTES_IN_SCAN_RESULT_BSSID * 3 - 1); in verifyBssid()
338 for (int i = 0; passedVerification && i < bssid.length(); i += 3) { in verifyBssid()
339 if ((Character.digit(bssid.charAt(i), 16) == -1) in verifyBssid()
340 || (Character.digit(bssid.charAt(i + 1), 16) == -1) in verifyBssid()
341 || ((i + 2 < bssid.length()) && (bssid.charAt(i + 2) != ':'))) { in verifyBssid()
/system/connectivity/wificond/tests/
Dscan_result_unittest.cpp56 array<uint8_t, ETH_ALEN> bssid = kFakeBssid; in TEST_F() local
64 NativeScanResult scan_result(ssid, bssid, ie, kFakeFrequency, in TEST_F()
76 EXPECT_EQ(bssid, scan_result_copy.bssid); in TEST_F()
/system/connectivity/wificond/scanning/
Dscan_result.cpp45 bssid(bssid_), in NativeScanResult()
58 std::vector<uint8_t>(bssid.begin(), bssid.end()))); in writeToParcel()
87 std::copy_n(bssid_vec.begin(), ETH_ALEN, bssid.begin()); in readFromParcel()
124 << ::android::wificond::LoggingUtils::GetMacString(bssid); in DebugLog()
Dscan_result.h40 std::array<uint8_t, ETH_ALEN>& bssid,
56 std::array<uint8_t, ETH_ALEN> bssid; variable
Dscan_utils.cpp140 array<uint8_t, ETH_ALEN> bssid; in ParseScanResult() local
141 if (!bss.GetAttributeValue(NL80211_BSS_BSSID, &bssid)) { in ParseScanResult()
187 NativeScanResult(ssid, bssid, ie, freq, signal, in ParseScanResult()
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dwifi_scan_result.cc33 wifiScanResultProto.bssid = {.funcs = {.decode = decodeString}, in WifiScanResult()
47 memcpy(mBssid, chreScanResult.bssid, CHRE_WIFI_BSSID_LEN); in WifiScanResult()
/system/connectivity/wificond/net/
Dmlme_event.cpp37 array<uint8_t, ETH_ALEN>* bssid) { in GetCommonFields() argument
43 if (!packet->GetAttributeValue(NL80211_ATTR_MAC, bssid)) { in GetCommonFields()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dutility.h43 void LogBssid(const uint8_t *bssid);
/system/chre/util/include/chre/util/nanoapp/
Dwifi.h61 bool parseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *buffer,
/system/chre/pal/util/tests/
Dwifi_scan_cache_test.cc156 memcpy(result.bssid, &i, sizeof(i)); in cacheDefaultWifiCacheTest()
182 memcpy(result.bssid, &i, sizeof(i)); in cacheDefaultWifiCacheTest()
338 memcpy(result.bssid, dummyBssid, strlen(dummyBssid)); in TEST_F()
346 memcpy(result.bssid, dummyBssid, strlen(dummyBssid2)); in TEST_F()
/system/chre/apps/wifi_offload/test/
Dscanresult_test.cc31 EXPECT_EQ(0, std::memcmp(chre_scan_result.bssid, nanoapp_scan_result.bssid_, in TEST()
/system/chre/chpp/test/
Dwifi_convert_test.cpp34 EXPECT_EQ(std::memcmp(chppAp.bssid, chreAp.bssid, sizeof(chppAp.bssid)), 0); in validateScanResult()
369 .bssid = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, in TEST()
408 .bssid = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, in TEST()
426 .bssid = {0xab, 0xcd, 0xef, 0x01, 0x23, 0x45}, in TEST()
/system/chre/chre_api/legacy/v1_4/chre/
Dwifi.h433 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
895 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/include/chre_api/chre/
Dwifi.h491 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
973 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_2/chre/
Dwifi.h433 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
881 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_3/chre/
Dwifi.h433 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
885 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/generated/
Dflatbuffers_types_generated.h164 const flatbuffers::Vector<uint8_t> *bssid() const { in bssid() function
185 verifier.VerifyVector(bssid()) && in Verify()
204 void add_bssid(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> bssid) { in add_bssid()
205 fbb_.AddOffset(ScanResult::VT_BSSID, bssid); in add_bssid()
235 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> bssid = 0,
243 builder_.add_bssid(bssid);
255 const std::vector<uint8_t> *bssid = nullptr,
260 auto bssid__ = bssid ? _fbb.CreateVector<uint8_t>(*bssid) : 0;
/system/chre/chpp/common/
Dwifi_convert.c86 memcpy(out->bssid, in->bssid, sizeof(out->bssid)); in chppWifiConvertScanResultFromChre()
352 memcpy(out->bssid, in->bssid, sizeof(out->bssid)); in chppWifiConvertScanResultToChre()
/system/chre/chre_api/legacy/v1_1/chre/
Dwifi.h303 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
/system/chre/pal/util/
Dwifi_scan_cache.c157 (memcmp(result->bssid, cacheResult->bssid, CHRE_WIFI_BSSID_LEN) == 0) && in isWifiScanResultInCache()
/system/chre/chpp/include/chpp/common/
Dwifi_types.h99 uint8_t bssid[6]; member
/system/chre/apps/test/common/proto/
Dchre_cross_validation_wifi.proto62 optional bytes bssid = 2; field

12