Hello Sylvain,
On Tue, 03 Nov 2009 07:03:15 +0000, 246tnt(a)gmail.com wrote:
Initially I had a segfault when receiving a GMM ATTACH. The MCC/MNC in the
CELL ID transmitted in the GMM ATTACH REQUEST are not the one I set in
openbsc.cfg, they seem hardcoded to 001/01 but I haven't found from where
yet. So currently you need to set 1/1 in your openbsc.cfg as well.
Its in bsc_init.c, the variable "nanobts_attr_bts":
NM_ATT_IPACC_CGI, 0, 7, 0x00, 0xf1, 0x10, 0x00, 0x01, 0x00, 0x00,
I did modify patch_nm_tables() and added:
// this overwrites nanobts_attr_bts[54], but we set it later anyway
gsm48_ra_id_by_bts(&nanobts_attr_bts[49], bts);
nanobts_attr_bts[54] = htons(bts->cell_identity) & 0xFF;
nanobts_attr_bts[55] = (htons(bts->cell_identity) >> 8) & 0xFF;
Additionally I fixed setting the BSIC:
nanobts_attr_bts[45] = bts->bsic;
I have not yet provided a patch because its not fully tested,
however Harald is informed.
Best regards,
Dieter
--
Dieter Spaar, Germany spaar(a)mirider.augusta.de