From 965a59673fbee138eb649a6b6fe00b292dfce1fd Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 11 Mar 2024 14:18:08 +0100 Subject: [PATCH] bump tx packet queue size in link layer --- examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs b/examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs index 1edacf2..3b86325 100644 --- a/examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs +++ b/examples/nrf-sdc/src/bin/ble_l2cap_peripheral.rs @@ -61,6 +61,7 @@ fn build_sdc<'d, const N: usize>( .support_adv()? .support_peripheral()? .peripheral_count(1)? + .buffer_cfg(27, 27, 20, 20)? .build(p, rng, mpsl, mem) } @@ -98,7 +99,7 @@ async fn main(spawner: Spawner) { let mut pool = [0; 256]; let rng = sdc::rng_pool::RngPool::new(p.RNG, Irqs, &mut pool, 64); - let mut sdc_mem = sdc::Mem::<1672>::new(); + let mut sdc_mem = sdc::Mem::<3128>::new(); let sdc = unwrap!(build_sdc(sdc_p, &rng, mpsl, &mut sdc_mem)); info!("Advertising as {:02x}", bd_addr()); @@ -108,7 +109,7 @@ async fn main(spawner: Spawner) { static HOST_RESOURCES: StaticCell> = StaticCell::new(); let host_resources = HOST_RESOURCES.init(HostResources::new(PacketQos::Guaranteed(4))); - static ADAPTER: StaticCell> = StaticCell::new(); + static ADAPTER: StaticCell> = StaticCell::new(); let adapter = ADAPTER.init(Adapter::new(host_resources)); let config = BleConfig {