@@ -664,9 +664,9 @@ static void read_supported_commands(struct net_buf *buf, struct net_buf **evt)
664
664
rp -> commands [25 ] |= BIT (0 ) | BIT (1 ) | BIT (2 ) | BIT (4 );
665
665
666
666
#if defined(CONFIG_BT_CTLR_FILTER )
667
- /* LE Read WL Size, LE Clear WL */
667
+ /* LE Read FAL Size, LE Clear FAL */
668
668
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 */
670
670
rp -> commands [27 ] |= BIT (0 ) | BIT (1 );
671
671
#endif /* CONFIG_BT_CTLR_FILTER */
672
672
@@ -1230,7 +1230,7 @@ static void le_set_random_address(struct net_buf *buf, struct net_buf **evt)
1230
1230
}
1231
1231
1232
1232
#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 )
1234
1234
{
1235
1235
struct bt_hci_rp_le_read_fal_size * rp ;
1236
1236
@@ -1240,7 +1240,7 @@ static void le_read_wl_size(struct net_buf *buf, struct net_buf **evt)
1240
1240
rp -> fal_size = ll_wl_size_get ();
1241
1241
}
1242
1242
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 )
1244
1244
{
1245
1245
uint8_t status ;
1246
1246
@@ -1249,7 +1249,7 @@ static void le_clear_wl(struct net_buf *buf, struct net_buf **evt)
1249
1249
* evt = cmd_complete_status (status );
1250
1250
}
1251
1251
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 )
1253
1253
{
1254
1254
struct bt_hci_cp_le_add_dev_to_fal * cmd = (void * )buf -> data ;
1255
1255
uint8_t status ;
@@ -1259,7 +1259,7 @@ static void le_add_dev_to_wl(struct net_buf *buf, struct net_buf **evt)
1259
1259
* evt = cmd_complete_status (status );
1260
1260
}
1261
1261
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 )
1263
1263
{
1264
1264
struct bt_hci_cp_le_rem_dev_from_fal * cmd = (void * )buf -> data ;
1265
1265
uint8_t status ;
@@ -1312,13 +1312,13 @@ static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt)
1312
1312
BIT64(22) | BIT64(23) | BIT64(24) | BIT64(25) | BIT64(26) | \
1313
1313
BIT64(27) | BIT64(30) | BIT64(31))
1314
1314
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) | \
1316
1316
BIT64(14) | BIT64(15) | BIT64(20) | BIT64(21) | BIT64(26) | \
1317
1317
BIT64(27) | BIT64(29) | BIT64(30) | BIT64(31) | BIT64(32) | \
1318
1318
BIT64(33) | BIT64(34) | BIT64(35) | BIT64(36) | BIT64(37) | \
1319
1319
BIT64(38) | BIT64(39) | BIT64(40) | BIT64(41))
1320
1320
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) | \
1322
1322
BIT64(22) | BIT64(23) | BIT64(24) | BIT64(25) | BIT64(28) | \
1323
1323
BIT64(32) | BIT64(33) | BIT64(34) | BIT64(35) | BIT64(36) | \
1324
1324
BIT64(37) | BIT64(41))
@@ -1334,14 +1334,14 @@ static void le_read_supp_states(struct net_buf *buf, struct net_buf **evt)
1334
1334
states &= ~ST_SCA ;
1335
1335
#endif
1336
1336
#if defined(CONFIG_BT_PERIPHERAL )
1337
- states |= ST_SLA ;
1337
+ states |= ST_PER ;
1338
1338
#else
1339
- states &= ~ST_SLA ;
1339
+ states &= ~ST_PER ;
1340
1340
#endif
1341
1341
#if defined(CONFIG_BT_CENTRAL )
1342
- states |= ST_MAS ;
1342
+ states |= ST_CEN ;
1343
1343
#else
1344
- states &= ~ST_MAS ;
1344
+ states &= ~ST_CEN ;
1345
1345
#endif
1346
1346
/* All states and combinations supported except:
1347
1347
* Initiating State + Passive Scanning
@@ -3556,19 +3556,19 @@ static int controller_cmd_handle(uint16_t ocf, struct net_buf *cmd,
3556
3556
3557
3557
#if defined(CONFIG_BT_CTLR_FILTER )
3558
3558
case BT_OCF (BT_HCI_OP_LE_READ_FAL_SIZE ):
3559
- le_read_wl_size (cmd , evt );
3559
+ le_read_fal_size (cmd , evt );
3560
3560
break ;
3561
3561
3562
3562
case BT_OCF (BT_HCI_OP_LE_CLEAR_FAL ):
3563
- le_clear_wl (cmd , evt );
3563
+ le_clear_fal (cmd , evt );
3564
3564
break ;
3565
3565
3566
3566
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 );
3568
3568
break ;
3569
3569
3570
3570
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 );
3572
3572
break ;
3573
3573
#endif /* CONFIG_BT_CTLR_FILTER */
3574
3574
0 commit comments