Browse Source

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 <szymon.janc@codecoup.pl>
pull/86378/head
Szymon Janc 4 months ago committed by Benjamin Cabé
parent
commit
c20bd87d3d
  1. 4
      tests/bluetooth/tester/src/btp_gap.c

4
tests/bluetooth/tester/src/btp_gap.c

@ -368,7 +368,7 @@ static void oob_data_request(struct bt_conn *conn, @@ -368,7 +368,7 @@ static void oob_data_request(struct bt_conn *conn,
switch (oob_info->type) {
case BT_CONN_OOB_LE_SC:
{
if (!IS_ENABLED(CONFIG_BT_SMP_SC_PAIR_ONLY)) {
if (IS_ENABLED(CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY)) {
LOG_ERR("OOB LE SC not supported");
break;
}
@ -412,7 +412,7 @@ static void oob_data_request(struct bt_conn *conn, @@ -412,7 +412,7 @@ static void oob_data_request(struct bt_conn *conn,
}
case BT_CONN_OOB_LE_LEGACY:
if (!IS_ENABLED(CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY)) {
if (IS_ENABLED(CONFIG_BT_SMP_SC_PAIR_ONLY)) {
LOG_ERR("OOB LE Legacy not supported");
break;
}

Loading…
Cancel
Save