Skip to content

Commit 6531213

Browse files
petrip-slabasmellby
authored andcommitted
modules: hal_silabs: Always allocate a connection for PAwR responses
The Silicon Labs Link Layer allocates a connection context when PAwR with response discovers an advertiser to synchronize with. Since this procedure currently relies on connection resources, ensure that at least one connection is configured whenever PAwR responses are enabled. Upstream-status: available Signed-off-by: Petri Pitkanen <petri.pitkanen@silabs.com> (cherry picked from commit e9682ef)
1 parent 9aa5501 commit 6531213

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

modules/hal_silabs/simplicity_sdk/config/ll/sl_bluetooth_connection_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#ifndef SL_BT_CONNECTION_CONFIG_H
1111
#define SL_BT_CONNECTION_CONFIG_H
1212

13+
#if defined(CONFIG_BT_MAX_CONN)
1314
#define SL_BT_CONFIG_MAX_CONNECTIONS CONFIG_BT_MAX_CONN
15+
#elif defined(CONFIG_BT_PER_ADV_SYNC)
16+
#define SL_BT_CONFIG_MAX_CONNECTIONS 1
17+
#endif
1418

1519
#endif

modules/hal_silabs/simplicity_sdk/config/ll/sl_btctrl_config.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
#define SL_CATALOG_BLUETOOTH_FEATURE_CIS_PRESENT
3737
#endif
3838

39-
#ifdef CONFIG_BT_CONN
39+
/* The following dependency on PER_ADV_SYNC_RSP is due to the link layer
40+
* always reserving a connection when attempting sync with response.
41+
*/
42+
#if defined(CONFIG_BT_CONN) || defined(CONFIG_BT_PER_ADV_SYNC_RSP)
4043
#define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PRESENT
4144
#endif
4245

@@ -69,7 +72,7 @@
6972

7073
#ifdef CONFIG_BT_PER_ADV_RSP
7174
#define SL_CATALOG_BLUETOOTH_FEATURE_PAWR_ADVERTISER_PRESENT
72-
#ifdef CONFIG_BT_CONN
75+
#if defined(CONFIG_BT_CONN) || defined(CONFIG_BT_PER_ADV_SYNC_RSP)
7376
#define SL_CATALOG_BLUETOOTH_FEATURE_CONNECTION_PAWR_SCHEDULING_PRESENT
7477
#endif
7578
#endif

0 commit comments

Comments
 (0)