samples: Bluetooth: ext_adv_scanner: Fix bad use of adv_type

The adv_type is not a bitfield but was used as such.
Changed to do a proper comparison.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-09-20 17:07:45 +02:00 committed by Anas Nashif
parent 4f152b2a81
commit 4efe5d3210
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ BT_CONN_CB_DEFINE(conn_cb) = {
static void scan_recv(const struct bt_le_scan_recv_info *info, struct net_buf_simple *buf)
{
if (info->adv_type & BT_GAP_ADV_TYPE_EXT_ADV &&
if (info->adv_type == BT_GAP_ADV_TYPE_EXT_ADV &&
info->adv_props & BT_GAP_ADV_PROP_EXT_ADV &&
info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) {
/* Attempt connection request for device with extended advertisements */