summaryrefslogtreecommitdiff
path: root/cesar/cp2/defs.h
blob: cbfe359eb196c4dc45ea59596dc68fbda5a779d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef cp2_defs_h
#define cp2_defs_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp2/defs.h
 * \brief   Definition for the Control Plane.
 * \ingroup cp2
 */

#define CP_BENTRY_COUNTDOWN_DEFAULT 5

/** CCo level. */
#define CP_CCO_LEVEL 0

/** PCo capability. */
#define CP_PCO_CAP true

/** Backup CCo Cap. */
#define CP_BACKUP_CCO_CAP true

/** Minimum size of NPW password. */
#define CP_NPW_MIN_SIZE 8  // bytes
#define CP_NPW_MAX_SIZE 64 // bytes

/** Maximum size of HFID (human-friendly identifier). */
#define CP_HFID_SIZE 64 // bytes

/** NMK size. */
#define CP_NMK_SIZE 16 // bytes

/** Device password length. */
#define CP_DPW_MIN_SIZE 16 // bytes
#define CP_DPW_MAX_SIZE 64 // bytes

/** Hash key size. */
#define CP_HASH_KEY_SIZE 384

/** Expiration delay for the station. */
#define CP_STA_EXPIRATION_DELAY_S 70

/** Expiration delay for the networks. */
#define CP_NET_EXPIRATION_DELAY_S 70

/** Unassociated STA Advertisement Interval. */
#define CP_USAI_S 1

/** Discover period in seconds. */
#define CP_DISCOVER_PERIOD_MAX_S 10

/** Maximum number of beacon loss because an AVLN failure. */
#define CP_MAX_NO_BEACON 10

/** Max schedules beacon periods. */
#define CP_SCHED_BEACON_PERIODS_MAC 3

/** Define the size of the NID. */
#define CP_NID_SIZE 7

/** Max payload size in bytes. */
#define CP_MME_PAYLOAD_MAX_SIZE_WITH_VLAN 1495
#define CP_MME_PAYLOAD_MAX_SIZE 1499

/** Specific allocation time in ATU. Calulated from their size in byte and their
 * transmission in ROBO modulation*/

/*Beacon size 136 bytes, repetition 5 time*/
#define CP_CCO_BW_ALLOC_TIME_BEACON_ATU 141

/*CFPI size 4 ms recommended*/
#define CP_CCO_BW_ALLOC_TIME_CFPI_ATU 390

/*MinCSMA size 1500 µs recommended*/
#define CP_CCO_BW_ALLOC_TIME_MINCSMA_ATU 147

/*Protection of overrun. Value not into the hpAV spec.*/
#define CP_CCO_BW_ALLOC_TIME_END_TDMA_PROTECTION_ATU 10

/** Size of a PB in octet used to transport a MSDU */
#define CP_CCO_BW_PB_SIZE_OCTET 520

/** Number of Priority heaps */
#define CP_CCO_BW_NB_PRIORITY_HEAPS 4

/** minimal size of a CSMA allocation */
#define CP_CCO_BW_MIN_CSMA_ALLOC_ATU 5

#endif /* cp2_defs_h */