Searched refs:currsig (Results 1 – 4 of 4) sorted by relevance
40 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig) in rtl_signal_scale_mapping() argument44 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 …]
16 long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig);
1426 static long _rtl92e_signal_scale_mapping(struct r8192_priv *priv, long currsig) in _rtl92e_signal_scale_mapping() argument1430 if (currsig >= 61 && currsig <= 100) in _rtl92e_signal_scale_mapping()1431 retsig = 90 + ((currsig - 60) / 4); in _rtl92e_signal_scale_mapping()1432 else if (currsig >= 41 && currsig <= 60) in _rtl92e_signal_scale_mapping()1433 retsig = 78 + ((currsig - 40) / 2); in _rtl92e_signal_scale_mapping()1434 else if (currsig >= 31 && currsig <= 40) in _rtl92e_signal_scale_mapping()1435 retsig = 66 + (currsig - 30); in _rtl92e_signal_scale_mapping()1436 else if (currsig >= 21 && currsig <= 30) in _rtl92e_signal_scale_mapping()1437 retsig = 54 + (currsig - 20); in _rtl92e_signal_scale_mapping()1438 else if (currsig >= 5 && currsig <= 20) in _rtl92e_signal_scale_mapping()[all …]
3952 static long rtl819x_signal_scale_mapping(long currsig) in rtl819x_signal_scale_mapping() argument3957 if (currsig >= 61 && currsig <= 100) in rtl819x_signal_scale_mapping()3958 retsig = 90 + ((currsig - 60) / 4); in rtl819x_signal_scale_mapping()3959 else if (currsig >= 41 && currsig <= 60) in rtl819x_signal_scale_mapping()3960 retsig = 78 + ((currsig - 40) / 2); in rtl819x_signal_scale_mapping()3961 else if (currsig >= 31 && currsig <= 40) in rtl819x_signal_scale_mapping()3962 retsig = 66 + (currsig - 30); in rtl819x_signal_scale_mapping()3963 else if (currsig >= 21 && currsig <= 30) in rtl819x_signal_scale_mapping()3964 retsig = 54 + (currsig - 20); in rtl819x_signal_scale_mapping()3965 else if (currsig >= 5 && currsig <= 20) in rtl819x_signal_scale_mapping()[all …]