Bluetooth: controller: Move initiated flag into role specific union

Move the initiated bit flag into role specific union, so that
other role specific bit flags can share bit space in the LLL
context structure.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-03-16 11:21:25 +05:30 committed by Carles Cufí
commit b2e802b018
9 changed files with 28 additions and 23 deletions

View file

@ -46,7 +46,6 @@ struct lll_conn {
uint8_t data_chan_count:6;
uint8_t data_chan_sel:1;
uint8_t role:1;
uint8_t initiated:1;
union {
struct {
@ -57,18 +56,24 @@ struct lll_conn {
uint16_t data_chan_id;
};
union {
struct {
uint8_t initiated:1;
} master;
#if defined(CONFIG_BT_PERIPHERAL)
struct {
uint8_t latency_enabled:1;
struct {
uint8_t initiated:1;
uint8_t latency_enabled:1;
uint32_t window_widening_periodic_us;
uint32_t window_widening_max_us;
uint32_t window_widening_prepare_us;
uint32_t window_widening_event_us;
uint32_t window_size_prepare_us;
uint32_t window_size_event_us;
} slave;
uint32_t window_widening_periodic_us;
uint32_t window_widening_max_us;
uint32_t window_widening_prepare_us;
uint32_t window_widening_event_us;
uint32_t window_size_prepare_us;
uint32_t window_size_event_us;
} slave;
#endif /* CONFIG_BT_PERIPHERAL */
};
#if defined(CONFIG_BT_CTLR_DATA_LENGTH)
uint16_t max_tx_octets;