phydm_dynamictxpower.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. *
  19. ******************************************************************************/
  20. #ifndef __PHYDMDYNAMICTXPOWER_H__
  21. #define __PHYDMDYNAMICTXPOWER_H__
  22. /*#define DYNAMIC_TXPWR_VERSION "1.0"*/
  23. /*#define DYNAMIC_TXPWR_VERSION "1.3" */ /*2015.08.26, Add 8814 Dynamic TX power*/
  24. #define DYNAMIC_TXPWR_VERSION "1.4" /*2015.11.06, Add CE 8821A Dynamic TX power*/
  25. #if (DM_ODM_SUPPORT_TYPE == ODM_AP)
  26. #define TX_POWER_NEAR_FIELD_THRESH_LVL2 74
  27. #define TX_POWER_NEAR_FIELD_THRESH_LVL1 60
  28. #define TX_POWER_NEAR_FIELD_THRESH_AP 0x3F
  29. #elif (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  30. #define TX_POWER_NEAR_FIELD_THRESH_LVL2 74
  31. #define TX_POWER_NEAR_FIELD_THRESH_LVL1 67
  32. #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
  33. #define TX_POWER_NEAR_FIELD_THRESH_LVL2 74
  34. #define TX_POWER_NEAR_FIELD_THRESH_LVL1 60
  35. #endif
  36. #define tx_high_pwr_level_normal 0
  37. #define tx_high_pwr_level_level1 1
  38. #define tx_high_pwr_level_level2 2
  39. #define tx_high_pwr_level_bt1 3
  40. #define tx_high_pwr_level_bt2 4
  41. #define tx_high_pwr_level_15 5
  42. #define tx_high_pwr_level_35 6
  43. #define tx_high_pwr_level_50 7
  44. #define tx_high_pwr_level_70 8
  45. #define tx_high_pwr_level_100 9
  46. void
  47. odm_dynamic_tx_power_init(
  48. void *p_dm_void
  49. );
  50. void
  51. odm_dynamic_tx_power_restore_power_index(
  52. void *p_dm_void
  53. );
  54. void
  55. odm_dynamic_tx_power_nic(
  56. void *p_dm_void
  57. );
  58. #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN | ODM_CE))
  59. void
  60. odm_dynamic_tx_power_save_power_index(
  61. void *p_dm_void
  62. );
  63. void
  64. odm_dynamic_tx_power_write_power_index(
  65. void *p_dm_void,
  66. u8 value);
  67. void
  68. odm_dynamic_tx_power_8821(
  69. void *p_dm_void,
  70. u8 *p_desc,
  71. u8 mac_id
  72. );
  73. #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
  74. void
  75. odm_dynamic_tx_power_8814a(
  76. void *p_dm_void
  77. );
  78. void
  79. odm_set_tx_power_level8814(
  80. struct _ADAPTER *adapter,
  81. u8 channel,
  82. u8 pwr_lvl
  83. );
  84. #endif
  85. #endif
  86. void
  87. odm_dynamic_tx_power(
  88. void *p_dm_void
  89. );
  90. void
  91. odm_dynamic_tx_power_ap(
  92. void *p_dm_void
  93. );
  94. #endif