Skip to content

Commit f1dff28

Browse files
committed
Bluetooth: controller: hci: Align to terms in the v5.3 spec
Align with the new inclusive naming terms in the v5.3 spec in the controller's HCI implementation. Signed-off-by: Carles Cufi <[email protected]>
1 parent 4207534 commit f1dff28

File tree

1 file changed

+16
-16
lines changed
  • subsys/bluetooth/controller/hci

1 file changed

+16
-16
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,9 @@ static void read_supported_commands(struct net_buf *buf, struct net_buf **evt)
664664
rp->commands[25] |= BIT(0) | BIT(1) | BIT(2) | BIT(4);
665665

666666
#if defined(CONFIG_BT_CTLR_FILTER)
667-
/* LE Read WL Size, LE Clear WL */
667+
/* LE Read FAL Size, LE Clear FAL */
668668
rp->commands[26] |= BIT(6) | BIT(7);
669-
/* LE Add Dev to WL, LE Remove Dev from WL */
669+
/* LE Add Dev to FAL, LE Remove Dev from FAL */
670670
rp->commands[27] |= BIT(0) | BIT(1);
671671
#endif /* CONFIG_BT_CTLR_FILTER */
672672

@@ -1230,7 +1230,7 @@ static void le_set_random_address(struct net_buf *buf, struct net_buf **evt)
12301230
}
12311231

12321232
#if defined(CONFIG_BT_CTLR_FILTER)
1233-
static void le_read_wl_size(struct net_buf *buf, struct net_buf **evt)
1233+
static void le_read_fal_size(struct net_buf *buf, struct net_buf **evt)
12341234
{
12351235
struct bt_hci_rp_le_read_fal_size *rp;
12361236

@@ -1240,7 +1240,7 @@ static void le_read_wl_size(struct net_buf *buf, struct net_buf **evt)
12401240
rp->fal_size = ll_wl_size_get();
12411241
}
12421242

1243-
static void le_clear_wl(struct net_buf *buf, struct net_buf **evt)
1243+
static void le_clear_fal(struct net_buf *buf, struct net_buf **evt)
12441244
{
12451245
uint8_t status;
12461246

@@ -1249,7 +1249,7 @@ static void le_clear_wl(struct net_buf *buf, struct net_buf **evt)
12491249
*evt = cmd_complete_status(status);
12501250
}
12511251

1252-
static void le_add_dev_to_wl(struct net_buf *buf, struct net_buf **evt)
1252+
static void le_add_dev_to_fal(struct net_buf *buf, struct net_buf **evt)
12531253
{
12541254
struct bt_hci_cp_le_add_dev_to_fal *cmd = (void *)buf->data;
12551255
uint8_t status;
@@ -1259,7 +1259,7 @@ static void le_add_dev_to_wl(struct net_buf *buf, struct net_buf **evt)
12591259
*evt = cmd_complete_status(status);
12601260
}
12611261

1262-
static void le_rem_dev_from_wl(struct net_buf *buf, struct net_buf **evt)
1262+
static void le_rem_dev_from_fal(struct net_buf *buf, struct net_buf **evt)
12631263
{
12641264
struct bt_hci_cp_le_rem_dev_from_fal *cmd = (void *)buf->data;
12651265
uint8_t status;
@@ -1312,13 +1312,13 @@ static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt)
13121312
BIT64(22) | BIT64(23) | BIT64(24) | BIT64(25) | BIT64(26) | \
13131313
BIT64(27) | BIT64(30) | BIT64(31))
13141314

1315-
#define ST_SLA (BIT64(2) | BIT64(3) | BIT64(7) | BIT64(10) | BIT64(11) | \
1315+
#define ST_PER (BIT64(2) | BIT64(3) | BIT64(7) | BIT64(10) | BIT64(11) | \
13161316
BIT64(14) | BIT64(15) | BIT64(20) | BIT64(21) | BIT64(26) | \
13171317
BIT64(27) | BIT64(29) | BIT64(30) | BIT64(31) | BIT64(32) | \
13181318
BIT64(33) | BIT64(34) | BIT64(35) | BIT64(36) | BIT64(37) | \
13191319
BIT64(38) | BIT64(39) | BIT64(40) | BIT64(41))
13201320

1321-
#define ST_MAS (BIT64(6) | BIT64(16) | BIT64(17) | BIT64(18) | BIT64(19) | \
1321+
#define ST_CEN (BIT64(6) | BIT64(16) | BIT64(17) | BIT64(18) | BIT64(19) | \
13221322
BIT64(22) | BIT64(23) | BIT64(24) | BIT64(25) | BIT64(28) | \
13231323
BIT64(32) | BIT64(33) | BIT64(34) | BIT64(35) | BIT64(36) | \
13241324
BIT64(37) | BIT64(41))
@@ -1334,14 +1334,14 @@ static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt)
13341334
states &= ~ST_SCA;
13351335
#endif
13361336
#if defined(CONFIG_BT_PERIPHERAL)
1337-
states |= ST_SLA;
1337+
states |= ST_PER;
13381338
#else
1339-
states &= ~ST_SLA;
1339+
states &= ~ST_PER;
13401340
#endif
13411341
#if defined(CONFIG_BT_CENTRAL)
1342-
states |= ST_MAS;
1342+
states |= ST_CEN;
13431343
#else
1344-
states &= ~ST_MAS;
1344+
states &= ~ST_CEN;
13451345
#endif
13461346
/* All states and combinations supported except:
13471347
* Initiating State + Passive Scanning
@@ -3556,19 +3556,19 @@ static int controller_cmd_handle(uint16_t ocf, struct net_buf *cmd,
35563556

35573557
#if defined(CONFIG_BT_CTLR_FILTER)
35583558
case BT_OCF(BT_HCI_OP_LE_READ_FAL_SIZE):
3559-
le_read_wl_size(cmd, evt);
3559+
le_read_fal_size(cmd, evt);
35603560
break;
35613561

35623562
case BT_OCF(BT_HCI_OP_LE_CLEAR_FAL):
3563-
le_clear_wl(cmd, evt);
3563+
le_clear_fal(cmd, evt);
35643564
break;
35653565

35663566
case BT_OCF(BT_HCI_OP_LE_ADD_DEV_TO_FAL):
3567-
le_add_dev_to_wl(cmd, evt);
3567+
le_add_dev_to_fal(cmd, evt);
35683568
break;
35693569

35703570
case BT_OCF(BT_HCI_OP_LE_REM_DEV_FROM_FAL):
3571-
le_rem_dev_from_wl(cmd, evt);
3571+
le_rem_dev_from_fal(cmd, evt);
35723572
break;
35733573
#endif /* CONFIG_BT_CTLR_FILTER */
35743574

0 commit comments

Comments
 (0)