diff options
author | Harald Welte <laforge@netfilter.org> | 2010-01-07 20:39:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2010-01-07 20:45:41 +0100 |
commit | 2ef156db4356bc2ffb31c59a12b71f8a4f7a75fb (patch) | |
tree | 00bbd7f3e6bd3601a95ef847c9fcce1265e95459 /openbsc/src/ipaccess | |
parent | cbcfe24fee18981de0765cddb9fa02e79b3c156d (diff) |
bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTS
Diffstat (limited to 'openbsc/src/ipaccess')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c index ceac7bdf4..3b2a8bfd0 100644 --- a/openbsc/src/ipaccess/ipaccess-config.c +++ b/openbsc/src/ipaccess/ipaccess-config.c @@ -268,7 +268,7 @@ static int swload_cbfn(unsigned int hook, unsigned int event, struct msgb *_msg, msg->l2h[1] = msgb_l3len(msg) >> 8; msg->l2h[2] = msgb_l3len(msg) & 0xff; printf("Foo l2h: %p l3h: %p... length l2: %u l3: %u\n", msg->l2h, msg->l3h, msgb_l2len(msg), msgb_l3len(msg)); - abis_nm_ipaccess_set_nvattr(bts, msg->l2h, msgb_l2len(msg)); + abis_nm_ipaccess_set_nvattr(bts->c0, msg->l2h, msgb_l2len(msg)); msgb_free(msg); break; case NM_MT_LOAD_END_NACK: @@ -313,7 +313,7 @@ static void bootstrap_om(struct gsm_bts *bts) memcpy(buf+3, unit_id, len); buf[3+len] = 0; printf("setting Unit ID to '%s'\n", unit_id); - abis_nm_ipaccess_set_nvattr(bts, buf, 3+len+1); + abis_nm_ipaccess_set_nvattr(bts->c0, buf, 3+len+1); } if (prim_oml_ip) { struct in_addr ia; @@ -337,7 +337,7 @@ static void bootstrap_om(struct gsm_bts *bts) *cur++ = 0; printf("setting primary OML link IP to '%s'\n", inet_ntoa(ia)); oml_state = 1; - abis_nm_ipaccess_set_nvattr(bts, buf, 3+len); + abis_nm_ipaccess_set_nvattr(bts->c0, buf, 3+len); } if (nv_mask) { len = 4; @@ -351,7 +351,7 @@ static void bootstrap_om(struct gsm_bts *bts) *cur++ = nv_mask >> 8; printf("setting NV Flags/Mask to 0x%04x/0x%04x\n", nv_flags, nv_mask); - abis_nm_ipaccess_set_nvattr(bts, buf, 3+len); + abis_nm_ipaccess_set_nvattr(bts->c0, buf, 3+len); } if (restart && !prim_oml_ip && !software) { |