From ce60deff7b984aa031f3c11ee75092f9bfe247ee Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Thu, 29 Mar 2012 09:20:07 +0200 Subject: host/l1ctl: Make sure to initialize tn in neigh_pm_req Signed-off-by: Sylvain Munaut --- src/host/layer23/src/common/l1ctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c index f998ebcf..521949c1 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); } -- cgit v1.2.3