diff --git a/cpp/core/internal/p2p_cluster_pcp_handler.cc b/cpp/core/internal/p2p_cluster_pcp_handler.cc index 10823b06..aa709b0a 100644 --- a/cpp/core/internal/p2p_cluster_pcp_handler.cc +++ b/cpp/core/internal/p2p_cluster_pcp_handler.cc @@ -553,7 +553,7 @@ bool P2pClusterPcpHandler::IsRecognizedWifiLanEndpoint( } ByteArray expected_service_id_hash = - GenerateHash(service_id, BluetoothDeviceName::kServiceIdHashLength); + GenerateHash(service_id, WifiLanServiceInfo::kServiceIdHashLength); if (service_info.GetServiceIdHash() != expected_service_id_hash) { NEARBY_LOGS(INFO)