summaryrefslogtreecommitdiffstats
path: root/src/host/virt_phy/src/l1ctl_sap.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-19 13:53:30 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-19 13:53:30 +0200
commitf122d4cd364a6ba0c3d73ff017c3cc598ebf10f1 (patch)
tree69f0059dfb82f276508caecaa01b842a3536d69d /src/host/virt_phy/src/l1ctl_sap.c
parentc0fba7a298fc8c7fada32b24f71aa27e0ec90cd6 (diff)
VIRT-PHY: Properly destroy l1_model_ms after disconnect
If a MS disconnects, we need to clean up all related state Change-Id: Ib7adef61150b5a4338483019e4dd75d7279d1f5d
Diffstat (limited to 'src/host/virt_phy/src/l1ctl_sap.c')
-rw-r--r--src/host/virt_phy/src/l1ctl_sap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/virt_phy/src/l1ctl_sap.c b/src/host/virt_phy/src/l1ctl_sap.c
index c7c8e3e0..d4b33f12 100644
--- a/src/host/virt_phy/src/l1ctl_sap.c
+++ b/src/host/virt_phy/src/l1ctl_sap.c
@@ -58,6 +58,12 @@ void l1ctl_sap_init(struct l1_model_ms *model)
prim_pm_init(model);
}
+void l1ctl_sap_exit(struct l1_model_ms *model)
+{
+ virt_l1_sched_stop(model);
+ prim_pm_exit(model);
+}
+
/**
* @brief L1CTL handler called for received messages from L23.
*