dect
/
libdect
Archived
13
0
Fork 0

lce: fix condition to decide whether to use direct link establishment

Indirect link establishment is to be used in FP mode when the PP does not
support fast setup. The current condition will also attempt to use it in
PP mode.

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2011-01-11 19:47:12 +01:00
parent ce7df5b796
commit a84f643c82
1 changed files with 1 additions and 2 deletions

View File

@ -911,14 +911,13 @@ static struct dect_data_link *dect_ddl_establish(struct dect_handle *dh,
{
struct dect_data_link *ddl;
//lte = dect_lte_get_by_ipui(dh, lte);
ddl = dect_ddl_alloc(dh);
if (ddl == NULL)
goto err1;
ddl->state = DECT_DATA_LINK_ESTABLISH_PENDING;
dect_ddl_set_ipui(dh, ddl, ipui);
if (dh->mode == DECT_MODE_FP ||
if (dh->mode == DECT_MODE_FP &&
dect_setup_capability(dh, ipui) != DECT_SETUP_NO_FAST_SETUP) {
ddl->page_timer = dect_timer_alloc(dh);
if (ddl->page_timer == NULL)