1 /******************************************************************************
4 Lantiq Deutschland GmbH
6 For licensing information, see the file 'LICENSE' in the root folder of
9 ******************************************************************************/
10 /***************************************************************************
11 ****************************************************************************
13 ** COMPONENT: ENET Upper MAC SW
15 ** MODULE: $File: //bwp/enet/demo153_sw/develop/src/mac_upper/umi_rsn.h $
17 ** VERSION: $Revision: #1 $
19 ** DATED: $Date: 2007/03/04 $
23 ** DESCRIPTION: Upper MAC Public Header
25 *****************************************************************************
29 ****************************************************************************/
31 #ifndef UMI_RSN_INCLUDED_H
32 #define UMI_RSN_INCLUDED_H
38 #define UMI_RSN_PAIRWISE_KEY 0
39 #define UMI_RSN_GROUP_KEY 1
41 /* RSN key index options */
42 #define UMI_RSN_USE_DEFAULT_KEY_INDEX 4
43 #define UMI_RSN_USE_PER_ASSOCIATION_KEY 5
46 #define UMI_RSN_IGTK_GN_KEY_INDEX 5
47 #define UMI_RSN_IGTK_GM_KEY_INDEX 6
51 #define UMI_RSN_MODE_SUPPORTED 1
52 #define UMI_RSN_MODE_UNSUPPORTED 0
54 /* RSN 802.1X station role */
55 #define UMI_RSN_AUTHENTICATOR 0
56 #define UMI_RSN_SUPPLICANT 1
58 /* RSN Cipher Suite selectors (as per 802.11i) */
59 #define UMI_RSN_CIPHER_SUITE_NONE 0
60 #define UMI_RSN_CIPHER_SUITE_WEP40 1
61 #define UMI_RSN_CIPHER_SUITE_TKIP 2
62 #define UMI_RSN_CIPHER_SUITE_WRAP 3
63 #define UMI_RSN_CIPHER_SUITE_CCMP 4
64 #define UMI_RSN_CIPHER_SUITE_WEP104 5
65 #define UMI_RSN_CIPHER_SUITE_IGTK 6
68 #define UMI_RSN_IE_IEEE_MAX_LEN 40
69 #define UMI_RSN_IE_WECA_MAX_LEN 40
70 #define UMI_RSN_IE_MAX_LEN (UMI_RSN_IE_IEEE_MAX_LEN + UMI_RSN_IE_WECA_MAX_LEN) /* In Mix Mode, driver sends both IE as one */
71 #define UMI_RSN_SEQ_NUM_LEN 6
72 #define UMI_RSN_TK1_LEN 16
73 #define UMI_RSN_TK2_LEN 16
75 /* RSN security event codes */
76 #define UMI_RSN_EVENT_TKIP_ICV_ERROR 0
77 #define UMI_RSN_EVENT_TKIP_MIC_FAILURE 1
78 #define UMI_RSN_EVENT_TKIP_REPLAY 2
79 #define UMI_RSN_EVENT_CCMP_MIC_FAILURE 3
80 #define UMI_RSN_EVENT_CCMP_REPLAY 4
81 #define UMI_RSN_EVENT_REKEY_PACKETS 5
82 #define UMI_RSN_EVENT_TEST_BIT(s,b) ((s) & (1 << (b))
83 #define UMI_RSN_EVENT_MASK (0x3F)
88 #endif /* !UMI_RSN_INCLUDED_H */