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 11 // 12 // Copyright (c) 2003 Winbond Electronics Corp. All rights reserved. 13 //============================================================================ 14 15 #ifndef _MLME_MIB_H 16 #define _MLME_MIB_H 17 18 //============================================================================ 19 // MLMESetExcludeUnencrypted -- 20 // 21 // Description: 22 // Set the dot11ExcludeUnencrypted value. 23 // 24 // Arguments: 25 // adapter - The pointer to the miniport adapter context. 26 // ExUnencrypted - unsigned char type. The value to be set. 27 // 28 // Return values: 29 // None. 30 //============================================================================ 31 #define MLMESetExcludeUnencrypted(adapter, ExUnencrypted) \ 32 { \ 33 (adapter)->sLocalPara.ExcludeUnencrypted = ExUnencrypted; \ 34 } 35 36 //============================================================================ 37 // MLMEGetExcludeUnencrypted -- 38 // 39 // Description: 40 // Get the dot11ExcludeUnencrypted value. 41 // 42 // Arguments: 43 // adapter - The pointer to the miniport adapter context. 44 // 45 // Return values: 46 // unsigned char type. The current dot11ExcludeUnencrypted value. 47 //============================================================================ 48 #define MLMEGetExcludeUnencrypted(adapter) ((unsigned char) (adapter)->sLocalPara.ExcludeUnencrypted) 49 50 //============================================================================ 51 // MLMESetMaxReceiveLifeTime -- 52 // 53 // Description: 54 // Set the dot11MaxReceiveLifeTime value. 55 // 56 // Arguments: 57 // adapter - The pointer to the miniport adapter context. 58 // ReceiveLifeTime- u32 type. The value to be set. 59 // 60 // Return values: 61 // None. 62 //============================================================================ 63 #define MLMESetMaxReceiveLifeTime(adapter, ReceiveLifeTime) \ 64 { \ 65 (adapter)->Mds.MaxReceiveTime = ReceiveLifeTime; \ 66 } 67 68 //============================================================================ 69 // MLMESetMaxReceiveLifeTime -- 70 // 71 // Description: 72 // Get the dot11MaxReceiveLifeTime value. 73 // 74 // Arguments: 75 // adapter - The pointer to the miniport adapter context. 76 // 77 // Return values: 78 // u32 type. The current dot11MaxReceiveLifeTime value. 79 //============================================================================ 80 #define MLMEGetMaxReceiveLifeTime(adapter) ((u32) (adapter)->Mds.MaxReceiveTime) 81 82 #endif 83 84 85