2014-12-11 21:15:04 +00:00
|
|
|
#ifndef __INC_RA_H
|
|
|
|
#define __INC_RA_H
|
|
|
|
/*++
|
|
|
|
Copyright (c) Realtek Semiconductor Corp. All rights reserved.
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
RateAdaptive.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
Prototype of RA and related data structure.
|
|
|
|
|
|
|
|
Major Change History:
|
|
|
|
When Who What
|
|
|
|
---------- --------------- -------------------------------
|
|
|
|
2011-08-12 Page Create.
|
|
|
|
--*/
|
|
|
|
|
2015-02-20 00:51:33 +00:00
|
|
|
/* Rate adaptive define */
|
2014-12-11 21:15:04 +00:00
|
|
|
#define PERENTRY 23
|
|
|
|
#define RETRYSIZE 5
|
|
|
|
#define RATESIZE 28
|
|
|
|
#define TX_RPT2_ITEM_SIZE 8
|
|
|
|
|
2015-02-20 00:51:33 +00:00
|
|
|
/* */
|
|
|
|
/* TX report 2 format in Rx desc */
|
|
|
|
/* */
|
2014-12-11 21:15:04 +00:00
|
|
|
#define GET_TX_RPT2_DESC_PKT_LEN_88E(__pRxStatusDesc) LE_BITS_TO_4BYTE( __pRxStatusDesc, 0, 9)
|
|
|
|
#define GET_TX_RPT2_DESC_MACID_VALID_1_88E(__pRxStatusDesc) LE_BITS_TO_4BYTE( __pRxStatusDesc+16, 0, 32)
|
|
|
|
#define GET_TX_RPT2_DESC_MACID_VALID_2_88E(__pRxStatusDesc) LE_BITS_TO_4BYTE( __pRxStatusDesc+20, 0, 32)
|
|
|
|
|
|
|
|
#define GET_TX_REPORT_TYPE1_RERTY_0(__pAddr) LE_BITS_TO_4BYTE( __pAddr, 0, 16)
|
|
|
|
#define GET_TX_REPORT_TYPE1_RERTY_1(__pAddr) LE_BITS_TO_1BYTE( __pAddr+2, 0, 8)
|
|
|
|
#define GET_TX_REPORT_TYPE1_RERTY_2(__pAddr) LE_BITS_TO_1BYTE( __pAddr+3, 0, 8)
|
|
|
|
#define GET_TX_REPORT_TYPE1_RERTY_3(__pAddr) LE_BITS_TO_1BYTE( __pAddr+4, 0, 8)
|
|
|
|
#define GET_TX_REPORT_TYPE1_RERTY_4(__pAddr) LE_BITS_TO_1BYTE( __pAddr+4+1, 0, 8)
|
|
|
|
#define GET_TX_REPORT_TYPE1_DROP_0(__pAddr) LE_BITS_TO_1BYTE( __pAddr+4+2, 0, 8)
|
|
|
|
#define GET_TX_REPORT_TYPE1_DROP_1(__pAddr) LE_BITS_TO_1BYTE( __pAddr+4+3, 0, 8)
|
|
|
|
|
2015-02-20 00:51:33 +00:00
|
|
|
/* End rate adaptive define */
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RASupport_Init(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
int
|
|
|
|
ODM_RAInfo_Init_all(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
int
|
|
|
|
ODM_RAInfo_Init(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-30 23:50:44 +00:00
|
|
|
u8
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_GetShortGI_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-30 23:50:44 +00:00
|
|
|
u8
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_GetDecisionRate_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-30 23:50:44 +00:00
|
|
|
u8
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_GetHwPwrStatus_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_UpdateRateInfo_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID,
|
|
|
|
u8 RateID,
|
|
|
|
u32 RateMask,
|
|
|
|
u8 SGIEnable
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_SetRSSI_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 MacID,
|
|
|
|
u8 Rssi
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_TxRPT2Handle_8188E(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u8 * TxRPT_Buf,
|
|
|
|
u16 TxRPT_Len,
|
|
|
|
u32 MacIDValidEntry0,
|
|
|
|
u32 MacIDValidEntry1
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2014-12-29 02:06:17 +00:00
|
|
|
void
|
2014-12-11 21:15:04 +00:00
|
|
|
ODM_RA_Set_TxRPT_Time(
|
2015-03-13 17:06:38 +00:00
|
|
|
PDM_ODM_T pDM_Odm,
|
|
|
|
u16 minRptTime
|
2014-12-11 21:15:04 +00:00
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|