From 334366240f3c12fe106cd2b95c57551149c93ba7 Mon Sep 17 00:00:00 2001 From: Henri Chataing Date: Fri, 26 May 2023 17:27:09 -0700 Subject: [PATCH] test_ssp: Perform role switch only when required Role switch fails with an exception if the requested role is the same as the currently held role (as per specification) --- cases/security_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cases/security_test.py b/cases/security_test.py index 105df82..4f80162 100644 --- a/cases/security_test.py +++ b/cases/security_test.py @@ -194,7 +194,7 @@ async def bredr_connect( self.ref.log.info( f"Role switch to: {'`CENTRAL`' if role == HCI_CENTRAL_ROLE else '`PERIPHERAL`'}" ) - await ref_dut_raw.switch_role(role) + await ref_dut_raw.switch_role(role) # Pairing. if pair == 'incoming_pairing':