@@ -429,7 +429,7 @@ static int hfp_ag_send_data(struct bt_hfp_ag *ag, bt_hfp_ag_tx_cb_t cb, void *us
429
429
hfp_ag_unlock (ag );
430
430
431
431
/* Always active tx work */
432
- k_work_reschedule (& ag -> tx_work , K_NO_WAIT );
432
+ bt_work_reschedule (& ag -> tx_work , K_NO_WAIT );
433
433
434
434
return 0 ;
435
435
@@ -724,20 +724,20 @@ static void bt_hfp_ag_set_call_state(struct bt_hfp_ag_call *call, bt_hfp_call_st
724
724
free_call (call );
725
725
break ;
726
726
case BT_HFP_CALL_OUTGOING :
727
- k_work_reschedule (& call -> deferred_work ,
727
+ bt_work_reschedule (& call -> deferred_work ,
728
728
K_SECONDS (CONFIG_BT_HFP_AG_OUTGOING_TIMEOUT ));
729
729
break ;
730
730
case BT_HFP_CALL_INCOMING :
731
- k_work_reschedule (& call -> deferred_work ,
731
+ bt_work_reschedule (& call -> deferred_work ,
732
732
K_SECONDS (CONFIG_BT_HFP_AG_INCOMING_TIMEOUT ));
733
733
break ;
734
734
case BT_HFP_CALL_ALERTING :
735
735
if (!atomic_test_bit (call -> flags , BT_HFP_AG_CALL_INCOMING_3WAY )) {
736
- k_work_reschedule (& call -> ringing_work , K_NO_WAIT );
736
+ bt_work_reschedule (& call -> ringing_work , K_NO_WAIT );
737
737
} else {
738
738
k_work_cancel_delayable (& call -> ringing_work );
739
739
}
740
- k_work_reschedule (& call -> deferred_work ,
740
+ bt_work_reschedule (& call -> deferred_work ,
741
741
K_SECONDS (CONFIG_BT_HFP_AG_ALERTING_TIMEOUT ));
742
742
break ;
743
743
case BT_HFP_CALL_ACTIVE :
@@ -872,7 +872,7 @@ static void bt_ag_tx_work(struct k_work *work)
872
872
LOG_WRN ("tx ongoing flag is not set" );
873
873
}
874
874
/* Due to the work is failed, restart the tx work */
875
- k_work_reschedule (& ag -> tx_work , K_NO_WAIT );
875
+ bt_work_reschedule (& ag -> tx_work , K_NO_WAIT );
876
876
}
877
877
}
878
878
@@ -1162,7 +1162,7 @@ static int bt_hfp_ag_cind_handler(struct bt_hfp_ag *ag, struct net_buf *buf)
1162
1162
} else {
1163
1163
err = - EINPROGRESS ;
1164
1164
atomic_set_bit (ag -> flags , BT_HGP_AG_ONGOING_CALLS );
1165
- k_work_reschedule (& ag -> ongoing_call_work ,
1165
+ bt_work_reschedule (& ag -> ongoing_call_work ,
1166
1166
K_MSEC (CONFIG_BT_HFP_AG_GET_ONGOING_CALL_TIMEOUT ));
1167
1167
}
1168
1168
}
@@ -3595,7 +3595,7 @@ static void hfp_ag_sent(struct bt_rfcomm_dlc *dlc, int err)
3595
3595
LOG_DBG ("Completed pending tx %p" , tx );
3596
3596
3597
3597
/* Restart the tx work */
3598
- k_work_reschedule (& ag -> tx_work , K_NO_WAIT );
3598
+ bt_work_reschedule (& ag -> tx_work , K_NO_WAIT );
3599
3599
3600
3600
tx -> err = err ;
3601
3601
k_fifo_put (& ag_tx_notify , tx );
@@ -3739,7 +3739,7 @@ static void bt_ag_ringing_work_cb(struct bt_hfp_ag *ag, void *user_data)
3739
3739
return ;
3740
3740
}
3741
3741
3742
- k_work_reschedule (& call -> ringing_work ,
3742
+ bt_work_reschedule (& call -> ringing_work ,
3743
3743
K_SECONDS (CONFIG_BT_HFP_AG_RING_NOTIFY_INTERVAL ));
3744
3744
3745
3745
err = hfp_ag_send_data (ag , NULL , NULL , "\r\nRING\r\n" );
0 commit comments