Skip to content

Commit 163526b

Browse files
adigiekartben
authored andcommitted
drivers: Do not use deprecated OpenThread instance pointer.
Implementation should use a dedicated function to get OpenThread instance instead of using the deprecated pointer from context. Signed-off-by: Adrian Gielniewski <[email protected]>
1 parent d9a916d commit 163526b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hdlc_rcp_if/hdlc_rcp_if_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void hdlc_iface_init(struct net_if *iface)
151151
ieee802154_init(iface);
152152
ctx->ot_context = net_if_l2_data(iface);
153153

154-
otPlatRadioGetIeeeEui64(ctx->ot_context->instance, eui64.m8);
154+
otPlatRadioGetIeeeEui64(openthread_get_default_instance(), eui64.m8);
155155
net_if_set_link_addr(iface, eui64.m8, OT_EXT_ADDRESS_SIZE,
156156
NET_LINK_IEEE802154);
157157
}

0 commit comments

Comments
 (0)