-- *****************************************************************
-- Ati802-WIRELESS-MIB.my:  Ati802 WIRELESS Information
--
-- September 2004, Sergiy Lozovsky
--
-- Copyright (c) 2004 by Allied Telesis, Inc.
-- All rights reserved.
--
-- *****************************************************************
--
-- **********************************************************************
-- * IEEE 802.11 MIB
-- **********************************************************************
ATI-WIRELESS-MIB DEFINITIONS ::= BEGIN
IMPORTS
        MODULE-IDENTITY, OBJECT-TYPE,
        NOTIFICATION-TYPE,Integer32, Counter32,
        Unsigned32 FROM SNMPv2-SMI
        DisplayString , MacAddress, RowStatus,
        TruthValue FROM SNMPv2-TC
        MODULE-COMPLIANCE, OBJECT-GROUP,
        NOTIFICATION-GROUP FROM SNMPv2-CONF
        ifIndex FROM RFC1213-MIB
        InterfaceIndex FROM IF-MIB
	      ati-wireless-mib,ati802Mgmt FROM Ati-SMI;
-- **********************************************************************
-- * MODULE IDENTITY
-- **********************************************************************
i802Wireless MODULE-IDENTITY
        LAST-UPDATED "200409110000Z"
        ORGANIZATION "Allied Telesis, Inc."
        CONTACT-INFO
		"	Allied Telesis, Inc.
            Maggie X. Wu

		Postal: 3200 North First Street
                San Jose, CA 95134
			    USA

		   Tel: +1 408 519-8766

		E-mail: maggie_wu@alliedtelesyn.com"
        DESCRIPTION
            "The Structure of Management Information for the
            Allied Telesis Wireless subsystem."
        REVISION      "200409110000Z"
        DESCRIPTION
                "Initial version."
        ::= { ati-wireless-mib 2 }

        i802wmac OBJECT IDENTIFIER ::= { i802Wireless 2 }
                -- MAC GROUPS
                -- reference IEEE Std 802.1f-1993
                -- dot11OperationTable ::= { dot11mac 1 }
                -- dot11CountersTable ::= { dot11mac 2 }
                -- dot11GroupAddressesTable ::= { dot11mac 3 }
                -- dot11peerStatsTable ::= { dot11mac 4 }
                -- Resource Type ID

-- **********************************************************************
-- * Major sections
-- **********************************************************************
-- Station ManagemenT (SMT) Attributes
-- DEFINED AS "The SMT object class provides the necessary support
-- at the station to manage the processes in the station such that
-- the station may work cooperatively as a part of an IEEE 802.11
-- network."
i802wsmt OBJECT IDENTIFIER ::= { i802Wireless 1 }

-- **********************************************************************
-- * Textual conventions from 802 definitions
-- **********************************************************************
        WEPKeytype ::= OCTET STRING (SIZE (5))
        TSFType ::= OCTET STRING (SIZE (8))

-- ********************************************************************
-- * Radio Resource Management
-- ********************************************************************
i802wRadioResourceManagement OBJECT IDENTIFIER ::= { i802wsmt 13 }

-- ********************************************************************
-- * Radio Resource Measurement Reports
-- * Report tables contain measurement reports received by this STA or
-- * results of measurements performed by this STA.
-- ********************************************************************

        i802wRRMReport OBJECT IDENTIFIER ::= { i802wRadioResourceManagement 2 }

