@@ -1328,14 +1328,14 @@ void notify_le_param_updated(struct bt_conn *conn)
1328
1328
struct bt_conn_cb * cb ;
1329
1329
1330
1330
/* If new connection parameters meet requirement of pending
1331
- * parameters don't send slave conn param request anymore on timeout
1331
+ * parameters don't send peripheral conn param request anymore on timeout
1332
1332
*/
1333
- if (atomic_test_bit (conn -> flags , BT_CONN_SLAVE_PARAM_SET ) &&
1333
+ if (atomic_test_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_SET ) &&
1334
1334
conn -> le .interval >= conn -> le .interval_min &&
1335
1335
conn -> le .interval <= conn -> le .interval_max &&
1336
1336
conn -> le .latency == conn -> le .pending_latency &&
1337
1337
conn -> le .timeout == conn -> le .pending_timeout ) {
1338
- atomic_clear_bit (conn -> flags , BT_CONN_SLAVE_PARAM_SET );
1338
+ atomic_clear_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_SET );
1339
1339
}
1340
1340
1341
1341
for (cb = callback_list ; cb ; cb = cb -> _next ) {
@@ -1452,11 +1452,11 @@ static int send_conn_le_param_update(struct bt_conn *conn,
1452
1452
}
1453
1453
1454
1454
/* Use LE connection parameter request if both local and remote support
1455
- * it; or if local role is master then use LE connection update.
1455
+ * it; or if local role is central then use LE connection update.
1456
1456
*/
1457
1457
if ((BT_FEAT_LE_CONN_PARAM_REQ_PROC (bt_dev .le .features ) &&
1458
1458
BT_FEAT_LE_CONN_PARAM_REQ_PROC (conn -> le .features ) &&
1459
- !atomic_test_bit (conn -> flags , BT_CONN_SLAVE_PARAM_L2CAP )) ||
1459
+ !atomic_test_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_L2CAP )) ||
1460
1460
(conn -> role == BT_HCI_ROLE_CENTRAL )) {
1461
1461
int rc ;
1462
1462
@@ -1471,7 +1471,7 @@ static int send_conn_le_param_update(struct bt_conn *conn,
1471
1471
return rc ;
1472
1472
}
1473
1473
1474
- /* If remote master does not support LL Connection Parameters Request
1474
+ /* If remote central does not support LL Connection Parameters Request
1475
1475
* Procedure
1476
1476
*/
1477
1477
return bt_l2cap_update_conn_param (conn , param );
@@ -1572,7 +1572,7 @@ static void deferred_work(struct k_work *work)
1572
1572
1573
1573
/* if application set own params use those, otherwise use defaults. */
1574
1574
if (atomic_test_and_clear_bit (conn -> flags ,
1575
- BT_CONN_SLAVE_PARAM_SET )) {
1575
+ BT_CONN_PERIPHERAL_PARAM_SET )) {
1576
1576
param = BT_LE_CONN_PARAM (conn -> le .interval_min ,
1577
1577
conn -> le .interval_max ,
1578
1578
conn -> le .pending_latency ,
@@ -1583,13 +1583,13 @@ static void deferred_work(struct k_work *work)
1583
1583
param = BT_LE_CONN_PARAM (
1584
1584
CONFIG_BT_PERIPHERAL_PREF_MIN_INT ,
1585
1585
CONFIG_BT_PERIPHERAL_PREF_MAX_INT ,
1586
- CONFIG_BT_PERIPHERAL_PREF_SLAVE_LATENCY ,
1586
+ CONFIG_BT_PERIPHERAL_PREF_LATENCY ,
1587
1587
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT );
1588
1588
send_conn_le_param_update (conn , param );
1589
1589
#endif
1590
1590
}
1591
1591
1592
- atomic_set_bit (conn -> flags , BT_CONN_SLAVE_PARAM_UPDATE );
1592
+ atomic_set_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_UPDATE );
1593
1593
}
1594
1594
1595
1595
static struct bt_conn * acl_conn_new (void )
@@ -2335,7 +2335,7 @@ int bt_conn_le_param_update(struct bt_conn *conn,
2335
2335
conn -> le .interval <= param -> interval_max &&
2336
2336
conn -> le .latency == param -> latency &&
2337
2337
conn -> le .timeout == param -> timeout ) {
2338
- atomic_clear_bit (conn -> flags , BT_CONN_SLAVE_PARAM_SET );
2338
+ atomic_clear_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_SET );
2339
2339
return - EALREADY ;
2340
2340
}
2341
2341
@@ -2345,8 +2345,8 @@ int bt_conn_le_param_update(struct bt_conn *conn,
2345
2345
}
2346
2346
2347
2347
if (IS_ENABLED (CONFIG_BT_PERIPHERAL )) {
2348
- /* if slave conn param update timer expired just send request */
2349
- if (atomic_test_bit (conn -> flags , BT_CONN_SLAVE_PARAM_UPDATE )) {
2348
+ /* if peripheral conn param update timer expired just send request */
2349
+ if (atomic_test_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_UPDATE )) {
2350
2350
return send_conn_le_param_update (conn , param );
2351
2351
}
2352
2352
@@ -2355,7 +2355,7 @@ int bt_conn_le_param_update(struct bt_conn *conn,
2355
2355
conn -> le .interval_max = param -> interval_max ;
2356
2356
conn -> le .pending_latency = param -> latency ;
2357
2357
conn -> le .pending_timeout = param -> timeout ;
2358
- atomic_set_bit (conn -> flags , BT_CONN_SLAVE_PARAM_SET );
2358
+ atomic_set_bit (conn -> flags , BT_CONN_PERIPHERAL_PARAM_SET );
2359
2359
}
2360
2360
2361
2361
return 0 ;
@@ -2509,7 +2509,7 @@ int bt_conn_le_create_auto(const struct bt_conn_le_create_param *create_param,
2509
2509
2510
2510
err = bt_le_create_conn (conn );
2511
2511
if (err ) {
2512
- BT_ERR ("Failed to start whitelist scan" );
2512
+ BT_ERR ("Failed to start filtered scan" );
2513
2513
conn -> err = 0 ;
2514
2514
bt_conn_set_state (conn , BT_CONN_DISCONNECTED );
2515
2515
bt_conn_unref (conn );
0 commit comments