Holger Hans Peter Freyther | 4f448c9 | 2010-07-05 16:02:04 +0800 | [diff] [blame] | 1 | /* (C) 2009-2010 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 2 | * (C) 2009-2010 by On-Waves |
| 3 | * All Rights Reserved |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #include <openbsc/osmo_bsc.h> |
| 22 | |
Holger Hans Peter Freyther | 32aaef6 | 2010-09-16 17:26:35 +0800 | [diff] [blame] | 23 | static void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, int dlci) |
| 24 | { |
| 25 | } |
| 26 | |
| 27 | static void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, |
| 28 | struct msgb *msg, uint8_t chosen_encr) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | static void bsc_cipher_mode_reject(struct gsm_subscriber_connection *conn, |
| 33 | struct msgb *msg, uint16_t reason) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | static int bsc_compl_l3(struct gsm_subscriber_connection *conn, struct msgb *msg, |
| 38 | uint16_t chosen_channel) |
| 39 | { |
| 40 | return BSC_API_CONN_POL_REJECT; |
| 41 | } |
| 42 | |
| 43 | static void bsc_dtap(struct gsm_subscriber_connection *conn, struct msgb *msg) |
| 44 | { |
| 45 | } |
| 46 | |
Holger Hans Peter Freyther | fce9307 | 2010-11-04 11:15:11 +0100 | [diff] [blame] | 47 | static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_cause) |
Holger Hans Peter Freyther | 32aaef6 | 2010-09-16 17:26:35 +0800 | [diff] [blame] | 48 | { |
| 49 | } |
| 50 | |
| 51 | static void bsc_assign_fail(struct gsm_subscriber_connection *conn, uint32_t cause) |
| 52 | { |
| 53 | } |
| 54 | |
Holger Hans Peter Freyther | 05c6884 | 2010-11-03 19:01:58 +0100 | [diff] [blame] | 55 | static int bsc_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause) |
Holger Hans Peter Freyther | 32aaef6 | 2010-09-16 17:26:35 +0800 | [diff] [blame] | 56 | { |
Holger Hans Peter Freyther | 05c6884 | 2010-11-03 19:01:58 +0100 | [diff] [blame] | 57 | return 0; |
Holger Hans Peter Freyther | 32aaef6 | 2010-09-16 17:26:35 +0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | static void bsc_clear_compl(struct gsm_subscriber_connection *conn) |
| 61 | { |
| 62 | } |
| 63 | |
| 64 | static struct bsc_api bsc_handler = { |
| 65 | .sapi_n_reject = bsc_sapi_n_reject, |
| 66 | .cipher_mode_compl = bsc_cipher_mode_compl, |
| 67 | .cipher_mode_reject = bsc_cipher_mode_reject, |
| 68 | .compl_l3 = bsc_compl_l3, |
| 69 | .dtap = bsc_dtap, |
| 70 | .assign_compl = bsc_assign_compl, |
| 71 | .assign_fail = bsc_assign_fail, |
| 72 | .clear_request = bsc_clear_request, |
| 73 | .clear_compl = bsc_clear_compl, |
| 74 | }; |
| 75 | |
Holger Hans Peter Freyther | 4f448c9 | 2010-07-05 16:02:04 +0800 | [diff] [blame] | 76 | struct bsc_api *osmo_bsc_api() |
| 77 | { |
Holger Hans Peter Freyther | 32aaef6 | 2010-09-16 17:26:35 +0800 | [diff] [blame] | 78 | return &bsc_handler; |
Holger Hans Peter Freyther | 4f448c9 | 2010-07-05 16:02:04 +0800 | [diff] [blame] | 79 | } |