--**********************************************************************
--* i802wpeerStatsTable TABLE
--**********************************************************************

        i802wpeerStatsTable OBJECT-TYPE
                SYNTAX SEQUENCE OF I802wpeerStatsEntry
                MAX-ACCESS not-accessible
                STATUS current
                DESCRIPTION
                        "This table contains statistics for peer STAs. The following peer STAs
                        appear in this table:
                        1. Authenticated peer STAs must appear in this table. Their
                        entries must not be removed until at least
                        dot11peerStatsTableBSSaging seconds have passed after they are
                        marked as deauthenticated.
                        2. Peer STAs joined to the same IBSS as this STA that have
                        sent any data frame to this STA must appear in this table.
                        Entries for these peer STAs may be removed when this STA is
                        no longer joined to the same IBSS, or if dot11peerStatsTableIBSSaging
                        seconds have passed since a data frame was exchanged with the peer STA.
                        3. Other peer STAs may be included in this table."
        ::= { i802wmac 4 }

        i802wpeerStatsEntry OBJECT-TYPE
                SYNTAX I802wpeerStatsEntry
                MAX-ACCESS not-accessible
                STATUS current
                DESCRIPTION
                        "An entry in the Dot11peerStaStatsEntry Table.
                        Indexed by ifIndex and the MAC address of the remote
                        STA dot11peerStaAddress"
                INDEX
                {
                        ifIndex,
                        i802wpeerAddress
                }
        ::= { i802wpeerStatsTable 1 }
        I802wpeerStatsEntry ::=
                SEQUENCE
                {
                        i802wpeerAddress MacAddress,
                        i802wpeerTransmittedFragmentCount Counter32,
                        i802wpeerMulticastTransmittedFrameCount Counter32,
                        i802wpeerFailedCount Counter32,
                        i802wpeerRetryCount Counter32,
                        i802wpeerMultipleRetryCount Counter32,
                        i802wpeerFrameDuplicateCount Counter32,
                        i802wpeerRTSSuccessCount Counter32,
                        i802wpeerRTSFailureCount Counter32,
                        i802wpeerACKFailureCount Counter32,
                        i802wpeerReceivedFragmentCount Counter32,
                        i802wpeerMulticastReceivedFrameCount Counter32,
                        i802wpeerTransmittedFrameCount Counter32,
                        i802wpeerWEPUndecryptableCount Counter32,
                        i802wpeerWEPDecryptionFailureCount Counter32,
                        i802wpeerReceivedByteCount Counter32,
                        i802wpeerTransmittedByteCount Counter32,
                        i802wpeerReceivedBeaconCount Counter32,
                        i802wpeerLastReceivedRCPI INTEGER,
			i802wpeerAssociateStatus TruthValue,
			i802wpeerAuthenticateStatus TruthValue
                }

        i802wpeerAddress OBJECT-TYPE
                SYNTAX MacAddress
                MAX-ACCESS read-create
                STATUS current
                DESCRIPTION
                        "MAC address identifying a peer STA."
        ::= { i802wpeerStatsEntry 1 }

        i802wpeerTransmittedFragmentCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall be incremented for an acknowledged MPDU
                        with an individual address in the address 1 field or an MPDU
                        with a multicast address in the address 1 field of type Data
                        or Management."
        ::= { i802wpeerStatsEntry 2 }

        i802wpeerMulticastTransmittedFrameCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment only when the multicast bit
                        is set in the destination MAC address of a successfully
                        transmitted MSDU. When operating as a STA in an ESS, where
                        these frames are directed to the AP, this implies having
                        received an acknowledgment to all associated MPDUs."
        ::= { i802wpeerStatsEntry 3 }

        i802wpeerFailedCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when an MSDU is not transmitted
                        successfully due to the number of transmit attempts exceeding
                        either the dot11ShortRetryLimit or dot11LongRetryLimit."
        ::= { i802wpeerStatsEntry 4 }

        i802wpeerRetryCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when an MSDU is successfully
                        transmitted after one or more retransmissions."
        ::= { i802wpeerStatsEntry 5 }

        i802wpeerMultipleRetryCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when an MSDU is successfully
                        transmitted after more than one retransmission."
        ::= { i802wpeerStatsEntry 6 }

        i802wpeerFrameDuplicateCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when a frame is received
                        that the Sequence Control field indicates is a duplicate."
        ::= { i802wpeerStatsEntry 7 }

        i802wpeerRTSSuccessCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when a CTS is received in
                        response to an RTS."
        ::= { i802wpeerStatsEntry 8 }

        i802wpeerRTSFailureCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when a CTS is not received in
                        response to an RTS."
        ::= { i802wpeerStatsEntry 9 }

        i802wpeerACKFailureCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when an ACK is not received
                        when expected."
        ::= { i802wpeerStatsEntry 10 }

        i802wpeerReceivedFragmentCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall be incremented for each successfully
                        received MPDU of type Data or Management."
        ::= { i802wpeerStatsEntry 11 }

        i802wpeerMulticastReceivedFrameCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when a MSDU is received
                        with the multicast bit set in the destination MAC address."
        ::= { i802wpeerStatsEntry 12 }

        i802wpeerTransmittedFrameCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment for each successfully
                        transmitted MSDU."
        ::= { i802wpeerStatsEntry 13 }

        i802wpeerWEPUndecryptableCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This counter shall increment when a frame is received with
                        the WEP subfield of the Frame Control field set to one and the
                        WEPOn value for the key mapped to the TA's MAC address
                        indicates that the frame should not have been encrypted
                        that frame is discarded due to the receiving STA not
                        implementing the privacy option."
        ::= { i802wpeerStatsEntry 14 }

        i802wpeerWEPDecryptionFailureCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "empty"
        ::= { i802wpeerStatsEntry 15 }

        i802wpeerReceivedByteCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "empty"
        ::= { i802wpeerStatsEntry 16 }

	i802wpeerTransmittedByteCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "empty"
        ::= { i802wpeerStatsEntry 17 }

        i802wpeerReceivedBeaconCount OBJECT-TYPE
                SYNTAX Counter32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "empty"
        ::= { i802wpeerStatsEntry 18 }

        i802wpeerLastReceivedRCPI OBJECT-TYPE
                SYNTAX INTEGER (0..255)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "The RCPI from the most recently received frame, or 0 if no
                        frames have been received."
        ::= { i802wpeerStatsEntry 19  }

        i802wpeerAssociateStatus OBJECT-TYPE
                SYNTAX TruthValue
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "Associate status"
        ::= { i802wpeerStatsEntry 20  }

        i802wpeerAuthenticateStatus OBJECT-TYPE
                SYNTAX TruthValue
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "Authenticate status"
        ::= { i802wpeerStatsEntry 21  }

