bankd: Use configured bank_id/nr_slots in ConnectBankReq

The code used hard-coded defaults instead of the user-configured values.

Change-Id: I86383aed4d5bb08ac1540eaecc0975a18e560baa
This commit is contained in:
Harald Welte 2019-04-01 21:05:06 +02:00
parent 2513d81625
commit 4fa407a750
1 changed files with 2 additions and 1 deletions

View File

@ -227,7 +227,8 @@ static void srvc_st_established_onenter(struct osmo_fsm_inst *fi, uint32_t prev_
if (srvc->own_comp_id.type == ComponentType_remsimClient)
pdu = rspro_gen_ConnectClientReq(&srvc->own_comp_id, srvc->clslot);
else
pdu = rspro_gen_ConnectBankReq(&srvc->own_comp_id, 1, 8 /* FIXME */);
pdu = rspro_gen_ConnectBankReq(&srvc->own_comp_id, srvc->bankd.bank_id,
srvc->bankd.num_slots);
server_conn_send_rspro(srvc, pdu);
}