Home
last modified time | relevance | path

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

12

/system/chre/util/nanoapp/
Dwifi.cc52 if (parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult()
96 bool parseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *buffer, in parseBssidToStr()
104 snprintf(buffer, bufferLen, kFormat, bssid[0], bssid[1], bssid[2], bssid[3], in parseBssidToStr()
105 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.java321 private static byte[] bssidToBytes(String bssid) { in bssidToBytes() argument
326 expectedBssidFormat, bssid), verifyBssid(bssid)); in bssidToBytes()
329 String hexStringNoColon = bssid.replace(":" , ""); in bssidToBytes()
347 private static boolean verifyBssid(String bssid) { in verifyBssid() argument
348 boolean passedVerification = (bssid.length() == NUM_BYTES_IN_SCAN_RESULT_BSSID * 3 - 1); in verifyBssid()
349 for (int i = 0; passedVerification && i < bssid.length(); i += 3) { in verifyBssid()
350 if ((Character.digit(bssid.charAt(i), 16) == -1) in verifyBssid()
351 || (Character.digit(bssid.charAt(i + 1), 16) == -1) in verifyBssid()
352 || ((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
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dwifi_scan_result.cc30 wifiScanResultProto.bssid = {.funcs = {.decode = decodeString}, in WifiScanResult()
44 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/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(result2.bssid, dummyBssid2, strlen(dummyBssid2)); in TEST_F()
/system/chre/util/include/chre/util/nanoapp/
Dwifi.h61 bool parseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *buffer,
/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/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_4/chre/
Dwifi.h433 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
895 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_5/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_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/test/
Dwifi_convert_test.cpp34 EXPECT_EQ(std::memcmp(chppAp.bssid, chreAp.bssid, sizeof(chppAp.bssid)), 0); in validateScanResult()
505 .bssid = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, in TEST()
544 .bssid = {0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}, in TEST()
562 .bssid = {0xab, 0xcd, 0xef, 0x01, 0x23, 0x45}, in TEST()
/system/chre/chre_api/legacy/v1_8/chre/
Dwifi.h561 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
1194 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_6/chre/
Dwifi.h561 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
1194 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/include/chre_api/chre/
Dwifi.h566 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
1199 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_7/chre/
Dwifi.h561 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
1194 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_9/chre/
Dwifi.h564 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member
1197 memcpy(rangingTarget->macAddress, scanResult->bssid, in chreWifiRangingTargetFromScanResult()
/system/chre/chre_api/legacy/v1_1/chre/
Dwifi.h303 uint8_t bssid[CHRE_WIFI_BSSID_LEN]; member

12