Skip to content

Commit

Permalink
Bluetooth: Controller: Remove assign to terminate_ack
Browse files Browse the repository at this point in the history
Assignment to conn->central.terminate_ack is not accessible after
2ada005.
Remove dead code.

Signed-off-by: Mateusz Kusiak <[email protected]>
  • Loading branch information
mku514k committed Jun 26, 2023
1 parent c214ec3 commit 9da52f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions subsys/bluetooth/controller/ll_sw/ull_central.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ uint8_t ll_create_connection(uint16_t scan_interval, uint16_t scan_window,
/* Setup the PRT reload */
ull_cp_prt_reload_set(conn, conn_interval_us);

conn->central.terminate_ack = 0U;

conn->llcp_terminate.reason_final = 0U;
/* NOTE: use allocated link for generating dedicated
* terminate ind rx node
Expand Down
5 changes: 0 additions & 5 deletions subsys/bluetooth/controller/ll_sw/ull_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,11 +1004,6 @@ void ull_conn_done(struct node_rx_event_done *done)
}
#endif /* CONFIG_BT_PERIPHERAL */

#if defined(CONFIG_BT_CENTRAL)
} else if (reason_final) {
conn->central.terminate_ack = 1;
#endif /* CONFIG_BT_CENTRAL */

}

/* Reset connection failed to establish countdown */
Expand Down
9 changes: 0 additions & 9 deletions subsys/bluetooth/controller/ll_sw/ull_conn_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,6 @@ struct ll_conn {
uint32_t ticks_to_offset;
} periph;
#endif /* CONFIG_BT_PERIPHERAL */

#if defined(CONFIG_BT_CENTRAL)
struct {
#if defined(CONFIG_BT_CTLR_CONN_META)
uint8_t is_must_expire:1;
#endif /* CONFIG_BT_CTLR_CONN_META */
uint8_t terminate_ack:1;
} central;
#endif /* CONFIG_BT_CENTRAL */
};

/* Cancel the prepare in the instant a Connection Update takes place */
Expand Down

0 comments on commit 9da52f1

Please sign in to comment.