Skip to content

Commit

Permalink
Bluetooth: tests: Switch to default BT_RECV_CONTEXT
Browse files Browse the repository at this point in the history
The tests `hci_prop_evt` and `host_long_adv_recv` used `bt_recv_prio`,
and so relied on an extra config option `CONFIG_BT_RECV_BLOCKING`. This
patch replaces the use of `bt_recv_prio` with `bt_recv` and restores the
use of the default option for `BT_RECV_CONTEXT`.

Signed-off-by: Aleksander Wasaznik <[email protected]>
  • Loading branch information
alwa-nordic committed Feb 6, 2024
1 parent f6adaf5 commit ba59677
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/bluetooth/hci_prop_evt/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ CONFIG_ZTEST=y
CONFIG_BT=y
CONFIG_BT_CTLR=n
CONFIG_BT_NO_DRIVER=y
CONFIG_BT_RECV_BLOCKING=y

CONFIG_BT_HCI_VS_EVT_USER=y

Expand Down
2 changes: 1 addition & 1 deletion tests/bluetooth/hci_prop_evt/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int cmd_handle(struct net_buf *cmd,
}

if (evt) {
bt_recv_prio(evt);
bt_recv(evt);
}

return err;
Expand Down
1 change: 0 additions & 1 deletion tests/bluetooth/host_long_adv_recv/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_BT_HCI=n
CONFIG_BT_HCI_RAW=n
CONFIG_BT_OBSERVER=y
CONFIG_BT_NO_DRIVER=y
CONFIG_BT_RECV_BLOCKING=y
CONFIG_BT_EXT_ADV=y

CONFIG_LOG=y
Expand Down
2 changes: 1 addition & 1 deletion tests/bluetooth/host_long_adv_recv/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int cmd_handle(struct net_buf *cmd, const struct cmd_handler *handlers, s
}

if (evt) {
bt_recv_prio(evt);
bt_recv(evt);
}

return err;
Expand Down

0 comments on commit ba59677

Please sign in to comment.