blob: caf9d4b06157ead89fec3ccb2b552a3c7a6edaad [file] [log] [blame]
Neels Hofmeyre2f24d52017-05-08 15:12:20 +02001/* A-interface implementation, from MSC to BSC */
2
3/* (C) 2016 by sysmocom s.m.f.c GmbH <info@sysmocom.de>
4 *
5 * All Rights Reserved
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#include <osmocom/core/msgb.h>
23#include <osmocom/core/logging.h>
24
25#include <openbsc/debug.h>
26
27#include <openbsc/gsm_data.h>
28#include <openbsc/msc_ifaces.h>
29#include <openbsc/debug.h>
30
31int a_tx(struct msgb *msg)
32{
33 LOGP(DMSC, LOGL_ERROR, "message to be sent to BSC, but A-interface"
34 " not implemented.\n%s\n", osmo_hexdump(msg->data, msg->len));
35 return -1;
36}
37
Neels Hofmeyr84da6b12016-05-20 21:59:55 +020038int a_page(const char *imsi, uint32_t tmsi, uint16_t lac)
39{
40 LOGP(DMSC, LOGL_ERROR, "Paging to be sent to BSC, but A-interface"
41 " not implemented: IMSI %s TMSI 0x%08x LAC %u\n",
42 imsi, tmsi, lac);
43 return -1;
44}
45
Neels Hofmeyre2f24d52017-05-08 15:12:20 +020046int msc_gsm0808_tx_cipher_mode(struct gsm_subscriber_connection *conn, int cipher,
47 const uint8_t *key, int len, int include_imeisv)
48{
49 /* TODO generalize for A- and Iu interfaces, don't name after 08.08 */
50 LOGP(DMSC, LOGL_ERROR, "gsm0808_cipher_mode(): message to be sent to"
51 " BSC, but A interface not yet implemented.\n");
52 return -1;
53}