Skip to content

Commit 471a185

Browse files
committed
Revert "[nrf fromlist] openthread: avoid warning when CONFIG_NET_MGMT_EVENT=n"
This reverts commit 3dfd0b5. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
1 parent 2cbc6e8 commit 471a185

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

subsys/net/l2/openthread/openthread.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,13 @@ static k_tid_t ot_tid;
100100
static struct net_linkaddr *ll_addr;
101101
static otStateChangedCallback state_changed_cb;
102102

103+
static struct net_mgmt_event_callback ip6_addr_cb;
104+
103105
k_tid_t openthread_thread_id_get(void)
104106
{
105107
return ot_tid;
106108
}
107109

108-
#ifdef CONFIG_NET_MGMT_EVENT
109-
static struct net_mgmt_event_callback ip6_addr_cb;
110-
111110
static void ipv6_addr_event_handler(struct net_mgmt_event_callback *cb,
112111
uint32_t mgmt_event, struct net_if *iface)
113112
{
@@ -123,7 +122,6 @@ static void ipv6_addr_event_handler(struct net_mgmt_event_callback *cb,
123122
add_ipv6_maddr_to_ot(ot_context);
124123
}
125124
}
126-
#endif
127125

128126
void otPlatRadioGetIeeeEui64(otInstance *instance, uint8_t *ieee_eui64)
129127
{

0 commit comments

Comments
 (0)