diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192de/dm.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/dm.c | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/dm.c b/drivers/net/wireless/rtlwifi/rtl8192de/dm.c index 304c443b89b2..a1be5a68edfb 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/dm.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/dm.c | |||
@@ -29,6 +29,7 @@ | |||
29 | 29 | ||
30 | #include "../wifi.h" | 30 | #include "../wifi.h" |
31 | #include "../base.h" | 31 | #include "../base.h" |
32 | #include "../core.h" | ||
32 | #include "reg.h" | 33 | #include "reg.h" |
33 | #include "def.h" | 34 | #include "def.h" |
34 | #include "phy.h" | 35 | #include "phy.h" |
@@ -155,34 +156,6 @@ static const u8 cckswing_table_ch14[CCK_TABLE_SIZE][8] = { | |||
155 | {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} /* 32, -16.0dB */ | 156 | {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} /* 32, -16.0dB */ |
156 | }; | 157 | }; |
157 | 158 | ||
158 | static void rtl92d_dm_diginit(struct ieee80211_hw *hw) | ||
159 | { | ||
160 | struct rtl_priv *rtlpriv = rtl_priv(hw); | ||
161 | struct dig_t *de_digtable = &rtlpriv->dm_digtable; | ||
162 | |||
163 | de_digtable->dig_enable_flag = true; | ||
164 | de_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX; | ||
165 | de_digtable->cur_igvalue = 0x20; | ||
166 | de_digtable->pre_igvalue = 0x0; | ||
167 | de_digtable->cursta_cstate = DIG_STA_DISCONNECT; | ||
168 | de_digtable->presta_cstate = DIG_STA_DISCONNECT; | ||
169 | de_digtable->curmultista_cstate = DIG_MULTISTA_DISCONNECT; | ||
170 | de_digtable->rssi_lowthresh = DM_DIG_THRESH_LOW; | ||
171 | de_digtable->rssi_highthresh = DM_DIG_THRESH_HIGH; | ||
172 | de_digtable->fa_lowthresh = DM_FALSEALARM_THRESH_LOW; | ||
173 | de_digtable->fa_highthresh = DM_FALSEALARM_THRESH_HIGH; | ||
174 | de_digtable->rx_gain_max = DM_DIG_FA_UPPER; | ||
175 | de_digtable->rx_gain_min = DM_DIG_FA_LOWER; | ||
176 | de_digtable->back_val = DM_DIG_BACKOFF_DEFAULT; | ||
177 | de_digtable->back_range_max = DM_DIG_BACKOFF_MAX; | ||
178 | de_digtable->back_range_min = DM_DIG_BACKOFF_MIN; | ||
179 | de_digtable->pre_cck_pd_state = CCK_PD_STAGE_LOWRSSI; | ||
180 | de_digtable->cur_cck_pd_state = CCK_PD_STAGE_MAX; | ||
181 | de_digtable->large_fa_hit = 0; | ||
182 | de_digtable->recover_cnt = 0; | ||
183 | de_digtable->forbidden_igi = DM_DIG_FA_LOWER; | ||
184 | } | ||
185 | |||
186 | static void rtl92d_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw) | 159 | static void rtl92d_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw) |
187 | { | 160 | { |
188 | u32 ret_value; | 161 | u32 ret_value; |
@@ -1305,7 +1278,9 @@ void rtl92d_dm_init(struct ieee80211_hw *hw) | |||
1305 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 1278 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
1306 | 1279 | ||
1307 | rtlpriv->dm.dm_type = DM_TYPE_BYDRIVER; | 1280 | rtlpriv->dm.dm_type = DM_TYPE_BYDRIVER; |
1308 | rtl92d_dm_diginit(hw); | 1281 | rtl_dm_diginit(hw, 0x20); |
1282 | rtlpriv->dm_digtable.rx_gain_max = DM_DIG_FA_UPPER; | ||
1283 | rtlpriv->dm_digtable.rx_gain_min = DM_DIG_FA_LOWER; | ||
1309 | rtl92d_dm_init_dynamic_txpower(hw); | 1284 | rtl92d_dm_init_dynamic_txpower(hw); |
1310 | rtl92d_dm_init_edca_turbo(hw); | 1285 | rtl92d_dm_init_edca_turbo(hw); |
1311 | rtl92d_dm_init_rate_adaptive_mask(hw); | 1286 | rtl92d_dm_init_rate_adaptive_mask(hw); |