Cold start of GNSS through the Cellular service

Due to an error in the IPC API the messages location_trigger_gnss_cold_start_req and location_trigger_gnss_cold_start_rsp was handled by the Cellular service instead of the Location service. It has now been fixed and the correct way is to send the request to the Location service.

Sending the request to the Cellular service is now deprecated and will no longer work by the end of 2027.

The code below shows the deprecated way of sending location_trigger_gnss_cold_start_req:

A_IPC_RESULT rc = a_ipc_init_location_trigger_gnss_cold_start_req(msg_buf);
if (rc != A_IPC_RET_OK) {
    printf("Initialize trigger gnss cold start req message failed: %s\n",
           a_ipc_result_str(rc));
    return rc;
}

rc = a_ipc_send(a_ipc, A_SERVICE_ID_CELLULAR, msg_buf);
if (rc != A_IPC_RET_OK) {
    printf("IPC sending trigger gnss cold start req message failed: %s\n",
        a_ipc_result_str(rc));
    return rc;
}

The correct way of sending location_trigger_gnss_cold_start_req is show in the code below:

A_IPC_RESULT rc = a_ipc_init_location_trigger_gnss_cold_start_req(msg_buf);
if (rc != A_IPC_RET_OK) {
    printf("Initialize trigger gnss cold start req message failed: %s\n",
           a_ipc_result_str(rc));
    return rc;
}

rc = a_ipc_send(a_ipc, A_SERVICE_ID_LOCATION, msg_buf);
if (rc != A_IPC_RET_OK) {
    printf("IPC sending trigger gnss cold start req message failed: %s\n",
        a_ipc_result_str(rc));
    return rc;
}