summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/misc/rslms.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-08-01 11:56:17 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-09-14 21:21:42 +0200
commit02c4650af1dc8e99c3c1e565724072485d61c4b4 (patch)
tree8a8debd8a7d5842cf788a32db2019df5e67bb42b /src/host/layer23/src/misc/rslms.c
parente746ca06ca8cadfd889f5380e8ca851d86540700 (diff)
layer23: Move app logic in layer3.c with state struct.
It's far from perfect but at least it's not split in two file and makes it easier to expand the logic. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/misc/rslms.c')
-rw-r--r--src/host/layer23/src/misc/rslms.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/host/layer23/src/misc/rslms.c b/src/host/layer23/src/misc/rslms.c
index 7231fda4..b2e00472 100644
--- a/src/host/layer23/src/misc/rslms.c
+++ b/src/host/layer23/src/misc/rslms.c
@@ -56,9 +56,6 @@ int rslms_tx_rll_req_l3(struct osmocom_ms *ms, uint8_t msg_type,
return rslms_recvmsg(msg, ms);
}
-static int ccch_enabled = 0;
-static int rach_count = 0;
-
static int rslms_rx_udata_ind(struct msgb *msg, struct osmocom_ms *ms)
{
struct abis_rsl_rll_hdr *rllh = msgb_l2(msg);
@@ -77,13 +74,8 @@ static int rslms_rx_udata_ind(struct msgb *msg, struct osmocom_ms *ms)
if (rllh->chan_nr == RSL_CHAN_PCH_AGCH) {
rc = gsm48_rx_ccch(msg, ms);
- ccch_enabled = 1;
} else if (rllh->chan_nr == RSL_CHAN_BCCH) {
rc = gsm48_rx_bcch(msg, ms);
- if (ccch_enabled && (rach_count < 2)) {
- l1ctl_tx_rach_req(ms, rach_count, 27, 0);
- rach_count++;
- }
}
return rc;