diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-01-16 16:50:41 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-01-20 08:27:03 +0100 |
commit | ead0529e076a1bd02b170796dc3895dabde7d2e8 (patch) | |
tree | 3ac421c43075a43ea4de9b7a260f7c63cd713c73 /openbsc/tests/mgcp/mgcp_test.c | |
parent | e35fd1369762b4b59e2673275836869df379f2b6 (diff) |
mgcp/test: Don't reset conn_mode between messages
Currently, the conn_mode field is reset after it has been checked.
This patch disables this behaviour and only adds a mark (bit) to
detect modifications.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/mgcp/mgcp_test.c')
-rw-r--r-- | openbsc/tests/mgcp/mgcp_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c index 1f11b1d52..fa68867db 100644 --- a/openbsc/tests/mgcp/mgcp_test.c +++ b/openbsc/tests/mgcp/mgcp_test.c @@ -416,9 +416,7 @@ static void test_messages(void) endp->net_end.packet_duration_ms = -1; endp->local_options.pkt_period_min = 0; endp->local_options.pkt_period_max = 0; - endp->conn_mode = MGCP_CONN_NONE | CONN_UNMODIFIED; - endp->net_end.output_enabled = 0; - endp->bts_end.output_enabled = 0; + endp->conn_mode |= CONN_UNMODIFIED; } |