Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=04c80f1ab1333f21aa4e92f3554e83365da449a0
Commit:     04c80f1ab1333f21aa4e92f3554e83365da449a0
Parent:     09d4fad6e8972061fbb0e2e5ae9e686d84f57af6
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 6 12:51:00 2007 +0000
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:06:09 2008 -0800

    libertas: Use lbs_cmd() for setting Boot2 version
    
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/if_usb.c |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/libertas/if_usb.c 
b/drivers/net/wireless/libertas/if_usb.c
index f858928..4d89fd0 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -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
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to