Test: Bluetooth: controller: add CI testing for advertising chaining
Update babblesim tests for testing chaining for advertising to ensure that we spill over to the next PDU Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
e8716bf793
commit
e04c963d9c
3 changed files with 21 additions and 5 deletions
|
@ -47,11 +47,18 @@
|
|||
BT_AD_DATA_FORMAT_LEN_SIZE - \
|
||||
BT_AD_DATA_FORMAT_TYPE_SIZE - \
|
||||
BT_DEVICE_NAME_AD_DATA_LEN)))
|
||||
|
||||
/*
|
||||
* Datalength is an integer, so BT_MFG_DATA_LEN can not be larger than 255.
|
||||
* To ensure that we need to chain PDUs we therefore add manufacturer data
|
||||
* twice when chaining is enabled
|
||||
*/
|
||||
static uint8_t mfg_data[BT_MFG_DATA_LEN] = { 0xFF, 0xFF, };
|
||||
|
||||
static const struct bt_data ad[] = {
|
||||
BT_DATA(BT_DATA_MANUFACTURER_DATA, mfg_data, sizeof(mfg_data)),
|
||||
#if defined(CONFIG_BT_CTLR_ADV_DATA_CHAIN)
|
||||
BT_DATA(BT_DATA_MANUFACTURER_DATA, mfg_data, sizeof(mfg_data)),
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct bt_le_ext_adv *adv[CONFIG_BT_EXT_ADV_MAX_ADV_SET];
|
||||
|
@ -75,6 +82,7 @@ int broadcaster_multiple(void)
|
|||
printk("Bluetooth init failed (err %d)\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
for (int index = 0; index < CONFIG_BT_EXT_ADV_MAX_ADV_SET; index++) {
|
||||
/* Use advertising set instance index as SID */
|
||||
adv_param.sid = index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue