Skip to content

Commit 5259090

Browse files
drivers: nxp: Do not use private L2 data structure.
An implementation should use a dedicated function to get openthread instance instead of using the private L2 data. Signed-off-by: Arkadiusz Balys <[email protected]>
1 parent 2c5fe37 commit 5259090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hdlc_rcp_if/hdlc_rcp_if_nxp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void hdlc_iface_init(struct net_if *iface)
5858

5959
ctx->ot_context = net_if_l2_data(iface);
6060

61-
otPlatRadioGetIeeeEui64(ctx->ot_context->instance, eui64.m8);
61+
otPlatRadioGetIeeeEui64(openthread_get_default_instance(), eui64.m8);
6262
net_if_set_link_addr(iface, eui64.m8, OT_EXT_ADDRESS_SIZE, NET_LINK_IEEE802154);
6363
}
6464

0 commit comments

Comments
 (0)