Skip to content

Commit 6b9b16f

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: Controller: Minor changes related to review comments
Minor changes related to review comments. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent c706a09 commit 6b9b16f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static void isr_aux_setup(void *param)
619619
static int isr_rx(struct lll_sync *lll, uint8_t node_type, uint8_t crc_ok, uint8_t rssi_ready,
620620
enum sync_status status)
621621
{
622-
uint8_t sched = 0U;
622+
bool sched = false;
623623
int err;
624624

625625
/* Check CRC and generate Periodic Advertising Report */
@@ -662,21 +662,21 @@ static int isr_rx(struct lll_sync *lll, uint8_t node_type, uint8_t crc_ok, uint8
662662

663663
ull_rx_put(node_rx->hdr.link, node_rx);
664664

665-
sched = 1U;
665+
sched = true;
666666
} else {
667667
err = 0;
668668
}
669669

670670
#if defined(CONFIG_BT_CTLR_DF_SCAN_CTE_RX)
671671
(void)create_iq_report(lll, rssi_ready, BT_HCI_LE_CTE_CRC_OK);
672-
sched = 1U;
672+
sched = true;
673673
#endif /* CONFIG_BT_CTLR_DF_SCAN_CTE_RX */
674674

675675
} else {
676676
#if defined(CONFIG_BT_CTLR_DF_SAMPLE_CTE_FOR_PDU_WITH_BAD_CRC)
677677
err = create_iq_report(lll, rssi_ready, BT_HCI_LE_CTE_CRC_ERR_CTE_BASED_TIME);
678678
if (!err) {
679-
sched = 1U;
679+
sched = true;
680680
}
681681
#endif /* CONFIG_BT_CTLR_DF_SAMPLE_CTE_FOR_PDU_WITH_BAD_CRC */
682682

subsys/bluetooth/controller/ll_sw/ull_sync.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ uint8_t ll_sync_recv_enable(uint16_t handle, uint8_t enable)
374374
1U : 0U;
375375

376376
#if defined(CONFIG_BT_CTLR_SYNC_PERIODIC_ADI_SUPPORT)
377-
sync->nodups = (enable &
378-
BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_FILTER_DUPLICATE) ?
377+
sync->nodups = (enable & BT_HCI_LE_SET_PER_ADV_RECV_ENABLE_FILTER_DUPLICATE) ?
379378
1U : 0U;
380379
#endif
381380

0 commit comments

Comments
 (0)