blob: 2b6c1726c9dc0d13e021d86e5decd1730795cdac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/*
* Header files of SNMP MIB module
*
* $Id: 8192cd_mib.h,v 1.1 2009/11/06 12:26:48 victoryman Exp $
*
* Copyright (c) 2009 Realtek Semiconductor Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef _8192CD_MIB_H_
#define _8192CD_MIB_H_
#define MAX_MIB_TREE_NUM 580
#define MAX_OID_LEVEL 10
#define PRIV_OFFSET(field) ((int)(long *)&(((struct wifi_mib *)0)->field))
#define PRIV_SIZE(field) sizeof(((struct wifi_mib *)0)->field)
#define SNMP_OFFSET(field) ((int)(long *)&(((struct mib_snmp *)0)->field))
#define SNMP_SIZE(field) sizeof(((struct mib_snmp *)0)->field)
enum { MIB_TYPE_VAL=1, MIB_TYPE_PRIV, MIB_TYPE_SNMP, MIB_TYPE_SNMP1 };
enum { VAL_OCTET, VAL_STR, VAL_NULL };
struct mib_entry {
int id;
struct mib_entry *next_level;
struct mib_entry *next_node;
struct mib_val *val;
};
struct mib_val {
int oid[MAX_OID_LEVEL];
char *name;
int type;
int offset;
int size;
};
struct mib_snmp {
unsigned char dot11AuthenticationAlgorithmsEnableOpen;
unsigned char dot11AuthenticationAlgorithmsEnableShared;
unsigned char dot11WEPDefaultKey1[13];
unsigned char dot11WEPDefaultKey2[13];
unsigned char dot11WEPDefaultKey3[13];
unsigned char dot11WEPDefaultKey4[13];
unsigned char dot11WEPDefaultKeyLen;
unsigned char dot11SupportedDataRatesNum;
unsigned int dot11SupportedDataRatesSet[12];
unsigned char dot11OperationalRateSet[12];
int dot11DesiredBSSType;
int dot11DisassociateReason;
unsigned char dot11DisassociateStation[6];
int dot11DeauthenticateReason;
unsigned char dot11DeauthenticateStation[6];
int dot11AuthenticateFailStatus;
unsigned char dot11AuthenticateFailStation[6];
int dot11PrivacyInvoked;
int dot11WEPICVErrorCount;
int dot11WEPExcludedCount;
int dot11TransmittedFragmentCount;
int dot11MulticastTransmittedFrameCount;
int dot11FailedCount;
int dot11RetryCount;
int dot11MultipleRetryCount;
int dot11FrameDuplicateCount;
int dot11RTSSuccessCount;
int dot11RTSFailureCount;
int dot11ACKFailureCount;
int dot11ReceivedFragmentCount;
int dot11MulticastReceivedFrameCount;
int dot11FCSErrorCount;
int dot11TransmittedFrameCount;
int dot11WEPUndecryptableCount;
int dot11CurrentRegDomain;
int dot11CurrentTxAntenna;
int dot11DataRate;
int dot11PowerScale;
struct mib_entry mib_list[MAX_MIB_TREE_NUM];
int tree_used_index;
struct mib_entry *mib_tree;
};
#endif // _8192CD_MIB_H_
|