Lines Matching refs:currsig
40 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()
53 retsig = 42 + (((currsig - 5) * 2) / 3); in rtl_signal_scale_mapping()
54 else if (currsig == 4) in rtl_signal_scale_mapping()
56 else if (currsig == 3) in rtl_signal_scale_mapping()
58 else if (currsig == 2) in rtl_signal_scale_mapping()
60 else if (currsig == 1) in rtl_signal_scale_mapping()
63 retsig = currsig; in rtl_signal_scale_mapping()