From 602a3c8aa8a3d9bd4d93deda6ac932404f39584d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 1 Dec 2008 12:54:30 +0530 Subject: Add README, various compile fixes --- gsmstack/get_lctype.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gsmstack/get_lctype.c') diff --git a/gsmstack/get_lctype.c b/gsmstack/get_lctype.c index 953b56d..fcffaa1 100644 --- a/gsmstack/get_lctype.c +++ b/gsmstack/get_lctype.c @@ -81,6 +81,8 @@ static int get_lctype_for_tch_f(unsigned int fnr) return lc_type; } +/* get the logical channel type based on frame number and + * physical channel configuration */ int get_lctype(struct gsm_phys_chan *pchan, int fnr) { switch (pchan->config) { @@ -98,8 +100,10 @@ int get_lctype(struct gsm_phys_chan *pchan, int fnr) return -EINVAL; } +/* get a pointer to the logical channel structure based on frame number + * and physical channel configuration */ struct gsm_logi_chan *get_lchan(struct gsm_phys_chan *pchan, int fnr) { int lctype = get_lctype(pchan, fnr); - return pchan->logi_chan[lctype]; + return &pchan->logi_chan[lctype]; } -- cgit v1.2.3