aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index c96ced963d69..c3fc074b6e3a 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -607,17 +607,14 @@ static int wlan_cmd_802_11_data_rate(wlan_private * priv,
607 607
608 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_data_rate) + 608 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_data_rate) +
609 S_DS_GEN); 609 S_DS_GEN);
610
611 cmd->command = cpu_to_le16(CMD_802_11_DATA_RATE); 610 cmd->command = cpu_to_le16(CMD_802_11_DATA_RATE);
612
613 memset(pdatarate, 0, sizeof(struct cmd_ds_802_11_data_rate)); 611 memset(pdatarate, 0, sizeof(struct cmd_ds_802_11_data_rate));
614
615 pdatarate->action = cpu_to_le16(cmd_action); 612 pdatarate->action = cpu_to_le16(cmd_action);
616 613
617 if (cmd_action == CMD_ACT_SET_TX_FIX_RATE) { 614 if (cmd_action == CMD_ACT_SET_TX_FIX_RATE) {
618 pdatarate->datarate[0] = libertas_data_rate_to_index(adapter->datarate); 615 pdatarate->rates[0] = libertas_data_rate_to_fw_index(adapter->cur_rate);
619 lbs_deb_cmd("Setting FW for fixed rate 0x%02X\n", 616 lbs_deb_cmd("Setting FW for fixed rate 0x%02X\n",
620 adapter->datarate); 617 adapter->cur_rate);
621 } else if (cmd_action == CMD_ACT_SET_TX_AUTO) { 618 } else if (cmd_action == CMD_ACT_SET_TX_AUTO) {
622 lbs_deb_cmd("Setting FW for AUTO rate\n"); 619 lbs_deb_cmd("Setting FW for AUTO rate\n");
623 } 620 }