Bluetooth: controller: Rework procedure pause logic
llcp_lr_pause()/llcp_rr_pause() only pauses currently pending procedures in their respective request machines, any future initiations are not paused, thus they are allowed to run, when the opposite was expected. Change the procedure pause logic into a global pause on the request machines them self, this is essence what the per-procedure pause flag was trying to achieve. Add new query function llcp_?r_ispaused() to not expose the logic behind the pause functionality. Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
This commit is contained in:
parent
79092c3cf4
commit
fefa83d5ed
10 changed files with 70 additions and 56 deletions
|
@ -56,6 +56,7 @@ void test_api_init(void)
|
|||
extern void test_int_mem_proc_ctx(void);
|
||||
extern void test_int_mem_tx(void);
|
||||
extern void test_int_create_proc(void);
|
||||
extern void test_int_llcp_init(void);
|
||||
extern void test_int_local_pending_requests(void);
|
||||
extern void test_int_remote_pending_requests(void);
|
||||
|
||||
|
@ -197,8 +198,11 @@ void test_int_disconnect_rem(void)
|
|||
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(internal, ztest_unit_test(test_int_mem_proc_ctx),
|
||||
ztest_unit_test(test_int_mem_tx), ztest_unit_test(test_int_create_proc),
|
||||
ztest_test_suite(internal,
|
||||
ztest_unit_test(test_int_mem_proc_ctx),
|
||||
ztest_unit_test(test_int_mem_tx),
|
||||
ztest_unit_test(test_int_create_proc),
|
||||
ztest_unit_test(test_int_llcp_init),
|
||||
ztest_unit_test(test_int_local_pending_requests),
|
||||
ztest_unit_test(test_int_remote_pending_requests),
|
||||
ztest_unit_test(test_int_disconnect_loc),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue