summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2011-02-24 21:47:07 +0100
committerPatrick McHardy <kaber@trash.net>2011-02-26 18:00:23 +0100
commit2d98b8123137ff613ad1e1bd5943717fdb33b973 (patch)
tree1b2ca13ecdc68a1564fb62f1ae2d2b5bb9675e10
parentf5b3fafa479707eab35fe76f59ec1d5873264a00 (diff)
lce: add proper timer names from EN 300 175 05 to comments and debug messages
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r--include/lce.h7
-rw-r--r--src/lce.c14
2 files changed, 11 insertions, 10 deletions
diff --git a/include/lce.h b/include/lce.h
index eed6263..6b00538 100644
--- a/include/lce.h
+++ b/include/lce.h
@@ -209,9 +209,10 @@ struct dect_data_link {
struct list_head transactions;
};
-#define DECT_DDL_RELEASE_TIMEOUT 5 /* seconds */
-#define DECT_DDL_ESTABLISH_SDU_TIMEOUT 5 /* seconds */
-#define DECT_DDL_PAGE_TIMEOUT 5 /* seconds */
+#define DECT_DDL_RELEASE_TIMEOUT 5 /* LCE.01: 5 seconds */
+#define DECT_DDL_LINK_MAINTAIN_TIMEOUT 5 /* LCE.02: 5 seconds */
+#define DECT_DDL_PAGE_TIMEOUT 5 /* LCE.03: 5 seconds */
+#define DECT_DDL_ESTABLISH_SDU_TIMEOUT 5 /* LCE.05: 5 seconds */
#define DECT_DDL_PAGE_RETRANS_MAX 3 /* N.300 */
extern int dect_ddl_set_cipher_key(const struct dect_data_link *ddl,
diff --git a/src/lce.c b/src/lce.c
index 7ec30c9..b8f8619 100644
--- a/src/lce.c
+++ b/src/lce.c
@@ -463,7 +463,7 @@ static void dect_ddl_release_timer(struct dect_handle *dh, struct dect_timer *ti
{
struct dect_data_link *ddl = timer->data;
- ddl_debug(ddl, "normal release timeout");
+ ddl_debug(ddl, "<LCE.01>: Link release timer: normal release timeout");
dect_ddl_destroy(dh, ddl);
}
@@ -503,7 +503,7 @@ static void dect_ddl_partial_release_timer(struct dect_handle *dh, struct dect_t
{
struct dect_data_link *ddl = timer->data;
- ddl_debug(ddl, "partial release timeout");
+ ddl_debug(ddl, "<LCE.02>: link maintain timer: partial release timeout");
if (list_empty(&ddl->transactions))
dect_ddl_destroy(dh, ddl);
}
@@ -519,7 +519,7 @@ static void dect_ddl_partial_release(struct dect_handle *dh,
dect_timer_stop(dh, ddl->sdu_timer);
dect_timer_setup(ddl->sdu_timer, dect_ddl_partial_release_timer, ddl);
- dect_timer_start(dh, ddl->sdu_timer, DECT_DDL_ESTABLISH_SDU_TIMEOUT);
+ dect_timer_start(dh, ddl->sdu_timer, DECT_DDL_LINK_MAINTAIN_TIMEOUT);
}
static void dect_ddl_shutdown(struct dect_handle *dh,
@@ -604,7 +604,7 @@ static void dect_ddl_sdu_timer(struct dect_handle *dh, struct dect_timer *timer)
{
struct dect_data_link *ddl = timer->data;
- ddl_debug(ddl, "SDU timer");
+ ddl_debug(ddl, "<LCE.05>: SDU timeout");
dect_ddl_destroy(dh, ddl);
}
@@ -613,14 +613,14 @@ static int dect_ddl_schedule_sdu_timer(const struct dect_handle *dh,
{
dect_timer_setup(ddl->sdu_timer, dect_ddl_sdu_timer, ddl);
dect_timer_start(dh, ddl->sdu_timer, DECT_DDL_ESTABLISH_SDU_TIMEOUT);
- ddl_debug(ddl, "start SDU timer");
+ ddl_debug(ddl, "start <LCE.05>: SDU timer");
return 0;
}
static void dect_ddl_stop_sdu_timer(const struct dect_handle *dh,
struct dect_data_link *ddl)
{
- ddl_debug(ddl, "stop SDU timer");
+ ddl_debug(ddl, "stop <LCE.05>: SDU timer");
dect_timer_stop(dh, ddl->sdu_timer);
}
@@ -1199,7 +1199,7 @@ static void dect_ddl_page_timer(struct dect_handle *dh, struct dect_timer *timer
if (ddl->page_count) {
dect_debug(DECT_DEBUG_LCE, "\n");
- ddl_debug(ddl, "Page timer");
+ ddl_debug(ddl, "<LCE.03>: Page timer");
}
if (ddl->page_count++ == DECT_DDL_PAGE_RETRANS_MAX)