From c0c1195a57df7f10a5b9c8025b714935b19ed7b8 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 3 Nov 2011 15:12:00 +0100 Subject: host/mobile: Indicate unsupported TS 04.14 test messages in log There is no support for TS 04.14. A logging message will inidcate this, if a tester requests test functions. A STATUS message will be sent as it is for for other usupported protocol types received. Written-by: Andreas Eversberg Signed-off-by: Sylvain Munaut --- src/host/layer23/src/mobile/gsm48_mm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/host/layer23/src/mobile/gsm48_mm.c b/src/host/layer23/src/mobile/gsm48_mm.c index 2153abac..0208d466 100644 --- a/src/host/layer23/src/mobile/gsm48_mm.c +++ b/src/host/layer23/src/mobile/gsm48_mm.c @@ -4057,9 +4057,14 @@ static int gsm48_mm_data_ind(struct osmocom_ms *ms, struct msgb *msg) msgb_free(msg); return rc; + case 0x0f: /* test TS 04.14 */ + LOGP(DMM, LOGL_NOTICE, "Test protocol 0x%02x according to " + "TS 04.14 is not supported.\n", pdisc); + goto status; default: LOGP(DMM, LOGL_NOTICE, "Protocol type 0x%02x unsupported.\n", pdisc); +status: msgb_free(msg); return gsm48_mm_tx_mm_status(ms, GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED); -- cgit v1.2.3