l2cap socket psm is not generated once per BleV2Medium initialisation. Accept() waits till all other l2cap connections are closed to create a new connection

This commit is contained in:
kidfromjupiter
2026-02-06 12:28:58 +00:00
parent 2718d9942b
commit cdfe437831
4 changed files with 23 additions and 14 deletions
@@ -158,6 +158,8 @@ class BleV2Medium final : public api::ble::BleMedium {
std::unique_ptr<bluez::LEAdvertisementManager> adv_manager_;
int psm_;
absl::Mutex cur_adv_mutex_;
std::unique_ptr<bluez::LEAdvertisement> cur_adv_
ABSL_GUARDED_BY(cur_adv_mutex_);