bsc: Implement sending the assignment complete to the network

This commit is contained in:
Holger Hans Peter Freyther 2010-11-04 12:09:45 +01:00
parent 2d2c910f2c
commit da488ae343
1 changed files with 10 additions and 0 deletions

View File

@ -71,7 +71,17 @@ static void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_
uint8_t chosen_channel, uint8_t encr_alg_id,
uint8_t speech_model)
{
struct msgb *resp;
return_when_not_connected(conn);
resp = gsm0808_create_assignment_completed(rr_cause, chosen_channel,
encr_alg_id, speech_model);
if (!resp) {
LOGP(DMSC, LOGL_ERROR, "Failed to allocate response.\n");
return;
}
bsc_queue_for_msc(conn, resp);
}
static void bsc_assign_fail(struct gsm_subscriber_connection *conn,