libertas: remove handling for CMD_GET_TSF
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 22 Oct 2009 13:30:54 +0000 (15:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:48:39 +0000 (16:48 -0400)
... which just resided as an old-style command in cmd/cmdresp, but
was nowhere useed. If we ever need it, we can re-add it as a newstyle
command.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/host.h

index 5faa987a8c72574d723975ef51df6860d3184ef6..b7b562445cf14a525d4304bc32eb26cd25c9c59a 100644 (file)
@@ -1189,12 +1189,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
                ret = lbs_cmd_fwt_access(cmdptr, cmd_action, pdata_buf);
                break;
 
-       case CMD_GET_TSF:
-               cmdptr->command = cpu_to_le16(CMD_GET_TSF);
-               cmdptr->size = cpu_to_le16(sizeof(struct cmd_ds_get_tsf) +
-                                          S_DS_GEN);
-               ret = 0;
-               break;
        case CMD_802_11_BEACON_CTRL:
                ret = lbs_cmd_bcn_ctrl(priv, cmdptr, cmd_action);
                break;
index 87c24e5a173b12b518ce1f0f202f41624c4f38de..e3b854cce69c6b7302e544896d36d64a30684c35 100644 (file)
@@ -188,12 +188,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
                spin_unlock_irqrestore(&priv->driver_lock, flags);
                break;
 
-       case CMD_RET(CMD_GET_TSF):
-               spin_lock_irqsave(&priv->driver_lock, flags);
-               memcpy((void *)priv->cur_cmd->callback_arg,
-                      &resp->params.gettsf.tsfvalue, sizeof(u64));
-               spin_unlock_irqrestore(&priv->driver_lock, flags);
-               break;
        case CMD_RET(CMD_BT_ACCESS):
                spin_lock_irqsave(&priv->driver_lock, flags);
                if (priv->cur_cmd->callback_arg)
index d4b875445f59dae159e9835b4fcb9ca070f225fd..c600f67b2de3a7d491a836df4ed8fc3c047377ac 100644 (file)
@@ -968,7 +968,6 @@ struct cmd_ds_command {
 
                struct cmd_ds_bt_access bt;
                struct cmd_ds_fwt_access fwt;
-               struct cmd_ds_get_tsf gettsf;
                struct cmd_ds_802_11_beacon_control bcn_ctrl;
        } params;
 } __attribute__ ((packed));