Bluetooth: controller: Fix enc APPTO

The logic condition for when to enable APPTO needs to look at both
enc_rx and enc_tx.

Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
This commit is contained in:
Thomas Ebert Hansen 2022-03-14 08:46:58 +01:00 committed by Carles Cufí
commit 934279a48f

View file

@ -1387,7 +1387,7 @@ void ull_conn_done(struct node_rx_event_done *done)
#if defined(CONFIG_BT_LL_SW_LLCP_LEGACY)
if (lll->enc_rx || conn->llcp_enc.pause_rx) {
#else /* CONFIG_BT_LL_SW_LLCP_LEGACY */
if (lll->enc_rx || ull_cp_encryption_paused(conn)) {
if (lll->enc_rx && lll->enc_tx) {
#endif /* CONFIG_BT_LL_SW_LLCP_LEGACY */
uint16_t appto_reload_new;