1 /* TEST code, regularly transmit ECHO REQ packet to L1 */
3 /* (C) 2010 by Holger Hans Peter Freyther
4 * (C) 2010 by Harald Welte <laforge@gnumonks.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <osmocom/bb/common/osmocom_data.h>
25 #include <osmocom/bb/common/l1ctl.h>
26 #include <osmocom/bb/common/lapdm.h>
27 #include <osmocom/bb/common/logging.h>
28 #include <osmocom/bb/common/l23_app.h>
29 #include <osmocom/bb/misc/layer3.h>
31 #include <osmocore/msgb.h>
32 #include <osmocore/talloc.h>
33 #include <osmocore/select.h>
37 struct timer_list timer;
40 static void test_tmr_cb(void *data)
42 struct osmocom_ms *ms = data;
44 l1ctl_tx_echo_req(ms, 62);
45 bsc_schedule_timer(&test_data.timer, 1, 0);
48 int l23_app_init(struct osmocom_ms *ms)
50 test_data.timer.cb = &test_tmr_cb;
51 test_data.timer.data = ms;
53 bsc_schedule_timer(&test_data.timer, 1, 0);
58 static struct l23_app_info info = {
59 .copyright = "Copyright (C) 2010 Harald Welte <laforge@gnumonks.org>\n",
60 .contribution = "Contributions by Holger Hans Peter Freyther\n",
63 struct l23_app_info *l23_app_info()