Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f516dbcd authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville
Browse files

[PATCH] ipw2200: Mask out the WEP_KEY command dump from debug log for security reason

parent c8fe6679
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1953,8 +1953,15 @@ static int ipw_send_cmd(struct ipw_priv *priv, struct host_cmd *cmd)
	IPW_DEBUG_HC("%s command (#%d) %d bytes: 0x%08X\n",
		     get_cmd_string(cmd->cmd), cmd->cmd, cmd->len,
		     priv->status);

#ifndef DEBUG_CMD_WEP_KEY
	if (cmd->cmd == IPW_CMD_WEP_KEY)
		IPW_DEBUG_HC("WEP_KEY command masked out for secure.\n");
	else
#endif
		printk_buf(IPW_DL_HOST_COMMAND, (u8 *) cmd->param, cmd->len);


	rc = ipw_queue_tx_hcmd(priv, cmd->cmd, &cmd->param, cmd->len, 0);
	if (rc) {
		priv->status &= ~STATUS_HCMD_ACTIVE;