From a84f643c82e4cfacc68c70728d7f418cfa966511 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 11 Jan 2011 19:47:12 +0100 Subject: [PATCH] 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 --- src/lce.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lce.c b/src/lce.c index c0f150d..32d5f08 100644 --- a/src/lce.c +++ b/src/lce.c @@ -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)