mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 22:33:39 +00:00
rtl8188eu: Make debug level settable from module loading
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a9f33120c5
commit
ec15c88773
3 changed files with 10 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
#include "odm_precomp.h"
|
#include "odm_precomp.h"
|
||||||
|
|
||||||
|
u32 GlobalDebugLevel;
|
||||||
|
|
||||||
const u2Byte dB_Invert_Table[8][12] = {
|
const u2Byte dB_Invert_Table[8][12] = {
|
||||||
{ 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4},
|
{ 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4},
|
||||||
|
|
|
@ -168,7 +168,9 @@ extern void rtl871x_cedbg(const char *fmt, ...);
|
||||||
#undef _dbgdump
|
#undef _dbgdump
|
||||||
#define _dbgdump printk
|
#define _dbgdump printk
|
||||||
|
|
||||||
#define DRIVER_PREFIX "RTL871X: "
|
extern u32 GlobalDebugLevel;
|
||||||
|
|
||||||
|
#define DRIVER_PREFIX "R8188EU: "
|
||||||
#define DEBUG_LEVEL (_drv_err_)
|
#define DEBUG_LEVEL (_drv_err_)
|
||||||
#if defined (_dbgdump)
|
#if defined (_dbgdump)
|
||||||
#undef DBG_871X_LEVEL
|
#undef DBG_871X_LEVEL
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <drv_conf.h>
|
#include <drv_conf.h>
|
||||||
|
|
||||||
#include <osdep_service.h>
|
#include <osdep_service.h>
|
||||||
|
#include <osdep_intf.h>
|
||||||
#include <drv_types.h>
|
#include <drv_types.h>
|
||||||
#include <xmit_osdep.h>
|
#include <xmit_osdep.h>
|
||||||
#include <recv_osdep.h>
|
#include <recv_osdep.h>
|
||||||
|
@ -91,6 +92,7 @@ int rtw_early_mode=1;
|
||||||
module_param(rtw_ips_mode, int, 0644);
|
module_param(rtw_ips_mode, int, 0644);
|
||||||
MODULE_PARM_DESC(rtw_ips_mode,"The default IPS mode");
|
MODULE_PARM_DESC(rtw_ips_mode,"The default IPS mode");
|
||||||
|
|
||||||
|
static int rtw_debug = 1;
|
||||||
int rtw_radio_enable = 1;
|
int rtw_radio_enable = 1;
|
||||||
int rtw_long_retry_lmt = 7;
|
int rtw_long_retry_lmt = 7;
|
||||||
int rtw_short_retry_lmt = 7;
|
int rtw_short_retry_lmt = 7;
|
||||||
|
@ -295,6 +297,8 @@ MODULE_PARM_DESC(rtw_btcoex_enable, "Enable BT co-existence mechanism");
|
||||||
uint rtw_notch_filter = RTW_NOTCH_FILTER;
|
uint rtw_notch_filter = RTW_NOTCH_FILTER;
|
||||||
module_param(rtw_notch_filter, uint, 0644);
|
module_param(rtw_notch_filter, uint, 0644);
|
||||||
MODULE_PARM_DESC(rtw_notch_filter, "0:Disable, 1:Enable, 2:Enable only for P2P");
|
MODULE_PARM_DESC(rtw_notch_filter, "0:Disable, 1:Enable, 2:Enable only for P2P");
|
||||||
|
module_param_named(debug, rtw_debug, int, 0444);
|
||||||
|
MODULE_PARM_DESC(debug, "Set debug level (1-9) (default 1)");
|
||||||
|
|
||||||
static uint loadparam(PADAPTER padapter, _nic_hdl pnetdev);
|
static uint loadparam(PADAPTER padapter, _nic_hdl pnetdev);
|
||||||
int _netdev_open(struct net_device *pnetdev);
|
int _netdev_open(struct net_device *pnetdev);
|
||||||
|
@ -827,7 +831,6 @@ void rtw_proc_remove_one(struct net_device *dev)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint loadparam( _adapter *padapter, _nic_hdl pnetdev);
|
|
||||||
uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
|
uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -836,6 +839,7 @@ uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
|
||||||
|
|
||||||
_func_enter_;
|
_func_enter_;
|
||||||
|
|
||||||
|
GlobalDebugLevel = rtw_debug;
|
||||||
registry_par->chip_version = (u8)rtw_chip_version;
|
registry_par->chip_version = (u8)rtw_chip_version;
|
||||||
registry_par->rfintfs = (u8)rtw_rfintfs;
|
registry_par->rfintfs = (u8)rtw_rfintfs;
|
||||||
registry_par->lbkmode = (u8)rtw_lbkmode;
|
registry_par->lbkmode = (u8)rtw_lbkmode;
|
||||||
|
@ -859,6 +863,7 @@ _func_enter_;
|
||||||
registry_par->power_mgnt = (u8)rtw_power_mgnt;
|
registry_par->power_mgnt = (u8)rtw_power_mgnt;
|
||||||
registry_par->ips_mode = (u8)rtw_ips_mode;
|
registry_par->ips_mode = (u8)rtw_ips_mode;
|
||||||
registry_par->radio_enable = (u8)rtw_radio_enable;
|
registry_par->radio_enable = (u8)rtw_radio_enable;
|
||||||
|
registry_par->radio_enable = (u8)rtw_radio_enable;
|
||||||
registry_par->long_retry_lmt = (u8)rtw_long_retry_lmt;
|
registry_par->long_retry_lmt = (u8)rtw_long_retry_lmt;
|
||||||
registry_par->short_retry_lmt = (u8)rtw_short_retry_lmt;
|
registry_par->short_retry_lmt = (u8)rtw_short_retry_lmt;
|
||||||
registry_par->busy_thresh = (u16)rtw_busy_thresh;
|
registry_par->busy_thresh = (u16)rtw_busy_thresh;
|
||||||
|
@ -893,7 +898,6 @@ _func_enter_;
|
||||||
registry_par->rf_config = (u8)rtw_rf_config;
|
registry_par->rf_config = (u8)rtw_rf_config;
|
||||||
registry_par->low_power = (u8)rtw_low_power;
|
registry_par->low_power = (u8)rtw_low_power;
|
||||||
|
|
||||||
|
|
||||||
registry_par->wifi_spec = (u8)rtw_wifi_spec;
|
registry_par->wifi_spec = (u8)rtw_wifi_spec;
|
||||||
|
|
||||||
registry_par->channel_plan = (u8)rtw_channel_plan;
|
registry_par->channel_plan = (u8)rtw_channel_plan;
|
||||||
|
|
Loading…
Reference in a new issue