diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-04-05 19:26:09 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-04-05 21:30:00 +0800 |
commit | db60b706ccef02a9b1ef28facc6b3d6f94da9e36 (patch) | |
tree | 8fd0439abac4242580f99792e04cf39f837c0896 /src/host/layer23/src/l1ctl.c | |
parent | fb8dfadc6639cf4174dd69119e8ed9661b0625bc (diff) |
layer23: split into liblayer23 and 'apps'
similar to the concept of having 'apps' in the firmware build process,
I'm now building the common code as liblayer23 and we have three apps
that use this library:
layer23 - the old layer23 program
bcch_scan - a passive bcch scanner under development
echo_test - a test program sending large msgb's containing zero bytes
Diffstat (limited to 'src/host/layer23/src/l1ctl.c')
-rw-r--r-- | src/host/layer23/src/l1ctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/layer23/src/l1ctl.c b/src/host/layer23/src/l1ctl.c index ada7ec8d..82c9dc55 100644 --- a/src/host/layer23/src/l1ctl.c +++ b/src/host/layer23/src/l1ctl.c @@ -152,9 +152,9 @@ static int rx_ph_data_ind(struct osmocom_ms *ms, struct msgb *msg) /* determine LAPDm entity based on SACCH or not */ if (dl->link_id & 0x40) - le = &ms->lapdm_acch; + le = &ms->l2_entity.lapdm_acch; else - le = &ms->lapdm_dcch; + le = &ms->l2_entity.lapdm_dcch; /* make local stack copy of l1ctl_info_dl, as LAPDm will * overwrite skb hdr */ memcpy(&dl_cpy, dl, sizeof(dl_cpy)); @@ -312,8 +312,8 @@ int l1ctl_tx_pm_req_range(struct osmocom_ms *ms, uint16_t arfcn_from, static int rx_l1_reset(struct osmocom_ms *ms) { printf("Layer1 Reset.\n"); - //return l1ctl_tx_pm_req_range(ms, 0, 124); - return l1ctl_tx_ccch_req(ms); + return l1ctl_tx_pm_req_range(ms, 0, 124); + //return l1ctl_tx_ccch_req(ms); } /* Receive L1CTL_PM_RESP */ |