abis_nm: run gsm_bts_check_cfg during oml bring up

Don't wait until RSL link goes up to check the reported features against
the config. Do it in the OML bring up right after the features are
reported.

Related: SYS#5922, OS#5538
Change-Id: I6b1b4ef3e163528ed186050d848ec089a4315a7c
This commit is contained in:
Oliver Smith 2022-05-03 16:09:39 +02:00 committed by laforge
parent d8017c3533
commit 49dd5cfeeb
1 changed files with 6 additions and 0 deletions

View File

@ -719,6 +719,12 @@ static int abis_nm_rx_get_attr_resp(struct msgb *mb)
else
rc = parse_attr_resp_info_attr(bts, trx, foh, &tp);
if (gsm_bts_check_cfg(bts) != 0) {
LOGP(DLINP, LOGL_ERROR, "(bts=%u) BTS config invalid, dropping BTS!\n", bts->nr);
ipaccess_drop_oml_deferred(bts);
return -EINVAL;
}
osmo_signal_dispatch(SS_NM, S_NM_GET_ATTR_REP, mb);
return rc;