Linux 4.19.133
[linux/fpc-iii.git] / drivers / staging / rtlwifi / stats.h
blobaa4f30d40af0fdc850998c8e70d9d82ffafd1304
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2009-2012 Realtek Corporation.
6 * Contact Information:
7 * wlanfae <wlanfae@realtek.com>
8 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
9 * Hsinchu 300, Taiwan.
11 * Larry Finger <Larry.Finger@lwfinger.net>
13 *****************************************************************************/
15 #ifndef __RTL_STATS_H__
16 #define __RTL_STATS_H__
18 #define PHY_RSSI_SLID_WIN_MAX 100
19 #define PHY_LINKQUALITY_SLID_WIN_MAX 20
20 #define PHY_BEACON_RSSI_SLID_WIN_MAX 10
22 /* Rx smooth factor */
23 #define RX_SMOOTH_FACTOR 20
25 u8 rtl_query_rxpwrpercentage(s8 antpower);
26 u8 rtl_evm_db_to_percentage(s8 value);
27 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig);
28 void rtl_process_phyinfo(struct ieee80211_hw *hw, u8 *buffer,
29 struct rtl_stats *pstatus);
31 #endif