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/ipaccess/ipaccess-config.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/ipaccess/ipaccess-config.c')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-config.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c index 72bccf918..9b3cb8d6f 100644 --- a/openbsc/src/ipaccess/ipaccess-config.c +++ b/openbsc/src/ipaccess/ipaccess-config.c @@ -116,6 +116,8 @@ static int ipacc_msg_ack(u_int8_t mt, struct gsm_bts_trx *trx) return 0; } +const uint8_t phys_conf[] = { 0x02, 0x0a, 0x00, 0x01, 0x02 }; + static int nwl_sig_cb(unsigned int subsys, unsigned int signal, void *handler_data, void *signal_data) { @@ -124,7 +126,11 @@ static int nwl_sig_cb(unsigned int subsys, unsigned int signal, switch (signal) { case S_IPAC_NWL_COMPLETE: trx = signal_data; - ipac_nwl_test_start(trx, net_listen_testnr); + DEBUGP(DNM, "received S_IPAC_NWL_COMPLETE signal\n"); + rxlev_stat_dump(&trx->ipaccess.rxlev_stat); + DEBUGP(DNM, "starting next test\n"); + ipac_nwl_test_start(trx, net_listen_testnr, phys_conf, + sizeof(phys_conf)); break; } return 0; @@ -441,7 +447,8 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj, struct gsm_bts_trx *trx = obj; if (net_listen_testnr) - ipac_nwl_test_start(trx, net_listen_testnr); + ipac_nwl_test_start(trx, net_listen_testnr, phys_conf, + sizeof(phys_conf)); else if (software) { int rc; printf("Attempting software upload with '%s'\n", software); |