summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/gsm48_cc.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-30 00:36:07 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-10-03 18:44:10 +0700
commite0fd31628480af13b3254d403ceb0e0309acbad3 (patch)
tree66f23de46dc4170a606b929c503f18ac3ed3a500 /src/host/layer23/src/mobile/gsm48_cc.c
parentb3c78fa1f732f8158aa384b08138a35e3937d0dd (diff)
(WIP) mobile/gsm48_cc.c: ignore MNCC_FRAME_{RECV|DROP} messages
Using both MNCC_FRAME RECV/DROP messages, an external MNCC application could enable / disable forwarding of the traffic frames from L1 through MNCC-socket. Now it can be done by user from the VTY configuration (see 'io-target' of 'audio' section), so there is no need to control this from outside. Change-Id: I41a0c9bc44b3ca6784f4190931773637f9fab40c
Diffstat (limited to 'src/host/layer23/src/mobile/gsm48_cc.c')
-rw-r--r--src/host/layer23/src/mobile/gsm48_cc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/host/layer23/src/mobile/gsm48_cc.c b/src/host/layer23/src/mobile/gsm48_cc.c
index 29f1ba1c..1d37ebea 100644
--- a/src/host/layer23/src/mobile/gsm48_cc.c
+++ b/src/host/layer23/src/mobile/gsm48_cc.c
@@ -1974,17 +1974,13 @@ int mncc_tx_to_cc(void *inst, int msg_type, void *arg)
case GSM_TCHH_FRAME:
case GSM_TCH_FRAME_AMR:
return gsm_send_voice_mncc(ms, arg);
+
+ /* Intentionally ignored messages */
case MNCC_LCHAN_MODIFY:
- return 0;
case MNCC_FRAME_RECV:
- ms->mncc_entity.ref = trans->callref;
- gsm48_rr_audio_mode(ms,
- AUDIO_TX_TRAFFIC_REQ | AUDIO_RX_TRAFFIC_IND);
- return 0;
case MNCC_FRAME_DROP:
- if (ms->mncc_entity.ref == trans->callref)
- ms->mncc_entity.ref = 0;
- gsm48_rr_audio_mode(ms, AUDIO_TX_MICROPHONE | AUDIO_RX_SPEAKER);
+ LOGP(DCC, LOGL_NOTICE, "Ignoring MNCC message %s\n",
+ get_mncc_name(msg_type));
return 0;
}