stats.h 934 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /******************************************************************************
  3. *
  4. * Copyright(c) 2009-2012 Realtek Corporation.
  5. *
  6. * Contact Information:
  7. * wlanfae <wlanfae@realtek.com>
  8. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  9. * Hsinchu 300, Taiwan.
  10. *
  11. * Larry Finger <Larry.Finger@lwfinger.net>
  12. *
  13. *****************************************************************************/
  14. #ifndef __RTL_STATS_H__
  15. #define __RTL_STATS_H__
  16. #define PHY_RSSI_SLID_WIN_MAX 100
  17. #define PHY_LINKQUALITY_SLID_WIN_MAX 20
  18. #define PHY_BEACON_RSSI_SLID_WIN_MAX 10
  19. /* Rx smooth factor */
  20. #define RX_SMOOTH_FACTOR 20
  21. u8 rtl_query_rxpwrpercentage(s8 antpower);
  22. u8 rtl_evm_db_to_percentage(s8 value);
  23. long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig);
  24. void rtl_process_phyinfo(struct ieee80211_hw *hw, u8 *buffer,
  25. struct rtl_stats *pstatus);
  26. #endif