@@ -438,29 +438,29 @@ static void l2cap_br_start_timer(struct bt_l2cap_br_chan *br_chan, enum l2cap_br
438
438
if (type == BT_L2CAP_BR_TIMER_RET ) {
439
439
if (!atomic_test_and_set_bit (br_chan -> flags , L2CAP_FLAG_RET_TIMER )) {
440
440
k_work_cancel_delayable (& br_chan -> monitor_work );
441
- k_work_schedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
441
+ bt_work_schedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
442
442
LOG_DBG ("Start ret timer" );
443
443
} else {
444
444
if (!restart ) {
445
445
return ;
446
446
}
447
447
448
- k_work_reschedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
448
+ bt_work_reschedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
449
449
LOG_DBG ("Restart ret timer" );
450
450
}
451
451
} else {
452
452
if (atomic_test_and_clear_bit (br_chan -> flags , L2CAP_FLAG_RET_TIMER )) {
453
453
k_work_cancel_delayable (& br_chan -> ret_work );
454
- k_work_schedule (& br_chan -> monitor_work ,
455
- K_MSEC (br_chan -> tx .monitor_timeout ));
454
+ bt_work_schedule (& br_chan -> monitor_work ,
455
+ K_MSEC (br_chan -> tx .monitor_timeout ));
456
456
LOG_DBG ("Start monitor timer" );
457
457
} else {
458
458
if (!restart ) {
459
459
return ;
460
460
}
461
461
462
- k_work_reschedule (& br_chan -> monitor_work ,
463
- K_MSEC (br_chan -> tx .monitor_timeout ));
462
+ bt_work_reschedule (& br_chan -> monitor_work ,
463
+ K_MSEC (br_chan -> tx .monitor_timeout ));
464
464
LOG_DBG ("Restart monitor timer" );
465
465
}
466
466
}
@@ -736,7 +736,7 @@ static void l2cap_br_ret_timeout(struct k_work *work)
736
736
737
737
/* Restart the timer */
738
738
if (atomic_test_bit (br_chan -> flags , L2CAP_FLAG_RET_TIMER )) {
739
- k_work_schedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
739
+ bt_work_schedule (& br_chan -> ret_work , K_MSEC (br_chan -> tx .ret_timeout ));
740
740
}
741
741
742
742
LOG_DBG ("chan %p retransmission timeout" , br_chan );
@@ -805,7 +805,7 @@ static void l2cap_br_monitor_timeout(struct k_work *work)
805
805
806
806
/* Restart the timer */
807
807
if (!atomic_test_bit (br_chan -> flags , L2CAP_FLAG_RET_TIMER )) {
808
- k_work_schedule (& br_chan -> monitor_work , K_MSEC (br_chan -> tx .monitor_timeout ));
808
+ bt_work_schedule (& br_chan -> monitor_work , K_MSEC (br_chan -> tx .monitor_timeout ));
809
809
}
810
810
811
811
LOG_DBG ("chan %p monitor timeout" , br_chan );
@@ -962,7 +962,7 @@ static void l2cap_br_chan_send_req(struct bt_l2cap_br_chan *chan,
962
962
* final expiration, when the response is received, or the physical
963
963
* link is lost.
964
964
*/
965
- k_work_reschedule (& chan -> rtx_work , timeout );
965
+ bt_work_reschedule (& chan -> rtx_work , timeout );
966
966
}
967
967
968
968
#if defined(CONFIG_BT_L2CAP_RET_FC )
@@ -4805,7 +4805,7 @@ static void l2cap_br_conn_rsp(struct bt_l2cap_br *l2cap, uint8_t ident, struct n
4805
4805
break ;
4806
4806
case BT_L2CAP_BR_PENDING :
4807
4807
br_chan -> ident = ident ;
4808
- k_work_reschedule (& br_chan -> rtx_work , L2CAP_BR_CONN_TIMEOUT );
4808
+ bt_work_reschedule (& br_chan -> rtx_work , L2CAP_BR_CONN_TIMEOUT );
4809
4809
break ;
4810
4810
default :
4811
4811
l2cap_br_chan_cleanup (chan );
0 commit comments