Skip to content

Commit 0b04dd7

Browse files
andrzej-kaczmarekcarlescufi
authored andcommitted
Bluetooth: controller: Add support for initiator on secondary adv ch
This allows to initiate a connection on secondary advertising channels, i.e. when advertises uses advertising extensions. Signed-off-by: Andrzej Kaczmarek <[email protected]>
1 parent c47396a commit 0b04dd7

File tree

3 files changed

+458
-20
lines changed

3 files changed

+458
-20
lines changed

subsys/bluetooth/controller/ll_sw/lll_scan.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ struct lll_scan_aux {
6363
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
6464
int8_t tx_pwr_lvl;
6565
#endif /* CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL */
66+
67+
#if defined(CONFIG_BT_CENTRAL)
68+
struct node_rx_pdu *node_conn_rx;
69+
#endif /* CONFIG_BT_CENTRAL */
6670
};
6771

6872
int lll_scan_init(void);

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ void lll_scan_prepare(void *param)
113113
LL_ASSERT(!err || err == -EINPROGRESS);
114114
}
115115

116+
#if defined(CONFIG_BT_CENTRAL)
116117
void lll_scan_prepare_connect_req(struct lll_scan *lll, struct pdu_adv *pdu_tx,
117118
uint8_t phy, uint8_t adv_tx_addr,
118119
uint8_t *adv_addr, uint8_t init_tx_addr,
@@ -198,6 +199,7 @@ void lll_scan_prepare_connect_req(struct lll_scan *lll, struct pdu_adv *pdu_tx,
198199
pdu_tx->connect_ind.hop = lll_conn->data_chan_hop;
199200
pdu_tx->connect_ind.sca = lll_clock_sca_local_get();
200201
}
202+
#endif /* CONFIG_BT_CENTRAL */
201203

202204
static int init_reset(void)
203205
{

0 commit comments

Comments
 (0)