Skip to content

apps/bttester: fix address lookup in gap_conn_find_by_addr - #2284

Open
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:find_by_addr_fix
Open

apps/bttester: fix address lookup in gap_conn_find_by_addr#2284
piotrnarajowski wants to merge 1 commit into
apache:masterfrom
piotrnarajowski:find_by_addr_fix

Conversation

@piotrnarajowski

Copy link
Copy Markdown
Contributor

gap_conn_find_by_addr lookup relied on the global peer_id_addr variable to perform address matching. In test cases with multiple concurrent connections, peer_id_addr was overwritten by the most recent event (e.g. connected, identity resolved) causing comparison with address command parameter in BTP cmds to fail.

Comment thread apps/bttester/src/btp_gap.c Outdated
Comment on lines +104 to +105
if ((addr.type & 2) == 0) {
addr.type |= 2;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of "2" we can use the definitions of this number? (BLE_ADDR_PUBLIC_ID if I'm not mistaken).

gap_conn_find_by_addr lookup relied on the global peer_id_addr
variable to perform address matching. In test cases with
multiple concurrent connections, peer_id_addr was overwritten
by the most recent event (e.g. connected, identity resolved)
causing comparison with address command parameter in BTP cmds
to fail.
@piotrnarajowski

Copy link
Copy Markdown
Contributor Author

#AutoPTS run mynewt GATT/SR/GAN/BV-02-C

@codecoup-tester

Copy link
Copy Markdown

Scheduled PR #2284 (comment), board: nrf52, estimated start time: 09:13:38, test case count: 1, estimated duration: 0:11:14

Test cases to be runGATT/SR/GAN/BV-02-C

@codecoup-tester

Copy link
Copy Markdown

AutoPTS Bot results:
No failed test found.

Successful tests (1)GATT GATT/SR/GAN/BV-02-C PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants