I wondered if we want to compare the access reference as well? We do not enforce that the ARFCNs of a TRX are distinct.
It seems, I don't understand what do you mean. What access reference we should compare? As I understand, each trx has one arfcn, so we can find trx by arfcn.
And besides that I would
like you to move the look-up code to a separate function. That way we can at least write a unit test in the future.
Ok, I can move this code to "gsm_bts_trx_by_arfcn" function.