rtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192de: rtl8723ae: Add changes required by adding rtl81988ee
This patch combines the remaining changes in the rtlwifi family to handle the addition of rtl8188ee. A number of these changes eliminate some CamelCase variable names, and other shorten common variable names so that long lines in the new driver could be shortened. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: jcheung@suse.com Cc: machen@suse.com Cc: mmarek@suse.cz Cc: zhiyuan_yang@realsil.com.cn Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
f0eb856e0b
commit
e6deaf810c
@@ -472,13 +472,13 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw)
|
||||
digtable->back_val = DM_DIG_BACKOFF;
|
||||
|
||||
if ((digtable->rssi_val + 10 - digtable->back_val) >
|
||||
digtable->rx_gain_range_max)
|
||||
digtable->rx_gain_max)
|
||||
digtable->cur_igvalue =
|
||||
digtable->rx_gain_range_max;
|
||||
digtable->rx_gain_max;
|
||||
else if ((digtable->rssi_val + 10 - digtable->back_val)
|
||||
< digtable->rx_gain_range_min)
|
||||
< digtable->rx_gain_min)
|
||||
digtable->cur_igvalue =
|
||||
digtable->rx_gain_range_min;
|
||||
digtable->rx_gain_min;
|
||||
else
|
||||
digtable->cur_igvalue = digtable->rssi_val + 10
|
||||
- digtable->back_val;
|
||||
@@ -490,7 +490,7 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw)
|
||||
|
||||
if (falsealm_cnt->cnt_all > 16000)
|
||||
digtable->cur_igvalue =
|
||||
digtable->rx_gain_range_max;
|
||||
digtable->rx_gain_max;
|
||||
/* connected -> connected or disconnected -> disconnected */
|
||||
} else {
|
||||
/* Firmware control DIG, do nothing in driver dm */
|
||||
@@ -692,9 +692,9 @@ static void _rtl92s_dm_init_dig(struct ieee80211_hw *hw)
|
||||
/* for dig debug rssi value */
|
||||
digtable->rssi_val = 50;
|
||||
digtable->back_val = DM_DIG_BACKOFF;
|
||||
digtable->rx_gain_range_max = DM_DIG_MAX;
|
||||
digtable->rx_gain_max = DM_DIG_MAX;
|
||||
|
||||
digtable->rx_gain_range_min = DM_DIG_MIN;
|
||||
digtable->rx_gain_min = DM_DIG_MIN;
|
||||
|
||||
digtable->backoffval_range_max = DM_DIG_BACKOFF_MAX;
|
||||
digtable->backoffval_range_min = DM_DIG_BACKOFF_MIN;
|
||||
|
||||
Reference in New Issue
Block a user