apps/bttester: fix address lookup in gap_conn_find_by_addr - #2284
apps/bttester: fix address lookup in gap_conn_find_by_addr#2284piotrnarajowski wants to merge 1 commit into
Conversation
| if ((addr.type & 2) == 0) { | ||
| addr.type |= 2; |
There was a problem hiding this comment.
Maybe instead of "2" we can use the definitions of this number? (BLE_ADDR_PUBLIC_ID if I'm not mistaken).
51a0e13 to
454f126
Compare
|
#AutoPTS run mynewt GATT/SR/GAN/BV-02-C |
|
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 |
|
AutoPTS Bot results: Successful tests (1)GATT GATT/SR/GAN/BV-02-C PASS |
sjanc
left a comment
There was a problem hiding this comment.
shouldn't those global peer_ota_addr and peer_id_addr be also removed from code?
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. Remove peer_id_addr and peer_ota_addr.
454f126 to
19d9f79
Compare
Yes, it is safe to remove them. |
|
#AutoPTS run mynewt GAP --test_case_limit 10 |
|
Scheduled PR #2284 (comment), board: nrf52, estimated start time: 12:09:55, test case count: 10, estimated duration: 0:13:45 Test cases to be runGAP/BROB/BCST/BV-01-CGAP/BROB/BCST/BV-02-C GAP/BROB/BCST/BV-03-C GAP/BROB/BCST/BV-04-C GAP/BROB/BCST/BV-05-C GAP/BROB/OBSV/BV-01-C GAP/BROB/OBSV/BV-02-C GAP/BROB/OBSV/BV-05-C GAP/BROB/OBSV/BV-06-C GAP/DISC/NONM/BV-01-C |
|
AutoPTS Bot results: Failed tests (1)GAP GAP/BROB/BCST/BV-04-C BTP ERROR - ERRATA https://github.com//issues/1029Successful tests (9)GAP GAP/BROB/BCST/BV-01-C PASSGAP GAP/BROB/BCST/BV-02-C PASS GAP GAP/BROB/BCST/BV-03-C PASS GAP GAP/BROB/BCST/BV-05-C PASS GAP GAP/BROB/OBSV/BV-01-C PASS GAP GAP/BROB/OBSV/BV-02-C PASS GAP GAP/BROB/OBSV/BV-05-C PASS GAP GAP/BROB/OBSV/BV-06-C PASS GAP GAP/DISC/NONM/BV-01-C PASS |
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.