Fix the host endpoint type

Bug: 308734918
Test: Compile and execute chre_test_rpc
Change-Id: I6944fefa8eb1cc6e8d0dbbd116a7a785ab27bbc6
diff --git a/host/common/include/chre_host/pigweed/hal_rpc_client.h b/host/common/include/chre_host/pigweed/hal_rpc_client.h
index f84d413..400efdb 100644
--- a/host/common/include/chre_host/pigweed/hal_rpc_client.h
+++ b/host/common/include/chre_host/pigweed/hal_rpc_client.h
@@ -58,7 +58,7 @@
    */
   static std::unique_ptr<HalRpcClient> createClient(
       std::string_view appName, SocketClient &client,
-      sp<SocketClient::ICallbacks> socketCallbacks, uint32_t hostEndpointId,
+      sp<SocketClient::ICallbacks> socketCallbacks, uint16_t hostEndpointId,
       uint64_t serverNanoappId);
 
   ~HalRpcClient() {
@@ -124,7 +124,7 @@
   };
 
   HalRpcClient(std::string_view appName, SocketClient &client,
-               uint32_t hostEndpointId, uint64_t serverNanoappId)
+               uint16_t hostEndpointId, uint64_t serverNanoappId)
       : mServerNanoappId(serverNanoappId),
         mHostEndpointId(hostEndpointId),
         mAppName(appName),
@@ -161,7 +161,7 @@
   bool retrieveServices();
 
   const uint64_t mServerNanoappId;
-  const uint32_t mHostEndpointId;
+  const uint16_t mHostEndpointId;
   const std::string mAppName;
   SocketClient &mSocketClient;
   std::unique_ptr<HalChannelOutput> mChannelOutput;
diff --git a/host/common/pigweed/hal_rpc_client.cc b/host/common/pigweed/hal_rpc_client.cc
index 776db11..43fbe7a 100644
--- a/host/common/pigweed/hal_rpc_client.cc
+++ b/host/common/pigweed/hal_rpc_client.cc
@@ -37,7 +37,7 @@
 
 std::unique_ptr<HalRpcClient> HalRpcClient::createClient(
     std::string_view appName, SocketClient &client,
-    sp<SocketClient::ICallbacks> socketCallbacks, uint32_t hostEndpointId,
+    sp<SocketClient::ICallbacks> socketCallbacks, uint16_t hostEndpointId,
     uint64_t serverNanoappId) {
   auto rpcClient = std::unique_ptr<HalRpcClient>(
       new HalRpcClient(appName, client, hostEndpointId, serverNanoappId));