auto-pts
auto-pts copied to clipboard
Problem with PTS address saving
Sometimes it's needed to save PTS address before it's resolved, for IUT to use it to identify connection. This was found in GATT/SR/GAN/BV-02-C
, and regression is caused by https://github.com/intel/auto-pts/commit/df2c2710cd9ae0239dae1a6ba8983d714bf27467: set_pts_addr()
call was removed from gap_connected_ev_
Maybe we should save flag if address is resolved:LeAddress = namedtuple('LeAddress', 'addr_type addr', 'resolved')
, then by default:
PTS_BD_ADDR = LeAddress(addr_type=0, addr='000000000000', resolved=False). And add flag to set_pts_addr
, which may default to False and be True in gap_identity_resolved_ev_
(and same for LT2). That will allow to check if we are using resolved address when it matters