net: ppp: Implement missing ppp mgmt functions
The functions ppp_mgmt_raise_carrier_on/off_event() were not implemented, but already documeted in the header net/ppp.h Fixes #23420 Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
This commit is contained in:
parent
802552414c
commit
a401aefa0a
2 changed files with 19 additions and 0 deletions
|
@ -20,6 +20,8 @@ zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP
|
||||||
|
|
||||||
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS_PPP ppp_stats.c)
|
zephyr_library_sources_ifdef(CONFIG_NET_STATISTICS_PPP ppp_stats.c)
|
||||||
|
|
||||||
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP_MGMT ppp_mgmt.c)
|
||||||
|
|
||||||
if(CONFIG_NET_IPV4)
|
if(CONFIG_NET_IPV4)
|
||||||
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipcp.c)
|
zephyr_library_sources_ifdef(CONFIG_NET_L2_PPP ipcp.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
17
subsys/net/l2/ppp/ppp_mgmt.c
Normal file
17
subsys/net/l2/ppp/ppp_mgmt.c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Lemonbeat GmbH
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <net/ppp.h>
|
||||||
|
|
||||||
|
void ppp_mgmt_raise_carrier_on_event(struct net_if *iface)
|
||||||
|
{
|
||||||
|
net_mgmt_event_notify(NET_EVENT_PPP_CARRIER_ON, iface);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ppp_mgmt_raise_carrier_off_event(struct net_if *iface)
|
||||||
|
{
|
||||||
|
net_mgmt_event_notify(NET_EVENT_PPP_CARRIER_OFF, iface);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue