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
diff --git a/openbsc/src/ipaccess/ipaccess-config.c b/openbsc/src/ipaccess/ipaccess-config.c
index 72bccf9..9b3cb8d 100644
--- a/openbsc/src/ipaccess/ipaccess-config.c
+++ b/openbsc/src/ipaccess/ipaccess-config.c
@@ -116,6 +116,8 @@
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 @@
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 @@
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);