Skip to content

Commit

Permalink
test with not empty interval interval
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenRobitzki committed Oct 4, 2023
1 parent a13b507 commit 22c6057
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion tests/link_layer/connection_parameter_update_procedure_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,4 +834,33 @@ BOOST_FIXTURE_TEST_CASE( Accepting_Connection_Parameter_Request__preferred_ancho
} );

BOOST_REQUIRE( !connection_parameter_update_cb.remote_connection_parameter_request_received );
}
}

/**
* LL/CON/PER/BV-31-C
* LL/CON/PER/BV-32-C
*/
BOOST_FIXTURE_TEST_CASE( Accepting_Connection_Parameter_Request__Interval_Range_Not_Zero, link_layer_with_async_parameters )
{
ll_control_pdu( {
0x0F, // LL_CONNECTION_PARAM_REQ
0x18, 0x00, // min interval (30ms)
0x30, 0x00, // max interval (60ms)
0x00, 0x00, // latency latency
0x48, 0x00, // connection timeout (720ms)
0x08, // prefered periodicity (10ms)
0xff, 0xff, // ReferenceConnEventCount
0xff, 0xff, // Offset0 (none)
0xff, 0xff, // Offset1 (none)
0xff, 0xff, // Offset2 (none)
0xff, 0xff, // Offset3 (none)
0xff, 0xff, // Offset4 (none)
0xff, 0xff // Offset5 (none)
} );
ll_empty_pdus(3);

run( 5 );

// in this case, the upcall to the host is required
BOOST_REQUIRE( connection_parameter_update_cb.remote_connection_parameter_request_received );
}

0 comments on commit 22c6057

Please sign in to comment.