bsc_api: Set the l3h header from within the dtap method

This is fixing USSD which broke when the code was
switched to use the BSC API.
This commit is contained in:
Holger Hans Peter Freyther 2010-06-17 17:48:13 +08:00
parent d42c3f25a6
commit f6d0e06940
2 changed files with 1 additions and 1 deletions

View File

@ -47,6 +47,7 @@ int gsm0808_submit_dtap(struct gsm_subscriber_connection *conn,
msg->lchan = conn->lchan;
msg->trx = msg->lchan->ts->trx;
msg->l3h = msg->data;
if (conn->lchan->sapis[sapi] == LCHAN_SAPI_UNUSED) {
OBSC_LINKID_CB(msg) = link_id;
if (rll_establish(msg->lchan, sapi, rll_ind_cb, msg) != 0) {

View File

@ -99,7 +99,6 @@ static int gsm48_conn_sendmsg(struct msgb *msg, struct gsm_subscriber_connection
gh->proto_discr, gh->msg_type);
}
msg->l3h = msg->data;
return gsm0808_submit_dtap(conn, msg, 0);
}