Skip to content

Commit 56b0e3e

Browse files
Thalleykartben
authored andcommitted
Bluetooth: Host: Rearrange fields in bt_le_ext_adv
Move the CONFIG_BT_EXT_ADV fields up and have the 2 8-bit values first, so they can be placed in the same word as the previous 2 when applicable. Signed-off-by: Emil Gydesen <[email protected]>
1 parent ef700ec commit 56b0e3e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

subsys/bluetooth/host/hci_core.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,24 +171,25 @@ struct bt_le_ext_adv {
171171
/* Advertising handle */
172172
uint8_t handle;
173173

174-
/* Current local Random Address */
175-
bt_addr_le_t random_addr;
176-
177-
/* Current target address */
178-
bt_addr_le_t target_addr;
179-
180-
ATOMIC_DEFINE(flags, BT_ADV_NUM_FLAGS);
181-
182174
#if defined(CONFIG_BT_EXT_ADV)
183-
const struct bt_le_ext_adv_cb *cb;
184-
185175
/* TX Power in use by the controller */
186176
int8_t tx_power;
187177

188178
/* Advertising Set ID */
189179
uint8_t sid;
180+
181+
/* Callbacks for the advertising set */
182+
const struct bt_le_ext_adv_cb *cb;
190183
#endif /* defined(CONFIG_BT_EXT_ADV) */
191184

185+
/* Current local Random Address */
186+
bt_addr_le_t random_addr;
187+
188+
/* Current target address */
189+
bt_addr_le_t target_addr;
190+
191+
ATOMIC_DEFINE(flags, BT_ADV_NUM_FLAGS);
192+
192193
struct k_work_delayable lim_adv_timeout_work;
193194

194195
/** The options used to set the parameters for this advertising set

0 commit comments

Comments
 (0)