📄 umi.h
字号:
/***************************************************************************
**
** NAME UMI_BSS_FOUND_0 and UMI_BSS_FOUND_IE
**
** PARAMETERS u16SegmentNum The BSS Found indication is a multi segment
** message. This parameter indicates which segment
** this is.
** sBSSID The identifier of the BSS that has been
** found.
** sSSID The Service Set Identifier of the BSS.
** TSFTimeStamp Beacon timestamp
** u16BeaconPeriod Beacon period in kus
** u16CapInfo The capabilities word from the beacon
** u16Rssi RSSI from receive status
** u16ATIMWindow ATIM Window size
** u32BasicRateSet the BSS's mandatory rates
** u32CommonRateSet the BSS's supported rates
** u16Channel The channel on which the BSS was found
** u16NetworkTypeInUse The protocol we are using (A,B, or G)
** sRsnCaps The RSN info extracted from the RSN IE's
**
** DESCRIPTION This message will be sent by the Upper MAC during a scan
** to report a Network each time that one is discovered.
**
****************************************************************************/
// maintain proper alignment of struct members:
PREPACK typedef struct
{
uint16 u16SegmentNum;
IEEE_ADDR sBSSID;
MIB_ESS_ID sSSID;
uint16 u16BeaconPeriod;
uint16 u16CapInfo;
int16 i16Rssi;
TSF TSFTimeStamp;
uint32 u32BasicRateSet;
uint32 u32CommonRateSet;
uint32 u32Snr;
UMI_RSN_CAPS sWpaCaps;
UMI_RSN_CAPS sRsnCaps;
uint16 u16ATIMWindow;
uint16 u16Channel;
uint16 u16NetworkTypeInUse;
bool boLocalPwrCnstrntValid;
uint8 u8LocalPwrConstraintdb;
} POSTPACK UMI_BSS_FOUND_0;
PREPACK typedef struct
{
uint16 u16SegmentNum;
IEEE_ADDR sBSSID;
uint8 u8ElementId;
uint8 u8Length;
uint8 au8VariableIePayload[255];
} POSTPACK UMI_BSS_FOUND_IE;
/***************************************************************************
**
** NAME UM_MAN_BSS_FOUND_RES
**
** PARAMETERS none
**
** DESCRIPTION: Returns message buffer
**
****************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_ACTIVATE_REQ
**
** PARAMETERS sBSSID The ID which identifies the Network to
** be created or connected to. If the node
** is a Infrastructure Station and a null
** MAC Address is specified then the
** request is interpreted to mean join any
** suitable network.
** sSSID The Service Set Identifier of the ESS
**
** DESCRIPTION Activate Request. This request should be sent to the Upper
** MAC to start or connect to a network.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
uint16 u16PreferredChannel;
uint16 u16BSStype;
IEEE_ADDR sBSSID;
MIB_ESS_ID sSSID;
bool boUseMibSecurityIEs;
} POSTPACK UMI_ACTIVATE;
/***************************************************************************
**
** NAME MC_MAN_ACTIVATE_CFM
**
** PARAMETERS u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_BAD_PARAMETER
** UMI_BSS_ALREADY_ACTIVE
** UMI_NOT_ENABLED
** UMI_BSS_UNKNOWN
**
** DESCRIPTION: Confirmation of an activate request.
**
****************************************************************************/
/* UMI_ACTIVATE */
/***************************************************************************
**
** NAME MC_MAN_NETWORK_EVENT_IND
**
** PARAMETERS sBSSID The ID which identifies this Network
** u16BSSstatus UMI_BSS_CREATED
** UMI_BSS_CONNECTED
** UMI_BSS_DISCONNECTED
** UMI_BSS_ID_CHANGED
** UMI_BSS_LOST
** UMI_BSS_FAILED
** u16CFflag Infrastructure Connection only -
** indicates whether the Access Point has a
** Point Coordinator function:
** UMI_HAS_PCF
** UMI_NO_PCF
** u16Reason Disconnection only - indicates the reason
** for disassociation as defined in the
** 802.11a specification.
** u8RFchannel The RF channel number on which the channel
** switch has taken place. (valid for
** UMI_BSS_CHANNEL_SWITCH reason only)
**
** DESCRIPTION Network Event Indication. This message will be sent by the
** Upper MAC to indicate changes in condition of the Network.
**
****************************************************************************/
PREPACK typedef struct
{
IEEE_ADDR sBSSID;
uint16 u16BSSstatus;
uint16 u16CFflag;
uint16 u16Reason;
uint8 u8RFchannel; // valid for UMI_BSS_CHANNEL_SWITCH reason only
} POSTPACK UMI_NETWORK_EVENT;
/***************************************************************************
**
** NAME UM_MAN_NETWORK_EVENT_RES
**
** PARAMETERS none
**
** DESCRIPTION Return message buffer
**
****************************************************************************/
/***************************************************************************
**
** NAME MC_MAN_CONNECTION_EVENT_IND
**
** PARAMETERS u16Event UMI_CONNECTED
** UMI_RECONNECTED
** UMI_DISCONNECTED
** sStationID The MAC Address of the station to which
** the event applies. For a STA, this is
** the IEEE address of the AP to which we
** are currently associated.
** sPrevBSSID Reconnection only - indicates the
** previous BSS that the station was
** associated with.
** u16Reason Disconnection only - indicates the reason
** for disassociation as defined in the
** 802.11a specification.
** u16ReqCapability The Capability IE sent in the last
** Associate Request
** u16ResCapability The Capability IE received in a
** successful Associate Response
** u16AssociationId The Association Id received in a
** successful Associate Response
** u16RSNmode Specified if connecting station
** supports RSN
** sRsnCaps The RSN info that was used in the
** request for this association
** u16ListenInterval The Listen Interval specified in the
** Association Request
** u8RFchannel The RF channel number on which the connection or
** reconnection has taken place.
** boApRcpiValid Indicates whether the i8ApReportedRcpi
** (see next parameter) is valid for use by TPC
** i8ApReportedRcpi Received Channel Power Indicator (TPC
** parameter) that was reported by the AP for
** the last (Re)Association Request Frame that
** the AP received from this device.
**
**
** DESCRIPTION Connection Event Indication. This message is sent to indicate
** when Stations connect, disconnect and reconnect to the
** network.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Event;
IEEE_ADDR sStationID;
IEEE_ADDR sPrevBSSID;
uint16 u16Reason;
uint16 u16ReqCapability;
uint16 u16ResCapability;
uint16 u16AssociationId;
uint16 u16RSNmode;
UMI_RSN_CAPS sRsnCaps;
uint16 u16ListenInterval;
uint16 u16IEEEdisconnectReason; // contains 802.11 IEEE reason code from deauthen/disassoc frame
uint8 u8RFchannel; // valid for CONNECTED or RECONNECTED events only
bool boApRcpiValid; // TPC parameter
int8 i8ApReportedRcpi; // TPC parameter
bool boUsedMibSecurityIEs; // valid for CONNECTED or RECONNECTED events only
} POSTPACK UMI_CONNECTION_EVENT;
/***************************************************************************
**
** NAME UM_MAN_CONNECTION_EVENT_RES
**
** PARAMETERS none
**
** DESCRIPTION Returns message buffer
**
****************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_DISCONNECT_REQ
**
** PARAMETERS sStationID Address of station (AP only).
** u16ReasonCode Reason for disassociation (FM_REASON_CODE)
**
** DESCRIPTION Disconnect Request. This message is only sent within Access
** Points to request disassociation of a Station from the BSS.
**
****************************************************************************/
PREPACK typedef struct
{
IEEE_ADDR sStationID;
uint16 u16Status;
uint16 u16ReasonCode;
} POSTPACK UMI_DISCONNECT;
/***************************************************************************
**
** NAME MC_MAN_DISCONNECT_CFM
**
** PARAMETERS sStationID Address of station (AP only).
** u16Status UMI_OK
** UMI_STATION_NOT_FOUND
**
** DESCRIPTION Disconnect Confirm
**
****************************************************************************/
/* UMI_DISCONNECT */
/***************************************************************************
**
** NAME UM_MAN_GET_RSSI_REQ
**
** PARAMETERS sStationID The MAC Address for which an RSSI value
** is desired.
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_STATION_UNKNOWN
**
** DESCRIPTION Get Receive Signal Strength Request
**
****************************************************************************/
PREPACK typedef struct
{
IEEE_ADDR sStationID;
uint16 u16Status;
int16 i16RSSIvalue;
} POSTPACK UMI_GET_RSSI;
/***************************************************************************
**
** NAME MC_MAN_GET_RSSI_CFM
**
** PARAMETERS sStationID The MAC Address for which an RSSI value
** is required.
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_STATION_UNKNOWN
** u8RSSIvalue The reported RSSI value.
**
** DESCRIPTION Get Receive Signal Strength Confirm
**
****************************************************************************/
/* UMI_GET_RSSI */
/***************************************************************************
**
** NAME MC_MAN_STA_WAKEUP_IND
**
** PARAMETERS none.
**
** DESCRIPTION STA has woken up (transition from Slow Clock to Fast Clock
** is complete, so Host may now transfer TX data frames)
**
****************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_STA_WAKEUP_RES
**
**
** DESCRIPTION Response to MC_MAN_STA_WAKEUP_IND
**
****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -