diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-06 11:38:05 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-07-22 21:54:19 +0200 |
commit | 887deabe38dd18dfc0c1eb7e81223dae10b3182d (patch) | |
tree | 7035fb8b87b9efcfbade6b4dae9f3c9bed70bd41 /openbsc/src/abis_nm.c | |
parent | 549faada213f3a446e6cf7d008c0e36cf8bf1c53 (diff) |
ipaccess-config / network listen: ordered list of RxLevels
Use libosmocore 'rxlev_stat' module to generate an ordered list
of ARFCN's, sorted by RxLev while performing test nr. 64
Diffstat (limited to 'openbsc/src/abis_nm.c')
-rw-r--r-- | openbsc/src/abis_nm.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c index f7fac6325..58f47d2d5 100644 --- a/openbsc/src/abis_nm.c +++ b/openbsc/src/abis_nm.c @@ -2120,26 +2120,20 @@ int abis_nm_conn_mdrop_link(struct gsm_bts *bts, u_int8_t e1_port0, u_int8_t ts0 /* Chapter 8.7.1 */ int abis_nm_perform_test(struct gsm_bts *bts, u_int8_t obj_class, u_int8_t bts_nr, u_int8_t trx_nr, u_int8_t ts_nr, - u_int8_t test_nr, u_int8_t auton_report, - const u_int8_t *phys_config, u_int16_t phys_config_len) + u_int8_t test_nr, u_int8_t auton_report, struct msgb *msg) { struct abis_om_hdr *oh; - struct msgb *msg = nm_msgb_alloc(); - int len = 4; /* 2 TV attributes */ DEBUGP(DNM, "PEFORM TEST\n"); - - if (phys_config_len) - len += 3 + phys_config_len; - - oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE); - fill_om_fom_hdr(oh, len, NM_MT_PERF_TEST, + + if (!msg) + msg = nm_msgb_alloc(); + + msgb_tv_push(msg, NM_ATT_AUTON_REPORT, auton_report); + msgb_tv_push(msg, NM_ATT_TEST_NO, test_nr); + oh = (struct abis_om_hdr *) msgb_push(msg, ABIS_OM_FOM_HDR_SIZE); + fill_om_fom_hdr(oh, msgb_l3len(msg), NM_MT_PERF_TEST, obj_class, bts_nr, trx_nr, ts_nr); - msgb_tv_put(msg, NM_ATT_TEST_NO, test_nr); - msgb_tv_put(msg, NM_ATT_AUTON_REPORT, auton_report); - if (phys_config_len) - msgb_tl16v_put(msg, NM_ATT_PHYS_CONF, phys_config_len, - phys_config); return abis_nm_sendmsg(bts, msg); } |