summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trx_if.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-06-09 20:53:20 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-19 17:35:07 +0700
commit789040f91405d1fe9181a9e10b5b169c1177682d (patch)
treeb7fb5ba77974968de1d8bb52372f4301255614f7 /src/host/trxcon/trx_if.c
parent9b1d398685e70e3bc9ed2fa1a07209a24e2b31b6 (diff)
host/trxcon/trx_if.c: handle clock indications
Diffstat (limited to 'src/host/trxcon/trx_if.c')
-rw-r--r--src/host/trxcon/trx_if.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/host/trxcon/trx_if.c b/src/host/trxcon/trx_if.c
index 8f93b0a6..83db173a 100644
--- a/src/host/trxcon/trx_if.c
+++ b/src/host/trxcon/trx_if.c
@@ -42,6 +42,7 @@
#include "trxcon.h"
#include "trx_if.h"
#include "logging.h"
+#include "scheduler.h"
extern void *tall_trx_ctx;
extern struct osmo_fsm_inst *trxcon_fsm;
@@ -146,6 +147,7 @@ static void trx_udp_close(struct osmo_fd *ofd)
static int trx_clck_read_cb(struct osmo_fd *ofd, unsigned int what)
{
+ struct trx_instance *trx = (struct trx_instance *) ofd->data;
char buf[1500];
uint32_t fn;
int len;
@@ -173,7 +175,9 @@ static int trx_clck_read_cb(struct osmo_fd *ofd, unsigned int what)
"correctly, correcting to fn=%u\n", fn);
}
- /* TODO: call the clck_ind callback */
+ /* Call the clck_ind callback */
+ sched_clck_handle(&trx->sched, fn);
+
return 0;
}