Skip to content

Commit 5b8badb

Browse files
PavelVPVjukkar
authored andcommitted
[nrf fromtree] bluetooth: mesh: proxy_msg: Fix extracting role from k_work
Fix extracting role from k_work. Hot fix for #78914 Signed-off-by: Pavel Vasilyev <[email protected]> (cherry picked from commit f5409bd) Signed-off-by: Håvard Reierstad <[email protected]> (cherry picked from commit 52c7aa8)
1 parent eab2aea commit 5b8badb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

subsys/bluetooth/mesh/proxy_msg.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,9 @@ int bt_mesh_proxy_relay_send(struct bt_conn *conn, struct bt_mesh_adv *adv)
252252

253253
static void proxy_msg_send_pending(struct k_work *work)
254254
{
255-
struct bt_mesh_proxy_role *role;
256-
struct k_work_delayable *dwork = k_work_delayable_from_work(work);
255+
struct bt_mesh_proxy_role *role = CONTAINER_OF(work, struct bt_mesh_proxy_role, work);
257256
struct bt_mesh_adv *adv;
258257

259-
role = CONTAINER_OF(dwork, struct bt_mesh_proxy_role, sar_timer);
260258
if (!role->conn) {
261259
return;
262260
}

0 commit comments

Comments
 (0)