Bluetooth: controller: Fix RX data pause
Reset pause_rx_data to 0 during adv enable or connection creation. Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
This commit is contained in:
parent
fefa83d5ed
commit
060ac37166
@ -1125,6 +1125,10 @@ uint8_t ll_adv_enable(uint8_t enable)
|
||||
conn->phy_pref_rx = ull_conn_default_phy_rx_get();
|
||||
#endif /* CONFIG_BT_CTLR_PHY */
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_LE_ENC)
|
||||
conn->pause_rx_data = 0U;
|
||||
#endif /* CONFIG_BT_CTLR_LE_ENC */
|
||||
|
||||
/* Re-initialize the Tx Q */
|
||||
ull_tx_q_init(&conn->tx_q);
|
||||
#endif /* CONFIG_BT_LL_SW_LLCP_LEGACY */
|
||||
|
||||
@ -374,6 +374,10 @@ uint8_t ll_create_connection(uint16_t scan_interval, uint16_t scan_window,
|
||||
conn->phy_pref_rx = ull_conn_default_phy_rx_get();
|
||||
#endif /* CONFIG_BT_CTLR_PHY */
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_LE_ENC)
|
||||
conn->pause_rx_data = 0U;
|
||||
#endif /* CONFIG_BT_CTLR_LE_ENC */
|
||||
|
||||
/* Re-initialize the Tx Q */
|
||||
ull_tx_q_init(&conn->tx_q);
|
||||
#endif /* CONFIG_BT_LL_SW_LLCP_LEGACY */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user