memcpy(&cmd.param, rates, sizeof(*rates));
memcpy(cmd.param, rates, sizeof(*rates));
static int ipw_send_supported_rates(struct ipw_priv *priv,				    struct ipw_supported_rates *rates){	struct host_cmd cmd = {		.cmd = IPW_CMD_SUPPORTED_RATES,		.len = sizeof(*rates)	};	if (!priv || !rates) {		IPW_ERROR("Invalid args\n");		return -1;	}	memcpy(&cmd.param, rates, sizeof(*rates));	if (ipw_send_cmd(priv, &cmd)) {		IPW_ERROR("failed to send SUPPORTED_RATES command\n");		return -1;	}	return 0;}