diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-31 03:51:58 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 17:59:52 (GMT) |
commit | d19b86473ec1c72fe657841c57ca8924f3df42f0 (patch) | |
tree | d64adbc14eaee5fc599754bedc55942efdf604bd /drivers/staging/rtl8712/os_intfs.c | |
parent | 1c9bb32a384d629339fbb56bcf7e4afa55141419 (diff) | |
download | linux-fsl-qoriq-d19b86473ec1c72fe657841c57ca8924f3df42f0.tar.xz |
staging: r8712u: Add module parameter to disable turbo mode
Signed-off-by: Albert Wang <albert_wang@realtek.com.tw>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8712/os_intfs.c')
-rw-r--r-- | drivers/staging/rtl8712/os_intfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c index aaf7de0..3f38e8e 100644 --- a/drivers/staging/rtl8712/os_intfs.c +++ b/drivers/staging/rtl8712/os_intfs.c @@ -92,8 +92,13 @@ static int low_power; /* mac address to use instead of the one stored in Efuse */ char *r8712_initmac; static char *initmac; +/* if wifi_test = 1, driver will disable the turbo mode and pass it to + * firmware private. + */ +static int wifi_test = 0; module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR); +module_param(wifi_test, int, 0644); module_param(initmac, charp, 0644); module_param(video_mode, int, 0644); module_param(chip_version, int, 0644); @@ -165,6 +170,7 @@ static uint loadparam(struct _adapter *padapter, struct net_device *pnetdev) registry_par->ampdu_enable = (u8)ampdu_enable; registry_par->rf_config = (u8)rf_config; registry_par->low_power = (u8)low_power; + registry_par->wifi_test = (u8) wifi_test; r8712_initmac = initmac; return status; } |