Diff between 60d28644cab85f2b75cd760f916049387ce8a248 and 67369325d2248c127d734950403aa11a3b4156d2

Changed Files

File Additions Deletions Status
tools/smp-tester.c +16 -0 modified

Full Patch

diff --git a/tools/smp-tester.c b/tools/smp-tester.c
index b8a9d30..40ede72 100644
--- a/tools/smp-tester.c
+++ b/tools/smp-tester.c
@@ -488,6 +488,19 @@ static const struct smp_data smp_server_nval_req_2_test = {
 	.req_count = G_N_ELEMENTS(srv_nval_req_1),
 };
 
+static const uint8_t smp_nval_req_3[] = { 0x01, 0xff };
+static const uint8_t smp_nval_req_3_rsp[] = { 0x05, 0x08 };
+
+static const struct smp_req_rsp srv_nval_req_2[] = {
+	{ smp_nval_req_2, sizeof(smp_nval_req_3),
+			smp_nval_req_3_rsp, sizeof(smp_nval_req_3_rsp) },
+};
+
+static const struct smp_data smp_server_nval_req_3_test = {
+	.req = srv_nval_req_2,
+	.req_count = G_N_ELEMENTS(srv_nval_req_2),
+};
+
 static const uint8_t smp_basic_req_1[] = {	0x01,	/* Pairing Request */
 						0x03,	/* NoInputNoOutput */
 						0x00,	/* OOB Flag */
@@ -874,6 +887,9 @@ int main(int argc, char *argv[])
 	test_smp("SMP Server - Invalid Request 2",
 					&smp_server_nval_req_2_test,
 					setup_powered_server, test_server);
+	test_smp("SMP Server - Invalid Request 3",
+					&smp_server_nval_req_3_test,
+					setup_powered_server, test_server);
 
 	test_smp("SMP Client - Basic Request 1",
 					&smp_client_basic_req_1_test,