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 <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Andreas Eversberg 2011-11-03 15:12:00 +01:00 committed by Sylvain Munaut
parent 3426063f56
commit c0c1195a57
1 changed files with 5 additions and 0 deletions

View File

@ -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);