[bt][transport] Migrate kCommandTimeout to pw_chrono
Bug: 100594
Test: fx test bt-host-transport-tests
Change-Id: I9d2e7afd8b12bb5410ad65c8df7c13e70415b675
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/917133
Fuchsia-Auto-Submit: Ben Lawson <benlawson@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
diff --git a/pw_bluetooth_sapphire/host/hci-spec/constants.h b/pw_bluetooth_sapphire/host/hci-spec/constants.h
index f5be205..a40032c 100644
--- a/pw_bluetooth_sapphire/host/hci-spec/constants.h
+++ b/pw_bluetooth_sapphire/host/hci-spec/constants.h
@@ -794,8 +794,7 @@
// TODO(fxbug.dev/1196,fxbug.dev/1197) This was increased to handle flaking integration tests.
// We may want to reduce this to something lower again once we have a better
// resolution to this issue.
-constexpr zx::duration kCommandTimeout = zx::sec(10);
-constexpr pw::chrono::SystemClock::duration kPwCommandTimeout = std::chrono::seconds(10);
+constexpr pw::chrono::SystemClock::duration kCommandTimeout = std::chrono::seconds(10);
// The minimum and maximum range values for the LE advertising interval
// parameters.
diff --git a/pw_bluetooth_sapphire/host/transport/command_channel.cc b/pw_bluetooth_sapphire/host/transport/command_channel.cc
index 0c18c9e..c832a87 100644
--- a/pw_bluetooth_sapphire/host/transport/command_channel.cc
+++ b/pw_bluetooth_sapphire/host/transport/command_channel.cc
@@ -89,7 +89,7 @@
chan->OnCommandTimeout(tid);
}
});
- timeout_task_.PostAfter(hci_spec::kPwCommandTimeout);
+ timeout_task_.PostAfter(hci_spec::kCommandTimeout);
}
void CommandChannel::TransactionData::Complete(std::unique_ptr<EventPacket> event) {