Bluetooth: controller: Fix bug in Encryption feature cond. compile

Fix a bug in Encryption Procedure feature conditional
compile which prevent any data transfer when the feature was
disabled.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2019-02-18 17:45:10 +05:30 committed by Carles Cufí
commit 0d82116655

View file

@ -1139,9 +1139,9 @@ void ull_conn_tx_lll_enqueue(struct ll_conn *conn, u8_t count)
tx = conn->tx_head;
#if defined(CONFIG_BT_CTLR_LE_ENC)
while (tx && ((tx == conn->tx_ctrl) || !conn->pause_tx) && count--) {
while (tx && (!conn->pause_tx || (tx == conn->tx_ctrl)) && count--) {
#else /* !CONFIG_BT_CTLR_LE_ENC */
while (tx && (tx == conn->tx_ctrl) && count--) {
while (tx && count--) {
#endif /* !CONFIG_BT_CTLR_LE_ENC */
struct node_tx *tx_lll;
memq_link_t *link;