aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/ipaccess/ipaccess-config.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-07-22 18:14:58 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-22 21:54:19 +0200
commite39a5912f115215c75db1f0ff850227025dec136 (patch)
tree8d069e689f27cd39f9580d8bbb851c9a20935db1 /openbsc/src/ipaccess/ipaccess-config.c
parentaf109b9fa9a4282fcd6d1ac0f7ad001d306f57f4 (diff)
[ipaccess-config] make sure the ARFCN Whitelist EIE is built correctly
Diffstat (limited to 'openbsc/src/ipaccess/ipaccess-config.c')
-rw-r--r--openbsc/src/ipaccess/ipaccess-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c
index edf494dcb..7b0fd40a1 100644
--- a/openbsc/src/ipaccess/ipaccess-config.c
+++ b/openbsc/src/ipaccess/ipaccess-config.c
@@ -128,8 +128,8 @@ static uint16_t build_physconf(uint8_t *physconf_buf, const struct rxlev_stats *
physconf_buf[0] = phys_conf_min[0];
physconf_buf[1] = NM_IPAC_EIE_ARFCN_WHITE;
num_arfcn = ipac_rxlevstat2whitelist(whitelist, st);
- arfcnlist_size = num_arfcn; // * 2;
- *((uint16_t *) (physconf_buf+2)) = htons(arfcnlist_size);
+ arfcnlist_size = num_arfcn * 2;
+ *((uint16_t *) (physconf_buf+2)) = htons(num_arfcn);
printf("pc_buf (%s)\n", hexdump(physconf_buf, arfcnlist_size+4));
return arfcnlist_size+4;
}