#ifndef cp2_defs_h #define cp2_defs_h /* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \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 /** 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 */