summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/layer1/l23_api.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-21 21:59:43 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-24 18:57:28 +0200
commit16cd41e8093fc3c5781375fd32fc6da25306cae3 (patch)
treed04da2dc18c95d7ffae756b340e9ae25ca1aa285 /src/target/firmware/layer1/l23_api.c
parentd9ac6a51ad71346c2146490c18480d45a53cc27a (diff)
l1a_l23_interface: Update DM EST REQ format
We include all the parameters we're gonna need to support TS!=0, hopping, TSC, ... We also assume the upper layer have decoded the low level bit fields and gives us neat accessible variables and a sorted ARFCN array for the Mobile Allocation Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/layer1/l23_api.c')
-rw-r--r--src/target/firmware/layer1/l23_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/firmware/layer1/l23_api.c b/src/target/firmware/layer1/l23_api.c
index 1ae139c9..0edc1ad0 100644
--- a/src/target/firmware/layer1/l23_api.c
+++ b/src/target/firmware/layer1/l23_api.c
@@ -151,9 +151,9 @@ static void l1ctl_rx_dm_est_req(struct msgb *msg)
struct l1ctl_dm_est_req *est_req = (struct l1ctl_dm_est_req *) ul->payload;
printd("L1CTL_DM_EST_REQ (arfcn=%u, chan_nr=0x%02x)\n",
- ntohs(est_req->band_arfcn), ul->chan_nr);
+ ntohs(est_req->h0.band_arfcn), ul->chan_nr);
- if (ntohs(est_req->band_arfcn) != l1s.serving_cell.arfcn) {
+ if (ntohs(est_req->h0.band_arfcn) != l1s.serving_cell.arfcn) {
/* FIXME: ARFCN */
puts("We don't support ARFCN switches yet\n");
return;
@@ -163,12 +163,12 @@ static void l1ctl_rx_dm_est_req(struct msgb *msg)
puts("We don't support non-0 TS yet\n");
return;
}
- if (est_req->h0.h) {
+ if (est_req->h) {
puts("We don't support frequency hopping yet\n");
return;
}
- /* FIXME: set TSC of ded chan according to est_req.h0.tsc */
+ /* FIXME: set TSC of ded chan according to est_req.tsc */
/* figure out which MF tasks to enable */
l1a_mftask_set(1 << chan_nr2mf_task(ul->chan_nr));
}