Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183268
b: refs/heads/master
c: cef6e91
h: refs/heads/master
v: v3
  • Loading branch information
Jussi Kivilinna authored and John W. Linville committed Dec 21, 2009
1 parent d7024ed commit 40cf918
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 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: da2fb4e9c215b8f0f8954818691549f8a34135be
refs/heads/master: cef6e91280b724e93b0fb8a9fd3e6bf072f54c81
37 changes: 22 additions & 15 deletions trunk/drivers/net/wireless/rndis_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2594,23 +2594,9 @@ static void rndis_device_poller(struct work_struct *work)
/*
* driver/device initialization
*/
static int bcm4320a_early_init(struct usbnet *usbdev)
{
/* bcm4320a doesn't handle configuration parameters well. Try
* set any and you get partially zeroed mac and broken device.
*/

return 0;
}

static int bcm4320b_early_init(struct usbnet *usbdev)
static void rndis_copy_module_params(struct usbnet *usbdev)
{
struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev);
char buf[8];

/* Early initialization settings, setting these won't have effect
* if called after generic_rndis_bind().
*/

priv->param_country[0] = modparam_country[0];
priv->param_country[1] = modparam_country[1];
Expand Down Expand Up @@ -2652,6 +2638,27 @@ static int bcm4320b_early_init(struct usbnet *usbdev)
priv->param_workaround_interval = 500;
else
priv->param_workaround_interval = modparam_workaround_interval;
}

static int bcm4320a_early_init(struct usbnet *usbdev)
{
/* bcm4320a doesn't handle configuration parameters well. Try
* set any and you get partially zeroed mac and broken device.
*/

return 0;
}

static int bcm4320b_early_init(struct usbnet *usbdev)
{
struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev);
char buf[8];

rndis_copy_module_params(usbdev);

/* Early initialization settings, setting these won't have effect
* if called after generic_rndis_bind().
*/

rndis_set_config_parameter_str(usbdev, "Country", priv->param_country);
rndis_set_config_parameter_str(usbdev, "FrameBursting",
Expand Down

0 comments on commit 40cf918

Please sign in to comment.