summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-03-29 09:20:07 +0200
committerSylvain Munaut <tnt@246tNt.com>2012-03-29 09:21:57 +0200
commitce60deff7b984aa031f3c11ee75092f9bfe247ee (patch)
treeacf0dd5157ab2b209e85cd19090b35d56ef41e7d
parente7997163b240168301d7d2988f2cd74ae1f397e9 (diff)
host/l1ctl: Make sure to initialize tn in neigh_pm_req
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/host/layer23/src/common/l1ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c
index f998ebc..521949c 100644
--- a/src/host/layer23/src/common/l1ctl.c
+++ b/src/host/layer23/src/common/l1ctl.c
@@ -864,8 +864,10 @@ int l1ctl_tx_neigh_pm_req(struct osmocom_ms *ms, int num, uint16_t *arfcn)
LOGP(DL1C, LOGL_INFO, "Tx NEIGH PM Req (num %u)\n", num);
pm_req = (struct l1ctl_neigh_pm_req *) msgb_put(msg, sizeof(*pm_req));
pm_req->n = num;
- for (i = 0; i < num; i++)
+ for (i = 0; i < num; i++) {
pm_req->band_arfcn[i] = htons(*arfcn++);
+ pm_req->tn[i] = 0;
+ }
return osmo_send_l1(ms, msg);
}