Skip to content

Commit

Permalink
libertas: remove unused lbs_cmd_802_11_inactivity_timeout()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Holger Schurig authored and John W. Linville committed Oct 27, 2009
1 parent a3cbfb0 commit 8ef37f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
27 changes: 0 additions & 27 deletions drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,33 +272,6 @@ static int lbs_cmd_802_11_ps_mode(struct cmd_ds_command *cmd,
return 0;
}

int lbs_cmd_802_11_inactivity_timeout(struct lbs_private *priv,
uint16_t cmd_action, uint16_t *timeout)
{
struct cmd_ds_802_11_inactivity_timeout cmd;
int ret;

lbs_deb_enter(LBS_DEB_CMD);

cmd.hdr.command = cpu_to_le16(CMD_802_11_INACTIVITY_TIMEOUT);
cmd.hdr.size = cpu_to_le16(sizeof(cmd));

cmd.action = cpu_to_le16(cmd_action);

if (cmd_action == CMD_ACT_SET)
cmd.timeout = cpu_to_le16(*timeout);
else
cmd.timeout = 0;

ret = lbs_cmd_with_response(priv, CMD_802_11_INACTIVITY_TIMEOUT, &cmd);

if (!ret)
*timeout = le16_to_cpu(cmd.timeout);

lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret);
return 0;
}

int lbs_cmd_802_11_sleep_params(struct lbs_private *priv, uint16_t cmd_action,
struct sleep_params *sp)
{
Expand Down
3 changes: 0 additions & 3 deletions drivers/net/wireless/libertas/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ int lbs_set_data_rate(struct lbs_private *priv, u8 rate);
int lbs_cmd_802_11_rate_adapt_rateset(struct lbs_private *priv,
uint16_t cmd_action);

int lbs_cmd_802_11_inactivity_timeout(struct lbs_private *priv,
uint16_t cmd_action, uint16_t *timeout);

int lbs_cmd_802_11_set_wep(struct lbs_private *priv, uint16_t cmd_action,
struct assoc_request *assoc);

Expand Down
10 changes: 0 additions & 10 deletions drivers/net/wireless/libertas/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,16 +621,6 @@ struct cmd_ds_802_11_sleep_params {
__le16 reserved;
} __attribute__ ((packed));

struct cmd_ds_802_11_inactivity_timeout {
struct cmd_header hdr;

/* ACT_GET/ACT_SET */
__le16 action;

/* Inactivity timeout in msec */
__le16 timeout;
} __attribute__ ((packed));

struct cmd_ds_802_11_rf_channel {
struct cmd_header hdr;

Expand Down

0 comments on commit 8ef37f1

Please sign in to comment.