Home
last modified time | relevance | path

Searched refs:MAC_LEN (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_common_func_test.cpp28 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 Dwifi_hdi_wpa_sta_impl_test.cpp24 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 Dwifi_hid2d.h25 #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 Diface_tool.cpp36 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 Dmac_address.h35 #ifndef MAC_LEN
36 #define MAC_LEN 6 macro
76 static bool GetMacAddr(const std::string& ifName, unsigned char macAddr[MAC_LEN]);
H A Dmac_address.cpp140 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 Dlnn_connect_info.h36 char macAddr[MAC_LEN];
37 char bleMacAddr[MAC_LEN];
H A Dlnn_node_info.h93 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 Dwifichid2d_fuzzer.cpp105 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 Dlnn_data_cloud_sync.h46 char macAddr[MAC_LEN];
55 char p2pMac[MAC_LEN];
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/interfaces/
H A Dwifi_hid2d_msg.h20 #ifndef MAC_LEN
21 #define MAC_LEN 6 macro
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dcommon_utils.h106 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 Dagnss_interface_impl.cpp43 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 Dagnss_event_callback.cpp87 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 Dbus_center_info_key.h27 #define MAC_LEN 18 macro
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dmac_address_test.cpp103 unsigned char macAddr[MAC_LEN] = {0};
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/
H A Dlnn_disctributed_net_ledger_test.cpp97 (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 Dlnn_p2p_info.c159 if (!JSON_GetStringFromOject(json, JSON_KEY_WIFIDIRECT_ADDR, wifiDirectAddr, MAC_LEN)) { in LnnParseWifiDirectAddrMsg()
309 char wifiDirectAddr[MAC_LEN] = { 0 }; in OnReceiveWifiDirectSyncAddr()
H A Dlnn_data_cloud_sync.c187 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 Dlnn_local_net_ledger.c249 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 Dwifi_c_hid2d_test.cpp45 unsigned char gcMac[MAC_LEN];
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_manager.h50 char p2pMac[MAC_LEN];
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Dcommon_utils.cpp372 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 Dledger_lane_hub_test.cpp390 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 Dlnn_heartbeat_utils.c375 char localP2PMac[MAC_LEN] = { 0 }; in LnnDumpLocalBasicInfo()
399 (void)LnnGetLocalStrInfo(STRING_KEY_P2P_MAC, localP2PMac, MAC_LEN); in LnnDumpLocalBasicInfo()

12