Staging: add w35und wifi driver
[linux-2.6/mini2440.git] / drivers / staging / winbond / mlme_mib.h
blob89759739cbacf3e63f004f7e1444d0596e65ec79
1 //============================================================================
2 // MLMEMIB.H -
3 //
4 // Description:
5 // Get and Set some of MLME MIB attributes.
6 //
7 // Revision history:
8 // --------------------------------------------------------------------------
9 // 20030117 PD43 Austin Liu
10 // Initial release
12 // Copyright (c) 2003 Winbond Electronics Corp. All rights reserved.
13 //============================================================================
15 #ifndef _MLME_MIB_H
16 #define _MLME_MIB_H
18 //============================================================================
19 // MLMESetExcludeUnencrypted --
21 // Description:
22 // Set the dot11ExcludeUnencrypted value.
24 // Arguments:
25 // Adapter - The pointer to the miniport adapter context.
26 // ExUnencrypted - unsigned char type. The value to be set.
28 // Return values:
29 // None.
30 //============================================================================
31 #define MLMESetExcludeUnencrypted(Adapter, ExUnencrypted) \
32 { \
33 (Adapter)->sLocalPara.ExcludeUnencrypted = ExUnencrypted; \
36 //============================================================================
37 // MLMEGetExcludeUnencrypted --
39 // Description:
40 // Get the dot11ExcludeUnencrypted value.
42 // Arguments:
43 // Adapter - The pointer to the miniport adapter context.
45 // Return values:
46 // unsigned char type. The current dot11ExcludeUnencrypted value.
47 //============================================================================
48 #define MLMEGetExcludeUnencrypted(Adapter) ((unsigned char) (Adapter)->sLocalPara.ExcludeUnencrypted)
50 //============================================================================
51 // MLMESetMaxReceiveLifeTime --
53 // Description:
54 // Set the dot11MaxReceiveLifeTime value.
56 // Arguments:
57 // Adapter - The pointer to the miniport adapter context.
58 // ReceiveLifeTime- u32 type. The value to be set.
60 // Return values:
61 // None.
62 //============================================================================
63 #define MLMESetMaxReceiveLifeTime(Adapter, ReceiveLifeTime) \
64 { \
65 (Adapter)->Mds.MaxReceiveTime = ReceiveLifeTime; \
68 //============================================================================
69 // MLMESetMaxReceiveLifeTime --
71 // Description:
72 // Get the dot11MaxReceiveLifeTime value.
74 // Arguments:
75 // Adapter - The pointer to the miniport adapter context.
77 // Return values:
78 // u32 type. The current dot11MaxReceiveLifeTime value.
79 //============================================================================
80 #define MLMEGetMaxReceiveLifeTime(Adapter) ((u32) (Adapter)->Mds.MaxReceiveTime)
82 #endif