/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_hal_p2p_interface_test.cpp | 102 StrSafeCopy(bssid, sizeof(bssid), "dc:f0:9e:9b:06:c5"); 113 StrSafeCopy(pin, sizeof(pin), "12345678"); 235 StrSafeCopy(info.name, sizeof(info.name), "test_name"); 238 StrSafeCopy(info.query, sizeof(info.query), "query"); 239 StrSafeCopy(info.resp, sizeof(info.resp), "response"); 250 StrSafeCopy(info.name, sizeof(info.name), "test_name"); 253 StrSafeCopy(info.query, sizeof(info.query), "query"); 254 StrSafeCopy(info.resp, sizeof(info.resp), "response");
|
H A D | wifi_hal_wpa_p2p_test.cpp | 288 StrSafeCopy(argv.ifname, sizeof(argv.ifname), "p2p-dev-p2p0"); 290 StrSafeCopy(argv.gobssid, sizeof(argv.gobssid), "00:00:00:00:00:00"); 292 StrSafeCopy(argv.peerbssid, sizeof(argv.peerbssid), "ff:ff:ff:ff:ff:ff"); 331 StrSafeCopy(info.name, sizeof(info.name), "random_string"); 352 StrSafeCopy(info.name, sizeof(info.name), "random_string"); 374 StrSafeCopy(tlvs, sizeof(tlvs), "hex_type_tlv_string"); 527 StrSafeCopy(info.pin, sizeof(info.pin), "pin"); 581 StrSafeCopy(info.mac, sizeof(info.mac), "00:00:00:00:00:00"); 584 StrSafeCopy(info.tlvs, 256, "08000104112233445566"); 656 StrSafeCopy(argv.pinCode, sizeof(argv.pinCode), "12345678"); [all …]
|
H A D | wifi_hal_crpc_server_test.cpp | 180 StrSafeCopy(nullptr, sizeof(cbmsg->msg.ifMsg.ifname), "wlan0"); 181 StrSafeCopy(cbmsg->msg.ifMsg.ifname, sizeof(cbmsg->msg.ifMsg.ifname), "wlan0"); 194 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), src); 195 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), "00:00:00:00:00:00"); 207 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), src); 208 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), "00:00:00:00:00:00"); 228 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), "00:00:00:00:00:00"); 238 StrSafeCopy(cbmsg->msg.connMsg.bssid, sizeof(cbmsg->msg.connMsg.bssid), "00:00:00:00:00:00"); 281 StrSafeCopy(cbmsg->msg.groupInfo.ssid, sizeof(cbmsg->msg.groupInfo.ssid), "test_p2p"); 282 StrSafeCopy( [all …]
|
H A D | mock_wpa_ctrl.cpp | 227 StrSafeCopy(reply, *reply_len, "UNKNOWN COMMAND\n"); in wpa_ctrl_request() 232 StrSafeCopy(reply, *reply_len, "FAIL\n"); in wpa_ctrl_request() 234 StrSafeCopy(reply, *reply_len, iter->second.c_str()); in wpa_ctrl_request()
|
H A D | wifi_hal_ap_interface_test.cpp | 61 StrSafeCopy(config.ssid, sizeof(config.ssid), "test_ssid"); 63 StrSafeCopy(config.preSharedKey, sizeof(config.preSharedKey), "adc123456");
|
H A D | wifi_hal_hostapd_test.cpp | 76 StrSafeCopy(conf.preSharedKey, sizeof(conf.preSharedKey), "1234567"); 78 StrSafeCopy(conf.preSharedKey, sizeof(conf.preSharedKey), "12345678");
|
H A D | wifi_hal_sta_interface_test.cpp | 88 StrSafeCopy(conf.cfgValue, sizeof(conf.cfgValue), "network_ssid"); 163 StrSafeCopy(conf.param, sizeof(conf.param), "ssid");
|
H A D | wifi_hal_wpa_sta_test.cpp | 264 StrSafeCopy(argv.bssid, sizeof(argv.bssid), "00:00:00:00:00:00"); 281 StrSafeCopy(argv.bssid, sizeof(argv.bssid), "00:00:00:00:00:00"); 282 StrSafeCopy(argv.pinCode, sizeof(argv.pinCode), "87654321");
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/ |
H A D | wifi_wpa_hal.c | 119 StrSafeCopy(info.wfdDeviceInfo, sizeof(info.wfdDeviceInfo), retMsg.value); in DealP2pFindInfo() 128 StrSafeCopy(retMsg.value + len, sizeof(retMsg.value) - len, s); in DealP2pFindInfo() 131 StrSafeCopy(info.deviceName, sizeof(info.deviceName), retMsg.value); in DealP2pFindInfo() 181 StrSafeCopy(conf.goDeviceAddress, sizeof(conf.goDeviceAddress), retMsg.value); in DealGroupStartInfo() 183 StrSafeCopy(conf.groupIfName, sizeof(conf.groupIfName), retMsg.key); in DealGroupStartInfo() 185 StrSafeCopy(conf.psk, sizeof(conf.psk), retMsg.value); in DealGroupStartInfo() 190 StrSafeCopy(conf.ssid, sizeof(conf.ssid), retMsg.value); in DealGroupStartInfo() 193 StrSafeCopy(conf.passphrase, sizeof(conf.passphrase), retMsg.value); in DealGroupStartInfo() 323 StrSafeCopy(info.srcAddress, sizeof(info.srcAddress), retMsg.value); in DealInvitationReceived() 331 StrSafeCopy(info.bssid, sizeof(info.bssid), retMsg.value); in DealInvitationReceived() [all …]
|
H A D | wifi_wpa_common.c | 50 StrSafeCopy(out->key, sizeof(out->key), src); in GetStrKeyVal() 54 StrSafeCopy(out->key, sizeof(out->key), src); in GetStrKeyVal() 56 StrSafeCopy(out->value, sizeof(out->value), p); in GetStrKeyVal()
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_p2p_hal/ |
H A D | wifi_p2p_hal.c | 943 StrSafeCopy(join, sizeof(join), " join"); in WpaP2pCliCmdConnect() 951 StrSafeCopy(mode, sizeof(mode), " display"); in WpaP2pCliCmdConnect() 953 StrSafeCopy(mode, sizeof(mode), " keypad"); in WpaP2pCliCmdConnect() 955 StrSafeCopy(info->pin, sizeof(info->pin), "pbc"); in WpaP2pCliCmdConnect() 1156 …StrSafeCopy(peerInfo->p2pDeviceAddress, sizeof(peerInfo->p2pDeviceAddress), token); /* copy first … in WpaP2pCliCmdP2pGetPeer() 1161 … StrSafeCopy(peerInfo->primaryDeviceType, sizeof(peerInfo->primaryDeviceType), retMsg.value); in WpaP2pCliCmdP2pGetPeer() 1163 StrSafeCopy(peerInfo->deviceName, sizeof(peerInfo->deviceName), retMsg.value); in WpaP2pCliCmdP2pGetPeer() 1171 StrSafeCopy(peerInfo->operSsid, sizeof(peerInfo->operSsid), retMsg.value); in WpaP2pCliCmdP2pGetPeer() 1298 StrSafeCopy(argv->value, sizeof(argv->value), buf); in WpaP2pCliCmdGetGroupConfig() 1408 StrSafeCopy(g_wpaP2pInterface->ifName, sizeof(g_wpaP2pInterface->ifName), "p2p-dev-wlan0"); in GetWifiWapP2pInterface() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/common/ |
H A D | wifi_hal_common_func.h | 30 void StrSafeCopy(char *dst, unsigned len, const char *src);
|
H A D | wifi_hal_common_func.c | 29 void StrSafeCopy(char *dst, unsigned len, const char *src) in StrSafeCopy() function
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
H A D | wifi_hal_callback.c | 79 StrSafeCopy(pCbkMsg->msg.connMsg.bssid, WIFI_MAC_LENGTH + 1, pos); in WifiHalCbNotifyConnectChanged() 97 StrSafeCopy(pCbkMsg->msg.connMsg.bssid, WIFI_MAC_LENGTH + 1, bssid); in WifiHalCbNotifyDisConnectReason() 224 StrSafeCopy(tmpBuf, sizeof(tmpBuf), content + strlen("AP-STA-CONNECTED") + MAC_OFFSET); in WifiHalCbStaJoin() 227 StrSafeCopy(tmpBuf, sizeof(tmpBuf), content + strlen("AP-STA-DISCONNECTED") + MAC_OFFSET); in WifiHalCbStaJoin() 238 StrSafeCopy(pCbkMsg->msg.ifMsg.ifname, sizeof(pCbkMsg->msg.ifMsg.ifname), tmpBuf); in WifiHalCbStaJoin()
|
H A D | wifi_hal_crpc_server.c | 67 StrSafeCopy(g_rpcFuncHandle[pos].funcname, sizeof(g_rpcFuncHandle[pos].funcname), name); in PushRpcFunc() 78 StrSafeCopy(q->funcname, sizeof(q->funcname), name); in PushRpcFunc()
|
H A D | wifi_hal_p2p_interface.c | 1086 StrSafeCopy(pConfig[i].cfgValue, sizeof(pConfig[i].cfgValue), conf.value);
|
/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_common_test.cpp | 246 StrSafeCopy(nullptr, 10, "source"); 248 StrSafeCopy(dst, 10, nullptr); 255 StrSafeCopy(dst, 10, "source"); 262 StrSafeCopy(dst, 10, "this is a long source string");
|
/ohos5.0/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/ |
H A D | wifi_supplicant_hal.c | 131 StrSafeCopy(pcmd->bssid, sizeof(pcmd->bssid), value); in WpaCliCmdStatus() 135 StrSafeCopy(pcmd->ssid, sizeof(pcmd->ssid), value); in WpaCliCmdStatus() 140 StrSafeCopy(pcmd->keyMgmt, sizeof(pcmd->keyMgmt), value); in WpaCliCmdStatus() 142 StrSafeCopy(pcmd->address, sizeof(pcmd->address), value); in WpaCliCmdStatus() 1415 StrSafeCopy(p->ifname, sizeof(p->ifname), name); in GetWifiStaInterface()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common.h | 128 void StrSafeCopy(char *dst, unsigned len, const char *src);
|
H A D | wifi_hdi_common.c | 831 void StrSafeCopy(char *dst, unsigned len, const char *src) in StrSafeCopy() function
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/ |
H A D | wifi_hdi_wpa_callback.cpp | 630 StrSafeCopy(tempSsid, sizeof(tempSsid), (char *)groupStartedParam->ssid); in OnEventGroupStarted() 663 StrSafeCopy(tempSsid, sizeof(tempSsid), (char *)groupStartedParam->ssid); in OnEventGroupInfoStarted()
|