Diff between c6fa51ccb4e16629e16e6f9fe7fe862aa9a12c8c and ec0e3b1784e039ecb5b81638569c17cdb8e92501

Changed Files

File Additions Deletions Status
unit/test-gatt.c +4 -0 modified

Full Patch

diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index bb6a270..9a9fa60 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -630,6 +630,10 @@ static void client_ready_cb(bool success, uint8_t att_ecode, void *user_data)
 	if (context->data->step) {
 		const struct test_step *step = context->data->step;
 
+		/* Auto elevate security for test that don't expect error */
+		if (!step->expected_att_ecode)
+			bt_att_set_security(context->att, BT_ATT_SECURITY_AUTO);
+
 		step->func(context);
 		return;
 	}