Skip to content

Commit c32bf58

Browse files
Tronilkartben
authored andcommitted
Bluetooth: Controller: Fix an error code in ll_adv_sync_ad_data_set
When an advertising set is not configured for periodic advertising, the correct error to return is BT_HCI_ERR_CMD_DISALLOWED Fixes EBQ test failure of HCI/DDI/BI-70-C Signed-off-by: Troels Nilsson <trnn@demant.com>
1 parent 941a548 commit c32bf58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv_sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ uint8_t ll_adv_sync_ad_data_set(uint8_t handle, uint8_t op, uint8_t len,
278278
/* Check if periodic advertising is associated with advertising set */
279279
lll_sync = adv->lll.sync;
280280
if (!lll_sync) {
281-
return BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER;
281+
return BT_HCI_ERR_CMD_DISALLOWED;
282282
}
283283

284284
sync = HDR_LLL2ULL(lll_sync);

0 commit comments

Comments
 (0)