Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219618
b: refs/heads/master
c: d19b864
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 0fc37bc commit bad7e68
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c9bb32a384d629339fbb56bcf7e4afa55141419
refs/heads/master: d19b86473ec1c72fe657841c57ca8924f3df42f0
5 changes: 3 additions & 2 deletions trunk/drivers/staging/rtl8712/drv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ struct registry_priv {
u8 ht_enable;
u8 cbw40_enable;
u8 ampdu_enable;/*for tx*/
u8 rf_config ;
u8 low_power ;
u8 rf_config;
u8 low_power;
u8 wifi_test;
};

/* For registry parameters */
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/staging/rtl8712/hal_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv)
pfwpriv->mp_mode = (pregpriv->mp_mode == 1) ? 1 : 0;
pfwpriv->vcsType = pregpriv->vrtl_carrier_sense; /* 0:off 1:on 2:auto */
pfwpriv->vcsMode = pregpriv->vcs_type; /* 1:RTS/CTS 2:CTS to self */
pfwpriv->turboMode = 1; /* default enable it */
/* default enable turboMode */
pfwpriv->turboMode = ((pregpriv->wifi_test == 1) ? 0 : 1);
pfwpriv->lowPowerMode = pregpriv->low_power;
}

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/staging/rtl8712/os_intfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit bad7e68

Please sign in to comment.