GFS2: Check for glock already held in gfs2_getxattr
[deliverable/linux.git] / drivers / staging / csr / csr_wifi_private_common.h
1 /*****************************************************************************
2
3 (c) Cambridge Silicon Radio Limited 2011
4 All rights reserved and confidential information of CSR
5
6 Refer to LICENSE.txt included with this source for details
7 on the license terms.
8
9 *****************************************************************************/
10
11 #ifndef CSR_WIFI_PRIVATE_COMMON_H__
12 #define CSR_WIFI_PRIVATE_COMMON_H__
13
14 /**
15 * @brief maximum number of STAs allowed to be connected
16 *
17 * @par Description
18 * min & max Beacon Interval
19 */
20 #define CSR_WIFI_AP_MAX_ASSOC_STA 8
21
22 /** Number of only b rates */
23 #define CSR_WIFI_SME_AP_MAX_ONLY_B_RATES 4
24
25
26 /** Number of mandatory b rates */
27 #define CSR_WIFI_SME_AP_MAX_MANDATORY_B_RATES 2
28
29
30 /** Number of mandatory bg rates */
31 #define CSR_WIFI_SME_AP_MAX_MANDATORY_BG_RATES 4
32
33
34 /** Number of bg rates */
35 #define CSR_WIFI_SME_AP_MAX_BG_RATES 12
36
37
38 /** Number of no b only g rates */
39 #define CSR_WIFI_SME_AP_MAX_NO_B_ONLY_G_RATES 8
40
41
42 /** Number of mandatory g rates */
43 #define CSR_WIFI_SME_AP_MAX_MANDATORY_G_RATES 7
44
45
46 /* Number of g mandatory rates */
47 #define CSR_WIFI_SME_AP_G_MANDATORY_RATES_NUM 7
48
49
50 /* Number of b mandatory rates */
51 #define CSR_WIFI_SME_AP_B_MANDATORY_RATES_NUM 2
52
53
54 /* Number of b/g mandatory rates */
55 #define CSR_WIFI_SME_AP_BG_MANDATORY_RATES_NUM 4
56
57
58 /* The maximum allowed length of SSID */
59 #define CSR_WIFI_SME_AP_SSID_MAX_LENGTH 32
60
61 /* Refer 8.4.2.27 RSN element - we support TKIP, WPA2, WAPI and PSK only, no pmkid, group cipher suite */
62 #define CSR_WIFI_SME_RSN_PACKED_SIZE (1 + 1 + 2 + 4 + 2 + 4 * 2 + 2 + 4 * 1 + 2 + 24)
63
64 /* Refer 7.3.2.9 (ISO/IEC 8802-11:2006) WAPI element - we support WAPI PSK only, no bkid, group cipher suite */
65 #define CSR_WIFI_SME_WAPI_PACKED_SIZE (1 + 1 + 2 + 2 + 4 * 1 + 2 + 4 * 1 + 4 + 2 + 24)
66
67
68 /* Common structure for NME and SME to maintain Interface mode*/
69 typedef u8 CsrWifiInterfaceMode;
70 #define CSR_WIFI_MODE_NONE ((CsrWifiInterfaceMode) 0xFF)
71 #define CSR_WIFI_MODE_STA ((CsrWifiInterfaceMode) 0x00)
72 #define CSR_WIFI_MODE_AP ((CsrWifiInterfaceMode) 0x01)
73 #define CSR_WIFI_MODE_P2P_DEVICE ((CsrWifiInterfaceMode) 0x02)
74 #define CSR_WIFI_MODE_P2P_CLI ((CsrWifiInterfaceMode) 0x03)
75 #define CSR_WIFI_MODE_P2P_GO ((CsrWifiInterfaceMode) 0x04)
76 #define CSR_WIFI_MODE_AMP ((CsrWifiInterfaceMode) 0x05)
77 #define CSR_WIFI_MODE_WPS_ENROLLEE ((CsrWifiInterfaceMode) 0x06)
78 #define CSR_WIFI_MODE_IBSS ((CsrWifiInterfaceMode) 0x07)
79
80 #endif
81
This page took 0.032216 seconds and 5 git commands to generate.