aboutsummaryrefslogtreecommitdiffstats
path: root/src/nmt/nmt.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-12-23 19:44:05 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2018-12-23 19:53:28 +0100
commit5311f44daa75a3aee58c7b5e5759a67bbceddd1a (patch)
tree93d7c0ee81b6afd5b2b4d9d636d479b1bf3d60a9 /src/nmt/nmt.c
parentea5e17a036b17e9db182986bda7d2800a8e68133 (diff)
minor fixes of some prints; fix NMT message counter bug
Diffstat (limited to 'src/nmt/nmt.c')
-rw-r--r--src/nmt/nmt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nmt/nmt.c b/src/nmt/nmt.c
index 38a6d08..81e8fd2 100644
--- a/src/nmt/nmt.c
+++ b/src/nmt/nmt.c
@@ -140,11 +140,11 @@ static struct nmt_channels {
const char *short_name;
const char *long_name;
} nmt_channels[] = {
- { 0, CHAN_TYPE_CC, "CC", "calling channel (incomming calls)" },
- { 900, CHAN_TYPE_CCA, "CCA", "calling channel for group A mobiles with odd secret key (incomming calls)" },
- { 900, CHAN_TYPE_CCB, "CCB", "calling channel for group B mobiles with even secret key (incomming calls)" },
- { 0, CHAN_TYPE_TC, "TC", "traffic channel (outgoing calls)" },
- { 900, CHAN_TYPE_AC_TC, "AC/TC","combined access & traffic channel (outgoing calls)" },
+ { 0, CHAN_TYPE_CC, "CC", "calling channel (calls to mobile)" },
+ { 900, CHAN_TYPE_CCA, "CCA", "calling channel for group A mobiles with odd secret key (calls to mobile)" },
+ { 900, CHAN_TYPE_CCB, "CCB", "calling channel for group B mobiles with even secret key (calls to mobile)" },
+ { 0, CHAN_TYPE_TC, "TC", "traffic channel (calls from mobile)" },
+ { 900, CHAN_TYPE_AC_TC, "AC/TC","combined access & traffic channel (calls from mobile)" },
{ 0, CHAN_TYPE_CC_TC, "CC/TC","combined calling & traffic channel (both way calls)" },
{ 0, CHAN_TYPE_TEST, "TEST", "test channel" },
{ 0, 0, NULL, NULL }
@@ -1078,6 +1078,7 @@ static void tx_mt_channel(nmt_t *nmt, frame_t *frame)
} else
PDEBUG_CHAN(DNMT, DEBUG_NOTICE, "Staying on CC/TC channel #%d.\n", tc->sender.kanal);
nmt_new_state(tc, STATE_MT_IDENT);
+ tc->tx_frame_count = 0;
/* assign channel on 'nmt' to 'tc' */
frame->mt = NMT_MESSAGE_2b;