Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79116
b: refs/heads/master
c: 04c80f1
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent cd761e6 commit 919d17b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 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: 09d4fad6e8972061fbb0e2e5ae9e686d84f57af6
refs/heads/master: 04c80f1ab1333f21aa4e92f3554e83365da449a0
20 changes: 16 additions & 4 deletions trunk/drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ static void if_usb_free(struct usb_card_rec *cardp)
lbs_deb_leave(LBS_DEB_USB);
}

static void if_usb_set_boot2_ver(struct lbs_private *priv)
{
struct cmd_ds_set_boot2_ver b2_cmd;
int rsp_len = sizeof(b2_cmd);

b2_cmd.action = 0;
b2_cmd.version = cpu_to_le16(priv->boot2_version);

if (lbs_cmd(priv, CMD_SET_BOOT2_VER, &b2_cmd, sizeof(b2_cmd),
&b2_cmd, &rsp_len)) {
lbs_deb_usb("Setting boot2 version failed\n");
}
}


/**
* @brief sets the configuration values
* @param ifnum interface number
Expand Down Expand Up @@ -222,10 +237,7 @@ static int if_usb_probe(struct usb_interface *intf,
if (lbs_start_card(priv))
goto err_start_card;

/* Set the boot2 version in firmware, ignoring errors. */
(void)lbs_prepare_and_send_command(priv, CMD_SET_BOOT2_VER,
0, CMD_OPTION_WAITFORRSP, 0, NULL);

if_usb_set_boot2_ver(priv);

usb_get_dev(udev);
usb_set_intfdata(intf, cardp);
Expand Down

0 comments on commit 919d17b

Please sign in to comment.