pcu_sock: use is_ericsson_bts() to check for ericsson BTS

Do not access bts->type directly, we have is_ericsson_bts() to do that

Related: OS#5198
Change-Id: I274a9f0f1208dc17713ba2e1c7a1110eeb133cca
Philipp Maier 2023-03-09 14:39:31 +01:00 committed by dexter
parent 4af073c109
commit c4ab940544
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ static int pcu_rx_data_req(struct gsm_bts *bts, uint8_t msg_type,
* assign downlink TBFs directly through the paging channel. However, this method never became part
* of the RSL specs. This means that each BTS vendor has to come up with a proprietary method. At
* the moment we only support Ericsson RBS here. */
if (bts->type == GSM_BTS_TYPE_RBS2000) {
if (is_ericsson_bts(bts)) {
rc = rsl_ericsson_imm_assign_cmd(bts, pch_dt->tlli, sizeof(pch_dt->data),
pch_dt->data, pag_grp);
} else {