Home
last modified time | relevance | path

Searched refs:currsig (Results 1 – 4 of 4) sorted by relevance

/drivers/net/wireless/realtek/rtlwifi/
Dstats.c40 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig) in rtl_signal_scale_mapping() argument
44 if (currsig >= 61 && currsig <= 100) in rtl_signal_scale_mapping()
45 retsig = 90 + ((currsig - 60) / 4); in rtl_signal_scale_mapping()
46 else if (currsig >= 41 && currsig <= 60) in rtl_signal_scale_mapping()
47 retsig = 78 + ((currsig - 40) / 2); in rtl_signal_scale_mapping()
48 else if (currsig >= 31 && currsig <= 40) in rtl_signal_scale_mapping()
49 retsig = 66 + (currsig - 30); in rtl_signal_scale_mapping()
50 else if (currsig >= 21 && currsig <= 30) in rtl_signal_scale_mapping()
51 retsig = 54 + (currsig - 20); in rtl_signal_scale_mapping()
52 else if (currsig >= 5 && currsig <= 20) in rtl_signal_scale_mapping()
[all …]
Dstats.h16 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig);
/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_dev.c1425 static long _rtl92e_signal_scale_mapping(struct r8192_priv *priv, long currsig) in _rtl92e_signal_scale_mapping() argument
1429 if (currsig >= 61 && currsig <= 100) in _rtl92e_signal_scale_mapping()
1430 retsig = 90 + ((currsig - 60) / 4); in _rtl92e_signal_scale_mapping()
1431 else if (currsig >= 41 && currsig <= 60) in _rtl92e_signal_scale_mapping()
1432 retsig = 78 + ((currsig - 40) / 2); in _rtl92e_signal_scale_mapping()
1433 else if (currsig >= 31 && currsig <= 40) in _rtl92e_signal_scale_mapping()
1434 retsig = 66 + (currsig - 30); in _rtl92e_signal_scale_mapping()
1435 else if (currsig >= 21 && currsig <= 30) in _rtl92e_signal_scale_mapping()
1436 retsig = 54 + (currsig - 20); in _rtl92e_signal_scale_mapping()
1437 else if (currsig >= 5 && currsig <= 20) in _rtl92e_signal_scale_mapping()
[all …]
/drivers/staging/rtl8192u/
Dr8192U_core.c3959 static long rtl819x_signal_scale_mapping(long currsig) in rtl819x_signal_scale_mapping() argument
3964 if (currsig >= 61 && currsig <= 100) in rtl819x_signal_scale_mapping()
3965 retsig = 90 + ((currsig - 60) / 4); in rtl819x_signal_scale_mapping()
3966 else if (currsig >= 41 && currsig <= 60) in rtl819x_signal_scale_mapping()
3967 retsig = 78 + ((currsig - 40) / 2); in rtl819x_signal_scale_mapping()
3968 else if (currsig >= 31 && currsig <= 40) in rtl819x_signal_scale_mapping()
3969 retsig = 66 + (currsig - 30); in rtl819x_signal_scale_mapping()
3970 else if (currsig >= 21 && currsig <= 30) in rtl819x_signal_scale_mapping()
3971 retsig = 54 + (currsig - 20); in rtl819x_signal_scale_mapping()
3972 else if (currsig >= 5 && currsig <= 20) in rtl819x_signal_scale_mapping()
[all …]