/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_common_func_test.cpp | 28 constexpr int MAC_LEN = 17; variable 42 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 43 int strLen = MAC_LEN + 1; 52 int strLen = MAC_LEN + 1; 60 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 61 int strLen = MAC_LEN + 1; 69 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 70 int strLen = MAC_LEN; 78 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 79 int strLen = MAC_LEN + 1; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_wpa_sta_impl_test.cpp | 24 constexpr int MAC_LEN = 17; variable 250 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 251 int strLen = MAC_LEN + 1; 261 int strLen = MAC_LEN + 1; 270 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 271 int strLen = MAC_LEN + 1; 280 char macStr[MAC_LEN + 1] = "00:00:00:00:00:00"; 291 int strLen = MAC_LEN + 1; 301 int strLen = MAC_LEN; 321 int strLen = MAC_LEN + 1; [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/interfaces/kits/c/ |
H A D | wifi_hid2d.h | 25 #ifndef MAC_LEN 26 #define MAC_LEN 6 macro 93 unsigned char bssid[MAC_LEN]; 151 unsigned char mac[MAC_LEN]; 168 WifiErrorCode Hid2dRequestGcIp(const unsigned char gcMac[MAC_LEN], unsigned int ipAddr[IPV4_ARRAY_L…
|
/ohos5.0/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | iface_tool.cpp | 36 const int MAC_LEN = 6; variable 111 unsigned char macBin[MAC_LEN]; in SetMacAddress() 129 if (memcpy_s(ifr.ifr_hwaddr.sa_data, MAC_LEN, macBin, MAC_LEN) < 0) { in SetMacAddress()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | mac_address.h | 35 #ifndef MAC_LEN 36 #define MAC_LEN 6 macro 76 static bool GetMacAddr(const std::string& ifName, unsigned char macAddr[MAC_LEN]);
|
H A D | mac_address.cpp | 140 bool MacAddress::GetMacAddr(const std::string& ifName, unsigned char macAddr[MAC_LEN]) in GetMacAddr() argument
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/ |
H A D | lnn_connect_info.h | 36 char macAddr[MAC_LEN]; 37 char bleMacAddr[MAC_LEN];
|
H A D | lnn_node_info.h | 93 char p2pMac[MAC_LEN]; // the mac of local p2p interface 94 char goMac[MAC_LEN]; // the mac of p2p Go device, while local device as Gc role. 152 char wifiDirectAddr[MAC_LEN];
|
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wifichid2d_fuzzer/ |
H A D | wifichid2d_fuzzer.cpp | 105 if (memcpy_s(cppConfig.bssid, MAC_LEN, data, MAC_LEN) != EOK) { in Hid2dConnectTest() 218 if (memcpy_s(scene.mac, MAC_LEN, data, MAC_LEN) != EOK) { in Hid2dSetUpperSceneTest()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_data_cloud_sync.h | 46 char macAddr[MAC_LEN]; 55 char p2pMac[MAC_LEN];
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/interfaces/ |
H A D | wifi_hid2d_msg.h | 20 #ifndef MAC_LEN 21 #define MAC_LEN 6 macro
|
/ohos5.0/base/location/interfaces/inner_api/include/ |
H A D | common_utils.h | 106 static constexpr int MAC_LEN = 6; variable 177 static errno_t GetMacArray(const std::string& strMac, uint8_t mac[MAC_LEN]);
|
/ohos5.0/drivers/peripheral/location/agnss/hdi_service/ |
H A D | agnss_interface_impl.cpp | 43 const int MAC_LEN = 6; variable 190 for (size_t i = 0; i < MAC_LEN; i++) { in SetAgnssRefInfo() 193 loc.u.mac.size = MAC_LEN; in SetAgnssRefInfo()
|
/ohos5.0/base/location/services/location_gnss/gnss/source/ |
H A D | agnss_event_callback.cpp | 87 uint8_t macArray[MAC_LEN]; in GetWiFiRefInfo() 92 for (size_t i = 0; i < MAC_LEN; i++) { in GetWiFiRefInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/interface/ |
H A D | bus_center_info_key.h | 27 #define MAC_LEN 18 macro
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | mac_address_test.cpp | 103 unsigned char macAddr[MAC_LEN] = {0};
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/ |
H A D | lnn_disctributed_net_ledger_test.cpp | 97 (void)strncpy_s(info.connectInfo.macAddr, MAC_LEN, NODE1_BT_MAC, strlen(NODE1_BT_MAC)); in SetUp() 123 (void)strncpy_s(info.connectInfo.macAddr, MAC_LEN, NODE1_BT_MAC, strlen(NODE1_BT_MAC)); 338 (void)strncpy_s(info.p2pMac, MAC_LEN, P2P_MAC, strlen(P2P_MAC)); 339 (void)strncpy_s(info.goMac, MAC_LEN, GO_MAC, strlen(GO_MAC)); 890 char wifiDirectAddr1[MAC_LEN] = "11223344556677889"; 898 char wifiDirectAddr2[MAC_LEN] = "11223344";
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_p2p_info.c | 159 if (!JSON_GetStringFromOject(json, JSON_KEY_WIFIDIRECT_ADDR, wifiDirectAddr, MAC_LEN)) { in LnnParseWifiDirectAddrMsg() 309 char wifiDirectAddr[MAC_LEN] = { 0 }; in OnReceiveWifiDirectSyncAddr()
|
H A D | lnn_data_cloud_sync.c | 187 if (strcmp(fieldName, DEVICE_INFO_BT_MAC) == 0 && valueLength < MAC_LEN) { in DBConnectMacInfoSyncToCache() 188 if (strcpy_s(cacheInfo->connectInfo.macAddr, MAC_LEN, value) != EOK) { in DBConnectMacInfoSyncToCache() 192 } else if (strcmp(fieldName, DEVICE_INFO_P2P_MAC_ADDR) == 0 && valueLength < MAC_LEN) { in DBConnectMacInfoSyncToCache() 193 if (strcpy_s(cacheInfo->p2pInfo.p2pMac, MAC_LEN, value) != EOK) { in DBConnectMacInfoSyncToCache() 846 if (strcpy_s(oldInfo->connectInfo.macAddr, MAC_LEN, newInfo->connectInfo.macAddr) != EOK) { in LnnUpdateOldCacheInfo() 852 if (strcpy_s(oldInfo->p2pInfo.p2pMac, MAC_LEN, newInfo->p2pInfo.p2pMac) != EOK) { in LnnUpdateOldCacheInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/ |
H A D | lnn_local_net_ledger.c | 249 if (buf == NULL || len < MAC_LEN) { in LlGetWifiDirectAddr() 469 if (strcpy_s(g_localNetLedger.localInfo.connectInfo.macAddr, MAC_LEN, brMac) != EOK) { in UpdateBrMac() 741 if (buf == NULL || len < MAC_LEN) { in LlGetP2pMac() 793 if (buf == NULL || len < MAC_LEN) { in LlGetP2pGoMac() 1029 if (GetCommonDevInfo(COMM_DEVICE_KEY_BLE_MAC, info->bleMacAddr, MAC_LEN) != SOFTBUS_OK) { in InitConnectInfo() 1033 return GetCommonDevInfo(COMM_DEVICE_KEY_BT_MAC, info->macAddr, MAC_LEN); in InitConnectInfo() 1785 {STRING_KEY_BT_MAC, MAC_LEN, LlGetBtMac, UpdateLocalBtMac}, 1790 {STRING_KEY_P2P_MAC, MAC_LEN, LlGetP2pMac, UpdateP2pMac}, 1793 {STRING_KEY_P2P_GO_MAC, MAC_LEN, LlGetP2pGoMac, UpdateP2pGoMac}, 1796 {STRING_KEY_BLE_MAC, MAC_LEN, LlGetBleMac, UpdateLocalBleMac}, [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/native/ |
H A D | wifi_c_hid2d_test.cpp | 45 unsigned char gcMac[MAC_LEN];
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/ |
H A D | auth_manager.h | 50 char p2pMac[MAC_LEN];
|
/ohos5.0/base/location/frameworks/location_common/common/source/ |
H A D | common_utils.cpp | 372 errno_t CommonUtils::GetMacArray(const std::string& strMac, uint8_t mac[MAC_LEN]) in GetMacArray() argument 375 for (size_t i = 0; i < strVec.size() && i < MAC_LEN; i++) { in GetMacArray()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/unittest/ |
H A D | ledger_lane_hub_test.cpp | 390 char macAddr[MAC_LEN] = {0}; 402 ret = LnnGetRemoteStrInfo(NODE1_NETWORK_ID, STRING_KEY_BT_MAC, macAddr, MAC_LEN);
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_utils.c | 375 char localP2PMac[MAC_LEN] = { 0 }; in LnnDumpLocalBasicInfo() 399 (void)LnnGetLocalStrInfo(STRING_KEY_P2P_MAC, localP2PMac, MAC_LEN); in LnnDumpLocalBasicInfo()
|