Home
last modified time | relevance | path

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

/linux-6.12.1/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);
/linux-6.12.1/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_dev.c1113 static long _rtl92e_signal_scale_mapping(struct r8192_priv *priv, long currsig) in _rtl92e_signal_scale_mapping() argument
1117 if (currsig >= 61 && currsig <= 100) in _rtl92e_signal_scale_mapping()
1118 retsig = 90 + ((currsig - 60) / 4); in _rtl92e_signal_scale_mapping()
1119 else if (currsig >= 41 && currsig <= 60) in _rtl92e_signal_scale_mapping()
1120 retsig = 78 + ((currsig - 40) / 2); in _rtl92e_signal_scale_mapping()
1121 else if (currsig >= 31 && currsig <= 40) in _rtl92e_signal_scale_mapping()
1122 retsig = 66 + (currsig - 30); in _rtl92e_signal_scale_mapping()
1123 else if (currsig >= 21 && currsig <= 30) in _rtl92e_signal_scale_mapping()
1124 retsig = 54 + (currsig - 20); in _rtl92e_signal_scale_mapping()
1125 else if (currsig >= 5 && currsig <= 20) in _rtl92e_signal_scale_mapping()
[all …]