aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-03-17 07:45:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:48 -0400
commitc49c3b77c8c611f562ca4e201d88d3e69465f928 (patch)
tree937308f8020b0e9437cdf8b9e8f6a43f10a26282 /drivers/net/wireless/libertas/cmd.c
parentc97329e21fc487ebf251c920d46537ff5fb4d8a7 (diff)
libertas: convert GET_LOG to a direct command
Now uses __lbs_cmd() to get the "log" (it's actually more a snapshot of various counters, not a sequential log). Besides the "mechanical" convertion the patch add the following logical changes: * Removes the priv->logmsg variable, it was only used in one place anyway, also don't blindly get the counters when associating. Getting the counters then the user asks via WEXT for them is good enought. * don't set wstats.discard.fragment with log.rxfrag, because the latter is a counter for successfully received packets, not for fragmented packets. 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>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index be8a170b633f..5e35788946f1 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -494,18 +494,6 @@ static int lbs_cmd_802_11_reset(struct lbs_private *priv,
494 return 0; 494 return 0;
495} 495}
496 496
497static int lbs_cmd_802_11_get_log(struct lbs_private *priv,
498 struct cmd_ds_command *cmd)
499{
500 lbs_deb_enter(LBS_DEB_CMD);
501 cmd->command = cpu_to_le16(CMD_802_11_GET_LOG);
502 cmd->size =
503 cpu_to_le16(sizeof(struct cmd_ds_802_11_get_log) + S_DS_GEN);
504
505 lbs_deb_leave(LBS_DEB_CMD);
506 return 0;
507}
508
509static int lbs_cmd_802_11_get_stat(struct lbs_private *priv, 497static int lbs_cmd_802_11_get_stat(struct lbs_private *priv,
510 struct cmd_ds_command *cmd) 498 struct cmd_ds_command *cmd)
511{ 499{
@@ -1423,10 +1411,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
1423 ret = lbs_cmd_802_11_reset(priv, cmdptr, cmd_action); 1411 ret = lbs_cmd_802_11_reset(priv, cmdptr, cmd_action);
1424 break; 1412 break;
1425 1413
1426 case CMD_802_11_GET_LOG:
1427 ret = lbs_cmd_802_11_get_log(priv, cmdptr);
1428 break;
1429
1430 case CMD_802_11_AUTHENTICATE: 1414 case CMD_802_11_AUTHENTICATE:
1431 ret = lbs_cmd_80211_authenticate(priv, cmdptr, pdata_buf); 1415 ret = lbs_cmd_80211_authenticate(priv, cmdptr, pdata_buf);
1432 break; 1416 break;