diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu/sw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c index ef63c0df006..feed1ed8d9b 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | |||
@@ -60,6 +60,7 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw) | |||
60 | rtlpriv->dm.dm_flag = 0; | 60 | rtlpriv->dm.dm_flag = 0; |
61 | rtlpriv->dm.disable_framebursting = 0; | 61 | rtlpriv->dm.disable_framebursting = 0; |
62 | rtlpriv->dm.thermalvalue = 0; | 62 | rtlpriv->dm.thermalvalue = 0; |
63 | rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug; | ||
63 | rtlpriv->rtlhal.pfirmware = vmalloc(0x4000); | 64 | rtlpriv->rtlhal.pfirmware = vmalloc(0x4000); |
64 | if (!rtlpriv->rtlhal.pfirmware) { | 65 | if (!rtlpriv->rtlhal.pfirmware) { |
65 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 66 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
@@ -149,8 +150,14 @@ static struct rtl_hal_ops rtl8192cu_hal_ops = { | |||
149 | 150 | ||
150 | static struct rtl_mod_params rtl92cu_mod_params = { | 151 | static struct rtl_mod_params rtl92cu_mod_params = { |
151 | .sw_crypto = 0, | 152 | .sw_crypto = 0, |
153 | .debug = DBG_EMERG, | ||
152 | }; | 154 | }; |
153 | 155 | ||
156 | module_param_named(swenc, rtl92cu_mod_params.sw_crypto, bool, 0444); | ||
157 | module_param_named(debug, rtl92cu_mod_params.debug, int, 0444); | ||
158 | MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); | ||
159 | MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); | ||
160 | |||
154 | static struct rtl_hal_usbint_cfg rtl92cu_interface_cfg = { | 161 | static struct rtl_hal_usbint_cfg rtl92cu_interface_cfg = { |
155 | /* rx */ | 162 | /* rx */ |
156 | .in_ep_num = RTL92C_USB_BULK_IN_NUM, | 163 | .in_ep_num = RTL92C_USB_BULK_IN_NUM, |
@@ -241,20 +248,20 @@ static struct rtl_hal_cfg rtl92cu_hal_cfg = { | |||
241 | .maps[RTL_IMR_ROK] = IMR_ROK, | 248 | .maps[RTL_IMR_ROK] = IMR_ROK, |
242 | .maps[RTL_IBSS_INT_MASKS] = (IMR_BCNINT | IMR_TBDOK | IMR_TBDER), | 249 | .maps[RTL_IBSS_INT_MASKS] = (IMR_BCNINT | IMR_TBDOK | IMR_TBDER), |
243 | 250 | ||
244 | .maps[RTL_RC_CCK_RATE1M] = DESC92C_RATE1M, | 251 | .maps[RTL_RC_CCK_RATE1M] = DESC92_RATE1M, |
245 | .maps[RTL_RC_CCK_RATE2M] = DESC92C_RATE2M, | 252 | .maps[RTL_RC_CCK_RATE2M] = DESC92_RATE2M, |
246 | .maps[RTL_RC_CCK_RATE5_5M] = DESC92C_RATE5_5M, | 253 | .maps[RTL_RC_CCK_RATE5_5M] = DESC92_RATE5_5M, |
247 | .maps[RTL_RC_CCK_RATE11M] = DESC92C_RATE11M, | 254 | .maps[RTL_RC_CCK_RATE11M] = DESC92_RATE11M, |
248 | .maps[RTL_RC_OFDM_RATE6M] = DESC92C_RATE6M, | 255 | .maps[RTL_RC_OFDM_RATE6M] = DESC92_RATE6M, |
249 | .maps[RTL_RC_OFDM_RATE9M] = DESC92C_RATE9M, | 256 | .maps[RTL_RC_OFDM_RATE9M] = DESC92_RATE9M, |
250 | .maps[RTL_RC_OFDM_RATE12M] = DESC92C_RATE12M, | 257 | .maps[RTL_RC_OFDM_RATE12M] = DESC92_RATE12M, |
251 | .maps[RTL_RC_OFDM_RATE18M] = DESC92C_RATE18M, | 258 | .maps[RTL_RC_OFDM_RATE18M] = DESC92_RATE18M, |
252 | .maps[RTL_RC_OFDM_RATE24M] = DESC92C_RATE24M, | 259 | .maps[RTL_RC_OFDM_RATE24M] = DESC92_RATE24M, |
253 | .maps[RTL_RC_OFDM_RATE36M] = DESC92C_RATE36M, | 260 | .maps[RTL_RC_OFDM_RATE36M] = DESC92_RATE36M, |
254 | .maps[RTL_RC_OFDM_RATE48M] = DESC92C_RATE48M, | 261 | .maps[RTL_RC_OFDM_RATE48M] = DESC92_RATE48M, |
255 | .maps[RTL_RC_OFDM_RATE54M] = DESC92C_RATE54M, | 262 | .maps[RTL_RC_OFDM_RATE54M] = DESC92_RATE54M, |
256 | .maps[RTL_RC_HT_RATEMCS7] = DESC92C_RATEMCS7, | 263 | .maps[RTL_RC_HT_RATEMCS7] = DESC92_RATEMCS7, |
257 | .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, | 264 | .maps[RTL_RC_HT_RATEMCS15] = DESC92_RATEMCS15, |
258 | }; | 265 | }; |
259 | 266 | ||
260 | #define USB_VENDER_ID_REALTEK 0x0bda | 267 | #define USB_VENDER_ID_REALTEK 0x0bda |