Bluetooth: host: Update L2CAP to use the new delayable work API

Update L2CAP to use the new delayable work API for the signaling
RTX host timer.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-04-12 13:03:22 +02:00 committed by Anas Nashif
commit afc29f3a1c
3 changed files with 46 additions and 18 deletions

View file

@ -98,7 +98,8 @@ struct bt_l2cap_chan {
sys_snode_t node;
bt_l2cap_chan_destroy_t destroy;
/* Response Timeout eXpired (RTX) timer */
struct k_delayed_work rtx_work;
struct k_work_delayable rtx_work;
struct k_work_sync rtx_sync;
ATOMIC_DEFINE(status, BT_L2CAP_NUM_STATUS);
#if defined(CONFIG_BT_L2CAP_DYNAMIC_CHANNEL)