-- ********************************************************************
-- * End of i802wpeerStatsTable TABLE
-- ********************************************************************

-- ********************************************************************
-- * i802wBeaconReport TABLE
-- ********************************************************************

        i802wBeaconReportTable OBJECT-TYPE
                SYNTAX SEQUENCE OF I802wBeaconReportEntry
                MAX-ACCESS not-accessible
                STATUS current
                DESCRIPTION
                        "Group contains the current list of Beacon report that have been received by
                        the MLME. The report tables shall be maintained as FIFO to preserve
                        freshness, thus the rows in this table can be deleted for memory constraints
                        or other implementation constraints determined by the vendor. New rows shall
                        have different RprtIndex values than those deleted within the range
                        limitation of the index. One easy way is to monotonically increase RprtIndex
                        for new reports being written in the table."
        ::= { i802wRRMReport 3 }

        i802wBeaconReportEntry OBJECT-TYPE
                SYNTAX I802wBeaconReportEntry
                MAX-ACCESS not-accessible
                STATUS current
                DESCRIPTION
                        "An entry in the i802wBeaconReportTable Indexed by i802wBeaconRprtIndex."
                INDEX
                {
                        i802wBeaconRprtIndex
                }
        ::= { i802wBeaconReportTable 1 }

        I802wBeaconReportEntry ::=
                SEQUENCE
                {
                        i802wBeaconRprtIndex Unsigned32,
                        i802wBeaconRprtRqstToken OCTET STRING,
                        i802wBeaconRprtIfIndex InterfaceIndex,
                        i802wBeaconMeasuringSTAAddr MacAddress,
                        i802wBeaconRprtChanNumber INTEGER,
                        i802wBeaconRprtChanBand INTEGER,
                        i802wBeaconRprtActualStartTime TSFType,
                        i802wBeaconRprtMeasurementDuration Unsigned32,
                        i802wBeaconRprtPhyType INTEGER,
                        i802wBeaconRprtRCPI INTEGER,
                        i802wBeaconRprtBSSID MacAddress,
                        i802wBeaconRprtParentTSF TSFType,
                        i802wBeaconRprtTargetTSF TSFType,
                        i802wBeaconRprtBeaconInterval Unsigned32,
                        i802wBeaconRprtCFStatus INTEGER,
                        i802wBeaconRprtPrivacy TruthValue,
                        i802wBeaconRprtBSSMode INTEGER,
                        i802wBeaconRprtReceivedElements OCTET STRING,
			i802wBeaconRprtSSID OCTET STRING
                }

        i802wBeaconRprtIndex OBJECT-TYPE
                SYNTAX Unsigned32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "Index for Beacon Report elements in i802wBeaconReportTable, greater than
                        0."
        ::= { i802wBeaconReportEntry 1 }

        i802wBeaconRprtRqstToken OBJECT-TYPE
                SYNTAX OCTET STRING
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        " This attribute holds the request token that was specified in the
                        measurement request that generated this measurement report. This should be
                        an exact match to the original i802wRRMRqstToken attribute. Note that there
                        may be multiple entries in the table that match this value since a single
                        request may generate multiple measurement reports."
        ::= { i802wBeaconReportEntry 2 }

        i802wBeaconRprtIfIndex OBJECT-TYPE
                SYNTAX InterfaceIndex
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "The ifIndex for this row of Beacon Report has been received on."
        ::= { i802wBeaconReportEntry 3 }

        i802wBeaconMeasuringSTAAddr OBJECT-TYPE
                SYNTAX MacAddress
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "The MAC address of the measuring STA for this row of Beacon report."
        ::= { i802wBeaconReportEntry 4 }

        i802wBeaconRprtChanNumber OBJECT-TYPE
                SYNTAX INTEGER
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        " The channel number on which the this row of report detected beacons and
                        probe responses."
        ::= { i802wBeaconReportEntry 5 }

        i802wBeaconRprtChanBand OBJECT-TYPE
                SYNTAX INTEGER(0..1)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "Channel Band indicates the frequency band, taken from Table 0-2,
                        in which this row of beacon report has been conducted.
                        0 : 2.4 GHz
                        1 : 5 GHz
                        Other values are reserved."
        ::= { i802wBeaconReportEntry 6 }

        i802wBeaconRprtActualStartTime OBJECT-TYPE
                SYNTAX TSFType
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the TSF value at the time when the
                        measurement started."
        ::= { i802wBeaconReportEntry 7 }

        i802wBeaconRprtMeasurementDuration OBJECT-TYPE
                SYNTAX Unsigned32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the duration over which the Beacon Report was
                        measured, expressed in TUs."
        ::= { i802wBeaconReportEntry 8 }

        i802wBeaconRprtPhyType OBJECT-TYPE
                SYNTAX INTEGER(1..6)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the PHY Type for this row of Beacon Report.
                        PHY Type is defined in Table 0-7 in TGk as..
                        1: FH
                        2: DSS
                        3: unused
                        4: OFDM
                        5: High Rate DSS
                        6: ERP
                        other values are reserved."
        ::= { i802wBeaconReportEntry 9 }

        i802wBeaconRprtRCPI OBJECT-TYPE
                SYNTAX INTEGER(0..255)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This value corresponds to the Received Signal Power in the measurement
                        Report Frame for this row of Beacon Report, expressed in RCP."
        ::= { i802wBeaconReportEntry 10 }

        i802wBeaconRprtBSSID OBJECT-TYPE
                SYNTAX MacAddress
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the BSSID of the beacon for this row of
                        Beacon Report."
        ::= { i802wBeaconReportEntry 11 }

        i802wBeaconRprtParentTSF OBJECT-TYPE
                SYNTAX TSFType
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the TSF value of the serving measuring STA~Rs
                        TSF value at the time the measuring STA received the beacon or probe
                        response frame."
        ::= { i802wBeaconReportEntry 12 }

        i802wBeaconRprtTargetTSF OBJECT-TYPE
                SYNTAX TSFType
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the TSF value contained in the beacon or
                        probe response received by the measuring STA."
        ::= { i802wBeaconReportEntry 13 }

        i802wBeaconRprtBeaconInterval OBJECT-TYPE
                SYNTAX Unsigned32
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the beacon interval value contained in the
                        beacon or probe response received by the measuring STA."
        ::= { i802wBeaconReportEntry 14 }

        i802wBeaconRprtCFStatus OBJECT-TYPE
                SYNTAX INTEGER(0..2)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the combination of CF pollable, and CF-Poll
                        Request bits in the capability information contained in this row of Beacon
                        report, as in Table 17, thus indicating the contention-free capabilities of
                        the STA that this row of beacon report corresponds to.
                        0: No Point Coordinator in the AP
                        1: Point Coordinator for delivery only
                        2: Point Coordinator for delivery and polling
                        Other values are reserved."
        ::= { i802wBeaconReportEntry 15 }

        i802wBeaconRprtPrivacy OBJECT-TYPE
                SYNTAX TruthValue
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute corresponds to the Privacy subfield of the capability
                        information contained in the beacon report element corresponding to this
                        row."
        ::= { i802wBeaconReportEntry 16 }

        i802wBeaconRprtBSSMode OBJECT-TYPE
                SYNTAX INTEGER(0..2)
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute indicates whether the BSS in the beacon report element
                        corresponding to this row is in the Ad-Hoc mode or not, based on the
                        information available from the beacon report corresponding to this row.
                        0: Unknown
                        1: Infrastructure Mode
                        2: Ad-hoc Mode
                        Other values are reserved."
        ::= { i802wBeaconReportEntry 17 }

        i802wBeaconRprtReceivedElements OBJECT-TYPE
                SYNTAX OCTET STRING (SIZE(0..100))
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute contains a variable number of information elements. All
                        fields, except Timestamp, Beacon interval and Capability Information, that
                        are present in the measured beacon or probe response must be included if
                        the measured BSSID is different from the STA~Rs current BSS. The Beacon Report
                        will hereby enclose information about the 802.11 enhancements supported by the
                        STA that transmitted the beacon or probe response. All reported TIM elements
                        shall be truncated to 4 octets."
        ::= { i802wBeaconReportEntry 18 }

        i802wBeaconRprtSSID OBJECT-TYPE
                SYNTAX OCTET STRING (SIZE(0..32))
                MAX-ACCESS read-only
                STATUS current
                DESCRIPTION
                        "This attribute reflects the Service Set ID (SSID)
                        from a beacon. (Ati802 cpecific field)"
        ::= { i802wBeaconReportEntry 19 }
               
        

                 
               
               
-- ********************************************************************
-- * End of i802wBeaconReport TABLE
-- ********************************************************************
END

