1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\r
5 * This program is free software; you can redistribute it and/or modify it
\r
6 * under the terms of version 2 of the GNU General Public License as
\r
7 * published by the Free Software Foundation.
\r
9 * This program is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
14 * You should have received a copy of the GNU General Public License along with
\r
15 * this program; if not, write to the Free Software Foundation, Inc.,
\r
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
\r
19 ******************************************************************************/
\r
21 #ifndef __PHYDMEDCATURBOCHECK_H__
\r
22 #define __PHYDMEDCATURBOCHECK_H__
\r
24 /*#define EDCATURBO_VERSION "2.1"*/
\r
25 #define EDCATURBO_VERSION "2.3" /*2015.07.29 by YuChen*/
\r
27 typedef struct _EDCA_TURBO_
\r
29 BOOLEAN bCurrentTurboEDCA;
\r
30 BOOLEAN bIsCurRDLState;
\r
32 #if(DM_ODM_SUPPORT_TYPE == ODM_CE )
\r
33 u4Byte prv_traffic_idx; // edca turbo
\r
38 #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN|ODM_CE))
\r
39 static u4Byte edca_setting_UL[HT_IOT_PEER_MAX] =
\r
40 // UNKNOWN REALTEK_90 REALTEK_92SE BROADCOM RALINK ATHEROS CISCO MERU MARVELL 92U_AP SELF_AP(DownLink/Tx)
\r
41 { 0x5e4322, 0xa44f, 0x5e4322, 0x5ea32b, 0x5ea422, 0x5ea322, 0x3ea430, 0x5ea42b, 0x5ea44f, 0x5e4322, 0x5e4322};
\r
44 static u4Byte edca_setting_DL[HT_IOT_PEER_MAX] =
\r
45 // UNKNOWN REALTEK_90 REALTEK_92SE BROADCOM RALINK ATHEROS CISCO MERU, MARVELL 92U_AP SELF_AP(UpLink/Rx)
\r
46 { 0xa44f, 0x5ea44f, 0x5e4322, 0x5ea42b, 0xa44f, 0xa630, 0x5ea630, 0x5ea42b, 0xa44f, 0xa42b, 0xa42b};
\r
48 static u4Byte edca_setting_DL_GMode[HT_IOT_PEER_MAX] =
\r
49 // UNKNOWN REALTEK_90 REALTEK_92SE BROADCOM RALINK ATHEROS CISCO MERU, MARVELL 92U_AP SELF_AP
\r
50 { 0x4322, 0xa44f, 0x5e4322, 0xa42b, 0x5e4322, 0x4322, 0xa42b, 0x5ea42b, 0xa44f, 0x5e4322, 0x5ea42b};
\r
65 #if(DM_ODM_SUPPORT_TYPE==ODM_WIN)
\r
67 odm_EdcaTurboCheckMP(
\r
71 //check if edca turbo is disabled
\r
73 odm_IsEdcaTurboDisable(
\r
76 //choose edca paramter for special IOT case
\r
78 ODM_EdcaParaSelByIot(
\r
80 OUT u4Byte *EDCA_BE_UL,
\r
81 OUT u4Byte *EDCA_BE_DL
\r
83 //check if it is UL or DL
\r
85 odm_EdcaChooseTrafficIdx(
\r
87 IN u8Byte cur_tx_bytes,
\r
88 IN u8Byte cur_rx_bytes,
\r
89 IN BOOLEAN bBiasOnRx,
\r
90 OUT BOOLEAN *pbIsCurRDLState
\r
93 #elif (DM_ODM_SUPPORT_TYPE==ODM_CE)
\r
95 odm_EdcaTurboCheckCE(
\r