[PATCH 6/8] bssgp: Reset the BVC and NSVC state in the destroy routine

Holger Freyther hfreyther at sysmocom.de
Sat Jul 27 20:20:52 UTC 2013


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

This might explain the issue of the BVCI > 1 not being unblocked
as the internal state has not been re-set when destroying the bssgp.
---
 src/gprs_bssgp_pcu.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index edb088c..2e93a02 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -671,6 +671,10 @@ void gprs_bssgp_destroy_or_exit(void)
 	the_pcu.bctx = NULL;
 
 	/* FIXME: blocking... */
+	the_pcu.nsvc_unblocked = 0;
+	the_pcu.bvc_sig_reset = 0;
+	the_pcu.bvc_reset = 0;
+	the_pcu.bvc_unblocked = 0;	
 
 	gprs_ns_destroy(bssgp_nsi);
 	bssgp_nsi = NULL;
-- 
1.8.3.2





More information about the osmocom-net-gprs mailing list