diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-07-19 13:53:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-07-19 13:53:30 +0200 |
commit | f122d4cd364a6ba0c3d73ff017c3cc598ebf10f1 (patch) | |
tree | 69f0059dfb82f276508caecaa01b842a3536d69d /src/host/virt_phy/src/l1ctl_sap.c | |
parent | c0fba7a298fc8c7fada32b24f71aa27e0ec90cd6 (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.c | 6 |
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. * |