Bluetooth: controller: split: Fix missing reset of scanner state
Fix missing reset of scanner state which could cause a spurious SCAN_RSP packet without a prior SCAN_REQ being sent to be reported. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
608063b3ec
commit
24e3fd521e
1 changed files with 5 additions and 0 deletions
|
@ -144,6 +144,8 @@ static int prepare_cb(struct lll_prepare_param *p)
|
|||
return 0;
|
||||
}
|
||||
|
||||
lll->state = 0U;
|
||||
|
||||
radio_reset();
|
||||
#if defined(CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL)
|
||||
radio_tx_power_set(lll->tx_pwr_lvl);
|
||||
|
@ -516,10 +518,13 @@ static void isr_common_done(void *param)
|
|||
|
||||
static void isr_done(void *param)
|
||||
{
|
||||
struct lll_scan *lll = param;
|
||||
uint32_t start_us;
|
||||
|
||||
isr_common_done(param);
|
||||
|
||||
lll->state = 0U;
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_GPIO_LNA_PIN)
|
||||
start_us = radio_tmr_start_now(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue