Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66440
b: refs/heads/master
c: 9e22cb6
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams authored and David S. Miller committed Oct 10, 2007
1 parent 9c222a1 commit bb1d0ae
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 43 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: 1e838bf31c3a24596621026c7d1ca69da068af83
refs/heads/master: 9e22cb67d9a8acde7a5af6ed8cd5e74ebd6551b3
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/libertas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ libertas-objs := main.o fw.o wext.o \
debugfs.o \
ethtool.o assoc.o

usb8xxx-objs += if_bootcmd.o
usb8xxx-objs += if_usb.o

obj-$(CONFIG_LIBERTAS) += libertas.o
Expand Down
40 changes: 0 additions & 40 deletions trunk/drivers/net/wireless/libertas/if_bootcmd.c

This file was deleted.

24 changes: 24 additions & 0 deletions trunk/drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,30 @@ static int if_usb_register_dev(wlan_private * priv)
return 0;
}

/**
* @brief This function issues Boot command to the Boot2 code
* @param ivalue 1:Boot from FW by USB-Download
* 2:Boot from FW in EEPROM
* @return 0
*/
static int if_usb_issue_boot_command(wlan_private *priv, int ivalue)
{
struct usb_card_rec *cardp = priv->card;
struct bootcmdstr sbootcmd;
int i;

/* Prepare command */
sbootcmd.u32magicnumber = cpu_to_le32(BOOT_CMD_MAGIC_NUMBER);
sbootcmd.u8cmd_tag = ivalue;
for (i=0; i<11; i++)
sbootcmd.au8dumy[i]=0x00;
memcpy(cardp->bulk_out_buffer, &sbootcmd, sizeof(struct bootcmdstr));

/* Issue command */
usb_tx_block(priv, cardp->bulk_out_buffer, sizeof(struct bootcmdstr));

return 0;
}


static int if_usb_prog_firmware(wlan_private * priv)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/libertas/if_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,5 @@ struct fwsyncheader {

int usb_tx_block(wlan_private *priv, u8 *payload, u16 nb);
void if_usb_free(struct usb_card_rec *cardp);
int if_usb_issue_boot_command(wlan_private *priv, int ivalue);

#endif

0 comments on commit bb1d0ae

Please sign in to comment.