From 934279a48f6e4d1c47817c7a78bd5fa8173fad44 Mon Sep 17 00:00:00 2001 From: Thomas Ebert Hansen Date: Mon, 14 Mar 2022 08:46:58 +0100 Subject: [PATCH] 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 --- subsys/bluetooth/controller/ll_sw/ull_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index c41c7b95e00..f61caead8cb 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -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;