diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-17 23:48:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:49 -0500 |
commit | 3fbe104cecdb8c812976fdb0cc41be65491b85ee (patch) | |
tree | 768ab4fb16f26289f0ad5dc6d413fc5a0cf1eaf5 /drivers/net/wireless/libertas/cmdresp.c | |
parent | 6e5cc4fb35c45a8f8478d25c4e89e8d9c543056e (diff) |
libertas: convert SLEEP_PARAMS to a direct command
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index f7fb8c74014a..40615a88dc88 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -146,29 +146,6 @@ static int lbs_ret_reg_access(struct lbs_private *priv, | |||
146 | return ret; | 146 | return ret; |
147 | } | 147 | } |
148 | 148 | ||
149 | static int lbs_ret_802_11_sleep_params(struct lbs_private *priv, | ||
150 | struct cmd_ds_command *resp) | ||
151 | { | ||
152 | struct cmd_ds_802_11_sleep_params *sp = &resp->params.sleep_params; | ||
153 | |||
154 | lbs_deb_enter(LBS_DEB_CMD); | ||
155 | |||
156 | lbs_deb_cmd("error 0x%x, offset 0x%x, stabletime 0x%x, calcontrol 0x%x " | ||
157 | "extsleepclk 0x%x\n", le16_to_cpu(sp->error), | ||
158 | le16_to_cpu(sp->offset), le16_to_cpu(sp->stabletime), | ||
159 | sp->calcontrol, sp->externalsleepclk); | ||
160 | |||
161 | priv->sp.sp_error = le16_to_cpu(sp->error); | ||
162 | priv->sp.sp_offset = le16_to_cpu(sp->offset); | ||
163 | priv->sp.sp_stabletime = le16_to_cpu(sp->stabletime); | ||
164 | priv->sp.sp_calcontrol = sp->calcontrol; | ||
165 | priv->sp.sp_extsleepclk = sp->externalsleepclk; | ||
166 | priv->sp.sp_reserved = le16_to_cpu(sp->reserved); | ||
167 | |||
168 | lbs_deb_enter(LBS_DEB_CMD); | ||
169 | return 0; | ||
170 | } | ||
171 | |||
172 | static int lbs_ret_802_11_stat(struct lbs_private *priv, | 149 | static int lbs_ret_802_11_stat(struct lbs_private *priv, |
173 | struct cmd_ds_command *resp) | 150 | struct cmd_ds_command *resp) |
174 | { | 151 | { |
@@ -551,9 +528,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
551 | ret = lbs_ret_802_11d_domain_info(priv, resp); | 528 | ret = lbs_ret_802_11d_domain_info(priv, resp); |
552 | break; | 529 | break; |
553 | 530 | ||
554 | case CMD_RET(CMD_802_11_SLEEP_PARAMS): | ||
555 | ret = lbs_ret_802_11_sleep_params(priv, resp); | ||
556 | break; | ||
557 | case CMD_RET(CMD_802_11_TPC_CFG): | 531 | case CMD_RET(CMD_802_11_TPC_CFG): |
558 | spin_lock_irqsave(&priv->driver_lock, flags); | 532 | spin_lock_irqsave(&priv->driver_lock, flags); |
559 | memmove((void *)priv->cur_cmd->callback_arg, &resp->params.tpccfg, | 533 | memmove((void *)priv->cur_cmd->callback_arg, &resp->params.tpccfg, |