gsm_04_11: Start using the GSM Subscriber class to ask for a channel

The paging message should not be called directly and the GSM Subscriber
can handle multiple requests at the same time... Now a subscr_put_channel
should be called after the message sending. But it is not very clear when
this can be called. The current code works by luck that the SAPI=0 will
be released...
The MT-SMS was tested via the VTY interface and a N900.
This commit is contained in:
Holger Hans Peter Freyther 2010-06-10 18:21:25 +08:00
parent ca5702a5c6
commit 7afac583cd
1 changed files with 1 additions and 5 deletions

View File

@ -1186,11 +1186,7 @@ int gsm411_send_sms_subscr(struct gsm_subscriber *subscr,
rll_ind_cb, sms);
/* if not, we have to start paging */
rc = paging_request(subscr->net, subscr, RSL_CHANNEED_SDCCH,
paging_cb_send_sms, sms);
if (rc <= 0)
sms_free(sms);
subscr_get_channel(subscr, RSL_CHANNEED_SDCCH, paging_cb_send_sms, sms);
return 0;
}