Loading android/pandora/mmi2grpc/mmi2grpc/gap.py +2 −2 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ class GAPProxy(ProfileProxy): if self.counter == 0: self.counter += 1 self.security_storage.DeleteBond(public=pts_addr) self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) return "OK" Loading @@ -158,7 +158,7 @@ class GAPProxy(ProfileProxy): scans.cancel() break self.connection = self.host.ConnectLE(public=address).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=address).connection if test in {"GAP/BOND/BON/BV-04-C"}: self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) Loading android/pandora/mmi2grpc/mmi2grpc/gatt.py +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class GATTProxy(ProfileProxy): PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection if test in NEEDS_CACHE_CLEARED: self.gatt.ClearCache(connection=self.connection) return "OK" Loading android/pandora/mmi2grpc/mmi2grpc/hogp.py +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from mmi2grpc._helpers import assert_description, match_description from mmi2grpc._proxy import ProfileProxy from pandora_experimental.host_grpc import Host from pandora_experimental.host_pb2 import OwnAddressType from pandora_experimental.security_grpc import Security from pandora_experimental.security_pb2 import LESecurityLevel from pandora_experimental.gatt_grpc import GATT Loading Loading @@ -39,7 +40,7 @@ class HOGPProxy(ProfileProxy): to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection self.pairing_stream = self.security.OnPairing() def secure(): self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) Loading android/pandora/mmi2grpc/mmi2grpc/l2cap.py +1 −1 Original line number Diff line number Diff line Loading @@ -359,7 +359,7 @@ class L2CAPProxy(ProfileProxy): """ Initiate or create LE ACL connection to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection return "OK" @assert_description Loading android/pandora/mmi2grpc/mmi2grpc/sm.py +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class SMProxy(ProfileProxy): """ Initiate an connection from the IUT to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection return "OK" @assert_description Loading Loading
android/pandora/mmi2grpc/mmi2grpc/gap.py +2 −2 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ class GAPProxy(ProfileProxy): if self.counter == 0: self.counter += 1 self.security_storage.DeleteBond(public=pts_addr) self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) return "OK" Loading @@ -158,7 +158,7 @@ class GAPProxy(ProfileProxy): scans.cancel() break self.connection = self.host.ConnectLE(public=address).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=address).connection if test in {"GAP/BOND/BON/BV-04-C"}: self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) Loading
android/pandora/mmi2grpc/mmi2grpc/gatt.py +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ class GATTProxy(ProfileProxy): PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection if test in NEEDS_CACHE_CLEARED: self.gatt.ClearCache(connection=self.connection) return "OK" Loading
android/pandora/mmi2grpc/mmi2grpc/hogp.py +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ from mmi2grpc._helpers import assert_description, match_description from mmi2grpc._proxy import ProfileProxy from pandora_experimental.host_grpc import Host from pandora_experimental.host_pb2 import OwnAddressType from pandora_experimental.security_grpc import Security from pandora_experimental.security_pb2 import LESecurityLevel from pandora_experimental.gatt_grpc import GATT Loading Loading @@ -39,7 +40,7 @@ class HOGPProxy(ProfileProxy): to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection self.pairing_stream = self.security.OnPairing() def secure(): self.security.Secure(connection=self.connection, le=LESecurityLevel.LE_LEVEL3) Loading
android/pandora/mmi2grpc/mmi2grpc/l2cap.py +1 −1 Original line number Diff line number Diff line Loading @@ -359,7 +359,7 @@ class L2CAPProxy(ProfileProxy): """ Initiate or create LE ACL connection to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection return "OK" @assert_description Loading
android/pandora/mmi2grpc/mmi2grpc/sm.py +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class SMProxy(ProfileProxy): """ Initiate an connection from the IUT to the PTS. """ self.connection = self.host.ConnectLE(public=pts_addr).connection self.connection = self.host.ConnectLE(own_address_type=OwnAddressType.RANDOM, public=pts_addr).connection return "OK" @assert_description Loading