Linux-libre 4.19.20-gnu
[librecmc/linux-libre.git] / drivers / staging / rtlwifi / stats.h
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
15 #ifndef __RTL_STATS_H__
16 #define __RTL_STATS_H__
17
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
21
22 /* Rx smooth factor */
23 #define RX_SMOOTH_FACTOR                        20
24
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);
30
31 #endif