diff options
author | Dan Williams <dcbw@redhat.com> | 2008-09-10 09:04:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:19 -0400 |
commit | f8e77caefea8940ee1fb09c9ebb0107ca2eadb72 (patch) | |
tree | 123bfa14c6513cb02f3fb97cb7685be44e6052f4 /drivers/net/wireless/libertas/if_usb.c | |
parent | e83a1070a1167eac1bf8844b9f08df5e9ea1b5bc (diff) |
libertas: remove unused generic RESET command
The generic reset command is unused. Each interface type needs to
handle the reset command differently since after reset, the firmware is
dead and interface-specific mechanisms must be used to reinitialize the
card.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_usb.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 7b02d612b076..cafbccb74143 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -439,11 +439,10 @@ static int if_usb_reset_device(struct if_usb_card *cardp) | |||
439 | *(__le32 *)cardp->ep_out_buf = cpu_to_le32(CMD_TYPE_REQUEST); | 439 | *(__le32 *)cardp->ep_out_buf = cpu_to_le32(CMD_TYPE_REQUEST); |
440 | 440 | ||
441 | cmd->command = cpu_to_le16(CMD_802_11_RESET); | 441 | cmd->command = cpu_to_le16(CMD_802_11_RESET); |
442 | cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_reset) + S_DS_GEN); | 442 | cmd->size = cpu_to_le16(sizeof(struct cmd_header)); |
443 | cmd->result = cpu_to_le16(0); | 443 | cmd->result = cpu_to_le16(0); |
444 | cmd->seqnum = cpu_to_le16(0x5a5a); | 444 | cmd->seqnum = cpu_to_le16(0x5a5a); |
445 | cmd->params.reset.action = cpu_to_le16(CMD_ACT_HALT); | 445 | usb_tx_block(cardp, cardp->ep_out_buf, 4 + sizeof(struct cmd_header)); |
446 | usb_tx_block(cardp, cardp->ep_out_buf, 4 + S_DS_GEN + sizeof(struct cmd_ds_802_11_reset)); | ||
447 | 446 | ||
448 | msleep(100); | 447 | msleep(100); |
449 | ret = usb_reset_device(cardp->udev); | 448 | ret = usb_reset_device(cardp->udev); |