diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-16 11:34:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:30 -0400 |
commit | 8ef37f1cb24bfc89297eab6cd6f1e1096d954139 (patch) | |
tree | db8ce21caa5aa958ce78b8bbdccecfa61d5e8cc9 | |
parent | a3cbfb08ca634019516c91f3d5266b18e3dbbf77 (diff) |
libertas: remove unused lbs_cmd_802_11_inactivity_timeout()
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 27 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmd.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 10 |
3 files changed, 0 insertions, 40 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index e0de9a3dd12b..8841a0ecf3b8 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -272,33 +272,6 @@ static int lbs_cmd_802_11_ps_mode(struct cmd_ds_command *cmd, | |||
272 | return 0; | 272 | return 0; |
273 | } | 273 | } |
274 | 274 | ||
275 | int lbs_cmd_802_11_inactivity_timeout(struct lbs_private *priv, | ||
276 | uint16_t cmd_action, uint16_t *timeout) | ||
277 | { | ||
278 | struct cmd_ds_802_11_inactivity_timeout cmd; | ||
279 | int ret; | ||
280 | |||
281 | lbs_deb_enter(LBS_DEB_CMD); | ||
282 | |||
283 | cmd.hdr.command = cpu_to_le16(CMD_802_11_INACTIVITY_TIMEOUT); | ||
284 | cmd.hdr.size = cpu_to_le16(sizeof(cmd)); | ||
285 | |||
286 | cmd.action = cpu_to_le16(cmd_action); | ||
287 | |||
288 | if (cmd_action == CMD_ACT_SET) | ||
289 | cmd.timeout = cpu_to_le16(*timeout); | ||
290 | else | ||
291 | cmd.timeout = 0; | ||
292 | |||
293 | ret = lbs_cmd_with_response(priv, CMD_802_11_INACTIVITY_TIMEOUT, &cmd); | ||
294 | |||
295 | if (!ret) | ||
296 | *timeout = le16_to_cpu(cmd.timeout); | ||
297 | |||
298 | lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret); | ||
299 | return 0; | ||
300 | } | ||
301 | |||
302 | int lbs_cmd_802_11_sleep_params(struct lbs_private *priv, uint16_t cmd_action, | 275 | int lbs_cmd_802_11_sleep_params(struct lbs_private *priv, uint16_t cmd_action, |
303 | struct sleep_params *sp) | 276 | struct sleep_params *sp) |
304 | { | 277 | { |
diff --git a/drivers/net/wireless/libertas/cmd.h b/drivers/net/wireless/libertas/cmd.h index 999d146c2f89..9d29b578799a 100644 --- a/drivers/net/wireless/libertas/cmd.h +++ b/drivers/net/wireless/libertas/cmd.h | |||
@@ -135,9 +135,6 @@ int lbs_set_data_rate(struct lbs_private *priv, u8 rate); | |||
135 | int lbs_cmd_802_11_rate_adapt_rateset(struct lbs_private *priv, | 135 | int lbs_cmd_802_11_rate_adapt_rateset(struct lbs_private *priv, |
136 | uint16_t cmd_action); | 136 | uint16_t cmd_action); |
137 | 137 | ||
138 | int lbs_cmd_802_11_inactivity_timeout(struct lbs_private *priv, | ||
139 | uint16_t cmd_action, uint16_t *timeout); | ||
140 | |||
141 | int lbs_cmd_802_11_set_wep(struct lbs_private *priv, uint16_t cmd_action, | 138 | int lbs_cmd_802_11_set_wep(struct lbs_private *priv, uint16_t cmd_action, |
142 | struct assoc_request *assoc); | 139 | struct assoc_request *assoc); |
143 | 140 | ||
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 5188e6539c6c..25342743b1f7 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -621,16 +621,6 @@ struct cmd_ds_802_11_sleep_params { | |||
621 | __le16 reserved; | 621 | __le16 reserved; |
622 | } __attribute__ ((packed)); | 622 | } __attribute__ ((packed)); |
623 | 623 | ||
624 | struct cmd_ds_802_11_inactivity_timeout { | ||
625 | struct cmd_header hdr; | ||
626 | |||
627 | /* ACT_GET/ACT_SET */ | ||
628 | __le16 action; | ||
629 | |||
630 | /* Inactivity timeout in msec */ | ||
631 | __le16 timeout; | ||
632 | } __attribute__ ((packed)); | ||
633 | |||
634 | struct cmd_ds_802_11_rf_channel { | 624 | struct cmd_ds_802_11_rf_channel { |
635 | struct cmd_header hdr; | 625 | struct cmd_header hdr; |
636 | 626 | ||