[bluetooth_proxy] Pair the advertisement flush time with hub_ to close alignment holes (#18234)

This commit is contained in:
J. Nick Koston
2026-08-10 12:40:22 -05:00
committed by GitHub
parent b7c6245388
commit ad733272e5
@@ -242,13 +242,13 @@ class BluetoothProxy final : public Component {
std::array<BluetoothConnection *, BLUETOOTH_PROXY_MAX_CONNECTIONS> connections_{};
#endif
ble_device_base::BLEHub *hub_{nullptr};
// Group 3: 4-byte types; paired with hub_ so the 8-aligned messages below
// start on an even word, closing two alignment holes.
uint32_t last_advertisement_flush_time_{0};
// BLE advertisement batching
api::BluetoothLERawAdvertisementsResponse response_;
// Group 3: 4-byte types
uint32_t last_advertisement_flush_time_{0};
// Pre-allocated response message - always ready to send
api::BluetoothConnectionsFreeResponse connections_free_response_;