summaryrefslogtreecommitdiff
path: root/cesar/cp/defs.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2013-03-01 10:39:55 +0100
committerNélio Laranjeiro2013-03-01 10:45:51 +0100
commitcdbd2639712284c1cef299d99e97d03aa4a862b1 (patch)
treefe7585b538dd6fbfee3627de9f6a2c2a9e6ee00b /cesar/cp/defs.h
parentc3429245688a12ceadaa28c1d3e515b2bb1e6c13 (diff)
cesar/cp/av/sta/action: use maximum TEI lease time on handover, refs #3812
The new CCo does not know the current TEI lease time value of current CCo. To avoid the new CCo to expel a station before the station's TEI lease expires, the new CCo should set the lease time to the maximum value. For example, in the previous behavior an authenticated station which has received a TEI lease of 60 hours from the current CCo, should only be expelled if it does not renew its TEI before the end of the 60 hours. If the new CCo has for lease time 48 hours, it will expel the station considering, it has not renewed its TEI before the end of the lease. The station will be expel before the end of its lease which ends 12 hours later. So to avoid this case, the new CCo will use the maximum value for the TEI lease, as the station should have a lease which ends before this value, it should renew its TEI a long while before. At this moment the new CCo will provide a correct lease time corresponding to the one in internal.conf or the default value.
Diffstat (limited to 'cesar/cp/defs.h')
-rw-r--r--cesar/cp/defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cesar/cp/defs.h b/cesar/cp/defs.h
index e94c13f6a2..e6f22f508e 100644
--- a/cesar/cp/defs.h
+++ b/cesar/cp/defs.h
@@ -22,6 +22,7 @@
/* Default time lease for associated STA (in minutes.) . */
#define CP_LEASE_ASSOC_MIN 0xF /* 15 minutes. */
#define CP_LEASE_AUTH_MIN 0xB40 /* 48 hours. */
+#define CP_LEASE_MAX 0xFFFF /* 45.51 days. */
/** The time since the last assoc.req emitted by a station to be considered as
* fully associated. */