Skip to content

Commit 0ac54b6

Browse files
sjancalexsven
authored andcommitted
[nrf fromtree] tests: bluetooth: tester: Fix invalid checks in oob_data_request
CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY disables all but legacy OOB pairing (including LE SC) and is not intended for enabling/disabling support for legacy OOB pairing. bt_le_oob_set_legacy_tk() depends on CONFIG_BT_SMP_SC_PAIR_ONLY so just use same check here. For BT_CONN_OOB_LE_SC only supported way to disable LE SC OOB is to force BT_SMP_OOB_LEGACY_PAIR_ONLY which disables all pairing except legacy OOB support. Signed-off-by: Szymon Janc <[email protected]> (cherry picked from commit c20bd87)
1 parent b4d8497 commit 0ac54b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/bluetooth/tester/src/btp_gap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ static void oob_data_request(struct bt_conn *conn,
368368
switch (oob_info->type) {
369369
case BT_CONN_OOB_LE_SC:
370370
{
371-
if (!IS_ENABLED(CONFIG_BT_SMP_SC_PAIR_ONLY)) {
371+
if (IS_ENABLED(CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY)) {
372372
LOG_ERR("OOB LE SC not supported");
373373
break;
374374
}
@@ -412,7 +412,7 @@ static void oob_data_request(struct bt_conn *conn,
412412
}
413413

414414
case BT_CONN_OOB_LE_LEGACY:
415-
if (!IS_ENABLED(CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY)) {
415+
if (IS_ENABLED(CONFIG_BT_SMP_SC_PAIR_ONLY)) {
416416
LOG_ERR("OOB LE Legacy not supported");
417417
break;
418418
}

0 commit comments

Comments
 (0)