📄 umi.h
字号:
****************************************************************************/
/***************************************************************************
**
** NAME MC_MAN_RX_MEAS_PILOT_IND
**
** PARAMETERS sBSSID
** i8MaxTxPower
** i8TxPowerUsed
** i8TransceiverNoiseFloor
**
** DESCRIPTION Forwards the parameters from the 802.11k Measurement
** Pilot frame that the device has received from the AP.
**
****************************************************************************/
PREPACK typedef struct
{
IEEE_ADDR sBSSID;
uint8 u8Channel;
int8 i8MaxRegulatoryPower;
int8 i8MaxTxPower;
int8 i8TxPowerUsed;
int8 i8TransceiverNoiseFloor;
uint16 u16MeasurementPilotInterval;
uint16 u16BeaconInterval;
uint16 u16CapInfo;
uint16 u16RsnCapabilities; // see 802.11i, 7.3.2.25.3
int16 i16Rssi;
MIB_COUNTRY sCountryString;
} POSTPACK UMI_RX_MEAS_PILOT;
/***************************************************************************
**
** NAME UM_MAN_RX_MEAS_PILOT_RES
**
** PARAMETERS none
**
** DESCRIPTION Returns the Rx Measurement Pilot Indication message resource.
**
****************************************************************************/
/***************************************************************************
**
** NAME UM_MAN_GET_802_11_STATS_CFM
**
** PARAMETERS u16Status UMI_OK
** UMI_NOT_INITIALISED
** sStats
**
** DESCRIPTION Response to get statistics request to return message buffer.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
uint16 u16Padding;
uint32 u32TxFragCount;
uint32 u32TxMulticastCount;
uint32 u32TxFailedCount;
uint32 u32TxRetryCount;
uint32 u32RxDuplicateCount;
uint32 u32RxFragCount;
uint32 u32RxMulticastCount;
uint32 u32RxFcsErrorCount;
// Linux iw_statistics:
uint32 u32MissedBeaconCount;
uint32 u32UndecryptableCount;
uint32 u32RxFragReassemblyErrorCount;
uint32 u32RxWrongNwidCount;
} POSTPACK UMI_GET_802_11_STATS;
/***************************************************************************
**
** NAME UM_MAN_GET_GEN_STATS_CFM
**
** PARAMETERS u16Status UMI_OK
** UMI_NOT_INITIALISED
** sStats
**
** DESCRIPTION Response to get generic statistics request to return message buffer.
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Status;
uint16 u16Padding;
uint32 u32TxTotalDataFrames;
uint32 u32TxTotalMgmtFrames;
uint32 u32RxDroppedFrames;
uint32 u32RxTotalDataFrames;
uint32 u32RxTotalMgmtFrames;
uint64 u64TxBytes;
uint64 u64RxBytes;
} POSTPACK UMI_GET_GEN_STATS;
/***************************************************************************
**
** NAME UMI_MAN
**
** DESCRIPTION A union of all Management Messages.
**
****************************************************************************/
PREPACK typedef union
{
UMI_READY sReady;
UMI_SCAN sScan;
UMI_POWER_MODE sPowerMode;
UMI_BSS_FOUND_0 sBSSfound_segm0;
UMI_BSS_FOUND_IE sBSSfound_ie;
UMI_ACTIVATE sActivate;
UMI_NETWORK_EVENT sNetworkEvent;
UMI_CONNECTION_EVENT sConnectionEvent;
UMI_DISCONNECT sDisconnect;
UMI_RESET sReset;
UMI_GET_802_11_STATS s80211Stats;
UMI_GET_GEN_STATS sGenStats;
UMI_MIB sMIB;
UMI_GET_RSSI sGetRSSI;
UMI_SET_KEY sSetKey;
UMI_CLEAR_KEY sClearKey;
UMI_SECURITY_ALERT sSecurityAlert;
UMI_UWA_CLEAR_STATS sUwaClearStats;
UMI_SLEEP_RES sSleepRes;
UMI_POWER_OFF sPowerOff;
#if defined (ENET_INC_80211_k)
UMI_LINK_MEASUREMENT sLinkMeas;
UMI_LINK_MEAS_REPORT sLnkMeasRpt;
UMI_TX_NEIGHBOR_REPORT_REQ sTxNeighRptReq;
UMI_RX_NEIGHBOR_REPORT sRxNeighborRpt;
UMI_RX_MEAS_PILOT sRxMeasPilot;
#endif
uint8 u8pad[UMI_MAN_DATA_SIZE]; // max allowable size of this union
} POSTPACK UMI_MAN;
/***************************************************************************/
/*** Debug Messages ***/
/***************************************************************************/
/***************************************************************************
**
** NAME UM_DBG_INPUT_REQ
**
** PARAMETERS u16Length The number of bytes of input stream
** contained in this message.
** au8Data An array of characters containing a
** section of debug input stream.
**
** DESCRIPTION Debug Input Request
**
****************************************************************************/
PREPACK typedef struct
{
uint16 u16Length;
uint16 u16stream;
uint8 au8Data[UMI_DEBUG_DATA_SIZE];
} POSTPACK UMI_DEBUG;
/***************************************************************************
**
** NAME MC_DBG_INPUT_CFM
**
** PARAMETERS none
**
** DESCRIPTION Return message buffer.
**
****************************************************************************/
/***************************************************************************
**
** NAME MC_DBG_OUTPUT_IND
**
** PARAMETERS pau8Addr The address in shared memory of a section
** of output stream.
** u16Length The number of bytes of output stream to
** be read.
**
** DESCRIPTION Debug Output Indication
**
****************************************************************************/
/* UMI_DEBUG */
/***************************************************************************
**
** NAME UM_DBG_OUTPUT_RES
**
** PARAMETERS none
**
** DESCRIPTION Returns message buffer.
**
****************************************************************************/
/***************************************************************************
**
** NAME UMI_DBG
**
** DESCRIPTION A union of all Debug Messages.
**
****************************************************************************/
PREPACK typedef union
{
UMI_DEBUG sDebug;
} POSTPACK UMI_DBG;
/***************************************************************************/
/*** Data Messages ***/
/***************************************************************************/
/***************************************************************************
**
** NAME UM_DAT_TXDATA_REQ
**
** PARAMETERS u32MSDUtag Reference to the buffer containing the
** payload of the MSDU in external memory.
** u16MSDUlength Length of the MSDU payload in the range
** 0..UMI_MAX_MSDU_LENGTH.
** u16AccessProtocol UMI_USE_DCF
** UMI_USE_PCF
** sSA Source MAC Address (AP only).
** sDA Destination MAC Address.
** sWDSA Wireless Distribution System Address
** (reserved).
** u16Status Not used.
** u32AlignmentOffset If RX SHRAM buffer is not 4 byte aligned,
** we have to copy extra bytes at the beginning.
** Tell the host how many bytes to skip.
** pvMyMsdu Reserved for use by the MAC.
**
** DESCRIPTION Transmit Data Request
**
****************************************************************************/
PREPACK typedef struct
{
uint32 u32MSDUtag;
uint16 u16MSDUlength;
uint16 u16AccessProtocol;
IEEE_ADDR sSA;
IEEE_ADDR sDA;
IEEE_ADDR sWDSA;
uint16 u16Status;
uint32 u32AlignmentOffset;
void *psMyMsdu;
} POSTPACK UMI_DATA;
/***************************************************************************
**
** NAME MC_DAT_TXDATA_CFM
**
** PARAMETERS u32MSDUtag Reference to the buffer containing the
** payload of the MSDU that was transmitted.
** u16MSDUlength As request.
** u16AccessProtocol As request.
** sSA As request.
** sDA As request.
** sWDSA As request.
** u16Status UMI_OK
** UMI_NOT_INITIALISED
** UMI_BAD_LENGTH
** UMI_TX_TIMEOUT
** UMI_BSS_HAS_NO_PCF
** UMI_NOT_CONNECTED
** UMI_NOT_INITIALISED
**
** DESCRIPTION Transmit Data Confirm
**
****************************************************************************/
/* UMI_DATA */
/***************************************************************************
**
** NAME MC_DAT_RXDATA_IND
**
** PARAMETERS u32MSDUtag Reference to the buffer containing the
** payload of the MSDU in external memory.
** u16MSDUlength Length of the MSDU payload in the range
** 0..UMI_MAX_MSDU_LENGTH.
** u16AccessProtocol UMI_DURING_CP
** UMI_DURING_CFP
** sSA Source MAC Address (AP only).
** sDA Destination MAC Address.
** sWDSA Wireless Distribution System Address
** (reserved).
** u16Status Not used.
**
** DESCRIPTION Receive Data Indication
**
****************************************************************************/
/* UMI_DATA */
/***************************************************************************
**
** NAME UM_DAT_RXDATA_RES
**
** PARAMETERS u32MSDUtag Reference to the RX buffer that was
** received.
** u16MSDUlength As request.
** u16AccessProtocol As request.
** sSA As request.
** sDA As request.
** sWDSA As request.
** u16Status UMI_OK
**
** DESCRIPTION Sent by the MAC Client in response to a MC_DAT_RXDATA_IND
** indication. Returns the message buffer to the Upper MAC.
**
*********************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -