diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:39 -0400 |
commit | b856f73b39ca6b619e6e8d088141aec3ff62852c (patch) | |
tree | e8a2c0d62a9e7b0e06e85a1aaa30c02ec6559b09 | |
parent | f57bd284e435d1ddf69b4266f63d856865152271 (diff) |
libertas: remove handling for CMD_GET_TSF
... 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>
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 5faa987a8c72..b7b562445cf1 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1189,12 +1189,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv, | |||
1189 | ret = lbs_cmd_fwt_access(cmdptr, cmd_action, pdata_buf); | 1189 | ret = lbs_cmd_fwt_access(cmdptr, cmd_action, pdata_buf); |
1190 | break; | 1190 | break; |
1191 | 1191 | ||
1192 | case CMD_GET_TSF: | ||
1193 | cmdptr->command = cpu_to_le16(CMD_GET_TSF); | ||
1194 | cmdptr->size = cpu_to_le16(sizeof(struct cmd_ds_get_tsf) + | ||
1195 | S_DS_GEN); | ||
1196 | ret = 0; | ||
1197 | break; | ||
1198 | case CMD_802_11_BEACON_CTRL: | 1192 | case CMD_802_11_BEACON_CTRL: |
1199 | ret = lbs_cmd_bcn_ctrl(priv, cmdptr, cmd_action); | 1193 | ret = lbs_cmd_bcn_ctrl(priv, cmdptr, cmd_action); |
1200 | break; | 1194 | break; |
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 87c24e5a173b..e3b854cce69c 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -188,12 +188,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
188 | spin_unlock_irqrestore(&priv->driver_lock, flags); | 188 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
189 | break; | 189 | break; |
190 | 190 | ||
191 | case CMD_RET(CMD_GET_TSF): | ||
192 | spin_lock_irqsave(&priv->driver_lock, flags); | ||
193 | memcpy((void *)priv->cur_cmd->callback_arg, | ||
194 | &resp->params.gettsf.tsfvalue, sizeof(u64)); | ||
195 | spin_unlock_irqrestore(&priv->driver_lock, flags); | ||
196 | break; | ||
197 | case CMD_RET(CMD_BT_ACCESS): | 191 | case CMD_RET(CMD_BT_ACCESS): |
198 | spin_lock_irqsave(&priv->driver_lock, flags); | 192 | spin_lock_irqsave(&priv->driver_lock, flags); |
199 | if (priv->cur_cmd->callback_arg) | 193 | if (priv->cur_cmd->callback_arg) |
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index d4b875445f59..c600f67b2de3 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -968,7 +968,6 @@ struct cmd_ds_command { | |||
968 | 968 | ||
969 | struct cmd_ds_bt_access bt; | 969 | struct cmd_ds_bt_access bt; |
970 | struct cmd_ds_fwt_access fwt; | 970 | struct cmd_ds_fwt_access fwt; |
971 | struct cmd_ds_get_tsf gettsf; | ||
972 | struct cmd_ds_802_11_beacon_control bcn_ctrl; | 971 | struct cmd_ds_802_11_beacon_control bcn_ctrl; |
973 | } params; | 972 | } params; |
974 | } __attribute__ ((packed)); | 973 | } __attribute__ ((packed)); |