dect
/
asterisk
Archived
13
0
Fork 0

chan_dect: deliver frames to DLC in size given by asterisk

The kernel doesn't depend on getting correctly sized frames anymore, use
the frame size given by asterisk.

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-09-09 23:15:41 +02:00
parent d9c07ce079
commit 8496c5c07b
1 changed files with 3 additions and 7 deletions

View File

@ -593,15 +593,11 @@ static int dect_write(struct ast_channel *chan, struct ast_frame *f)
{
struct dect_pvt *pvt = chan->tech_pvt;
struct dect_msg_buf mb;
unsigned int len = f->datalen;
mb.data = f->data.ptr;
mb.len = 40;
while (len >= 40) {
dect_dl_u_data_req(dh, pvt->call, &mb);
mb.data += 40;
len -= 40;
}
mb.len = f->datalen;
dect_dl_u_data_req(dh, pvt->call, &mb);
return 0;
}