📄 p80211metamib.c
字号:
/* src/shared/p80211metamib.c** Defines the metadata for the MIB items** Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.* --------------------------------------------------------------------** linux-wlan** The contents of this file are subject to the Mozilla Public* License Version 1.1 (the "License"); you may not use this file* except in compliance with the License. You may obtain a copy of* the License at http://www.mozilla.org/MPL/** Software distributed under the License is distributed on an "AS* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or* implied. See the License for the specific language governing* rights and limitations under the License.** Alternatively, the contents of this file may be used under the* terms of the GNU Public License version 2 (the "GPL"), in which* case the provisions of the GPL are applicable instead of the* above. If you wish to allow the use of your version of this file* only under the terms of the GPL and not to allow others to use* your version of this file under the MPL, indicate your decision* by deleting the provisions above and replace them with the notice* and other provisions required by the GPL. If you do not delete* the provisions above, a recipient may use your version of this* file under either the MPL or the GPL.** --------------------------------------------------------------------** Inquiries regarding the linux-wlan Open Source project can be* made directly to:** AbsoluteValue Systems Inc.* info@linux-wlan.com* http://www.linux-wlan.com** --------------------------------------------------------------------** Portions of the development of this software were funded by * Intersil Corporation as part of PRISM(R) chipset product development.** --------------------------------------------------------------------** This file contains the arrays defining the metadata for each 802.11 * MIB items.** This file contains only initialized variable definitions, no functions.* --------------------------------------------------------------------** The following MIB's are read-write according to the IEEE 802.11 standard* but seem to be read-only with the Prism2. They have been made read-only* here:** dot11AssociationResponseTimeOut* dot11ShortRetryLimit* dot11LongRetryLimit* dot11MaxTransmitMSDULifetime* dot11MaxReceiveLifetime* dot11CurrentChannel* dot11CurrentCCAMode** The following MIB's do not seem to be implemented by the Prism2. They* have been flagged as unimplemented (i.e. neither read nor write) here:** dot11AuthenticationResponseTimeOut (Station)* dot11MediumOccupancyLimit (AP)* dot11CFPPeriod (AP)* dot11CFPMaxDuration (AP)* p2EarlyBeacon (AP)* p2CnfMediumOccupancyLimit (AP)* p2CnfCFPPeriod (AP)* p2CnfCFPMaxDuration (AP)* p2CnfCFPFlags (AP)* p2CnfPriorityQUsage (Station & AP)* p2CnfTIMCtrl (Station & AP)* p2CnfThirty2Tally (Station & AP)* p2CnfExcludeLongPreamble (AP)* p2CnfAuthenticationRspTO (Station)*//*================================================================*//* System Includes */#include <stdlib.h>/*================================================================*//* Project Includes */#include <wlan/wlan_compat.h>#include <wlan/p80211types.h>#include <wlan/p80211meta.h>#include <wlan/p80211metamib.h>/*================================================================*//* Local Constants *//*================================================================*//* Local Macros *//*================================================================*//* Local Types *//*================================================================*//* Local Static Definitions */extern UINT32 MKMIBMETASIZE(p80211Table);p80211meta_t MKMIBMETANAME(p80211Table)[] = {{ /* name */ (char *)&(MKMIBMETASIZE(p80211Table)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL},{ /* name */ MKITEMNAME("p80211_ifstate"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(ifstate), /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},};UINT32 MKMIBMETASIZE(p80211Table) = sizeof(MKMIBMETANAME(p80211Table)) / sizeof(p80211meta_t);extern UINT32 MKMIBMETASIZE(dot11StationConfigTable);p80211meta_t MKMIBMETANAME(dot11StationConfigTable)[] = {{ /* name */ (char *)&(MKMIBMETASIZE(dot11StationConfigTable)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL},{ /* name */ MKITEMNAME("dot11StationID"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 6, /* minlen */ 6, /* enumptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* ??????? Appears to be not supported by Prism2! ??????? */ /* name */ MKITEMNAME("dot11MediumOccupancyLimit"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 1000, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11CFPollable"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(truth), /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* ??????? Appears to be not supported by Prism2! ??????? */ /* name */ MKITEMNAME("dot11CFPPeriod"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 255, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* ??????? Appears to be not supported by Prism2! ??????? */ /* name */ MKITEMNAME("dot11CFPMaxDuration"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 65535, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* ??????? Appears to be not supported by Prism2! ??????? */ /* name */ MKITEMNAME("dot11AuthenticationResponseTimeOut"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11PrivacyOptionImplemented"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(truth), /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* name */ MKITEMNAME("dot11PowerManagementMode"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(powermgmt), /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* name */ MKITEMNAME("dot11DesiredSSID"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 32, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_displaystr, /* fromtextptr */ p80211_fromtext_displaystr, /* validfunptr */ p80211_isvalid_displaystr},{ /* name */ MKITEMNAME("dot11DesiredBSSType"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ &MKENUMNAME(bsstype), /* totextptr */ p80211_totext_enumint, /* fromtextptr */ p80211_fromtext_enumint, /* validfunptr */ p80211_isvalid_enumint},{ /* name */ MKITEMNAME("dot11OperationalRateSet"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 126, /* minlen */ 1, /* enumptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("dot11BeaconPeriod"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 1, /* max */ 65535, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11DTIMPeriod"), /* did */ P80211DID_ACCESS_READ | P80211DID_ACCESS_WRITE, /* flags */ 0, /* min */ 1, /* max */ 255, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* ??????? Read-write in 802.11 but read-only for Prism2! ??????? */ /* name */ MKITEMNAME("dot11AssociationResponseTimeOut"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11DisassociateReason"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 1, /* max */ 9, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11DisassociateStation"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 6, /* minlen */ 6, /* enumptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("dot11DeauthenticateReason"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 1, /* max */ 9, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11DeauthenticateStation"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 6, /* minlen */ 6, /* enumptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr},{ /* name */ MKITEMNAME("dot11AuthenticateFailStatus"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 1, /* max */ 18, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ p80211_totext_int, /* fromtextptr */ p80211_fromtext_int, /* validfunptr */ p80211_isvalid_int},{ /* name */ MKITEMNAME("dot11AuthenticateFailStation"), /* did */ P80211DID_ACCESS_READ, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 6, /* minlen */ 6, /* enumptr */ NULL, /* totextptr */ p80211_totext_octetstr, /* fromtextptr */ p80211_fromtext_octetstr, /* validfunptr */ p80211_isvalid_octetstr} };UINT32 MKMIBMETASIZE(dot11StationConfigTable) = sizeof(MKMIBMETANAME(dot11StationConfigTable)) / sizeof(p80211meta_t);extern UINT32 MKMIBMETASIZE(dot11AuthenticationAlgorithmsTable);p80211meta_t MKMIBMETANAME(dot11AuthenticationAlgorithmsTable)[] = {{ /* name */ (char *)&(MKMIBMETASIZE(dot11AuthenticationAlgorithmsTable)), /* did */ 0, /* flags */ 0, /* min */ 0, /* max */ 0, /* maxlen */ 0, /* minlen */ 0, /* enumptr */ NULL, /* totextptr */ NULL, /* fromtextptr */ NULL, /* validfunptr */ NULL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -