diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-01-24 03:36:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-30 20:35:32 -0500 |
commit | f516dbcd7df76d468be98c343bc22e86ab7207fc (patch) | |
tree | e13557dad21e95ff192d5df6036d36f3425b64e1 /drivers/net/wireless/ipw2200.c | |
parent | c8fe6679086a983c4c95a441f3246c7aaecab80a (diff) |
[PATCH] ipw2200: Mask out the WEP_KEY command dump from debug log for security reason
Signed-off-by: Nick Kralevich <nick.ipw2200@kralevich.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index d7d24b6facfe..b40bfa063725 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -1953,7 +1953,14 @@ static int ipw_send_cmd(struct ipw_priv *priv, struct host_cmd *cmd) | |||
1953 | IPW_DEBUG_HC("%s command (#%d) %d bytes: 0x%08X\n", | 1953 | IPW_DEBUG_HC("%s command (#%d) %d bytes: 0x%08X\n", |
1954 | get_cmd_string(cmd->cmd), cmd->cmd, cmd->len, | 1954 | get_cmd_string(cmd->cmd), cmd->cmd, cmd->len, |
1955 | priv->status); | 1955 | priv->status); |
1956 | printk_buf(IPW_DL_HOST_COMMAND, (u8 *) cmd->param, cmd->len); | 1956 | |
1957 | #ifndef DEBUG_CMD_WEP_KEY | ||
1958 | if (cmd->cmd == IPW_CMD_WEP_KEY) | ||
1959 | IPW_DEBUG_HC("WEP_KEY command masked out for secure.\n"); | ||
1960 | else | ||
1961 | #endif | ||
1962 | printk_buf(IPW_DL_HOST_COMMAND, (u8 *) cmd->param, cmd->len); | ||
1963 | |||
1957 | 1964 | ||
1958 | rc = ipw_queue_tx_hcmd(priv, cmd->cmd, &cmd->param, cmd->len, 0); | 1965 | rc = ipw_queue_tx_hcmd(priv, cmd->cmd, &cmd->param, cmd->len, 0); |
1959 | if (rc) { | 1966 | if (rc) { |