phydm_hal_txbf_api.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 Realtek Corporation.
  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. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #ifndef __PHYDM_HAL_TXBF_API_H__
  26. #define __PHYDM_HAL_TXBF_API_H__
  27. #if (defined(CONFIG_BB_TXBF_API))
  28. #if (DM_ODM_SUPPORT_TYPE != ODM_AP)
  29. #if defined(DM_ODM_CE_MAC80211)
  30. #define tx_bf_nr(a, b) ({ \
  31. u8 __tx_bf_nr_a = (a); \
  32. u8 __tx_bf_nr_b = (b); \
  33. ((__tx_bf_nr_a > __tx_bf_nr_b) ? (__tx_bf_nr_b) : (__tx_bf_nr_a)); })
  34. #else
  35. #define tx_bf_nr(a, b) ((a > b) ? (b) : (a))
  36. #endif
  37. u8 beamforming_get_htndp_tx_rate(void *dm_void, u8 bfer_str_num);
  38. u8 beamforming_get_vht_ndp_tx_rate(void *dm_void, u8 bfer_str_num);
  39. #endif
  40. #if (RTL8822B_SUPPORT == 1 || RTL8822C_SUPPORT == 1 || RTL8192F_SUPPORT == 1 ||\
  41. RTL8814B_SUPPORT == 1 || RTL8198F_SUPPORT == 1)
  42. u8 phydm_get_beamforming_sounding_info(void *dm_void, u16 *throughput,
  43. u8 total_bfee_num, u8 *tx_rate);
  44. u8 phydm_get_ndpa_rate(void *dm_void);
  45. u8 phydm_get_mu_bfee_snding_decision(void *dm_void, u16 throughput);
  46. #else
  47. #define phydm_get_beamforming_sounding_info(dm, tp, bfee_num, rate) 0
  48. #define phydm_get_ndpa_rate(dm)
  49. #define phydm_get_mu_bfee_snding_decision(dm, tp)
  50. #endif
  51. #endif
  52. #endif