Skip to content

Commit 3905281

Browse files
Thalleynashif
authored andcommitted
test: 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 <[email protected]>
1 parent 4efe5d3 commit 3905281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bsim/bluetooth/host/adv/extended/src/ext_adv_scanner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void scan_recv(const struct bt_le_scan_recv_info *info,
8787
printk("Found advertisement. Adv-type: 0x%02x, Adv-prop: 0x%02x\n",
8888
info->adv_type, info->adv_props);
8989

90-
if (info->adv_type & BT_GAP_ADV_TYPE_EXT_ADV &&
90+
if (info->adv_type == BT_GAP_ADV_TYPE_EXT_ADV &&
9191
info->adv_props & BT_GAP_ADV_PROP_EXT_ADV) {
9292
printk("Found extended advertisement!\n");
9393
SET_FLAG(flag_ext_adv_seen);

0 commit comments

Comments
 (0)