memcpy((char *)cmd.host_command_parameters, essid, ssid_len); 
memcpy(cmd.host_command_parameters, essid, ssid_len); 
static int ipw2100_set_essid(struct ipw2100_priv *priv, char *essid,			     int length, int batch_mode){	int ssid_len = min(length, IW_ESSID_MAX_SIZE);	struct host_command cmd = {		.host_command = SSID,		.host_command_sequence = 0,		.host_command_length = ssid_len	};	int err;	IPW_DEBUG_HC("SSID: '%s'\n", escape_essid(essid, ssid_len));	if (ssid_len)		memcpy((char *)cmd.host_command_parameters, essid, ssid_len);	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		if (err)			return err;	}	/* Bug in FW currently doesn't honor bit 0 in SET_SCAN_OPTIONS to	 * disable auto association -- so we cheat by setting a bogus SSID */	if (!ssid_len && !(priv->config & CFG_ASSOCIATE)) {		int i;		u8 *bogus = (u8 *) cmd.host_command_parameters;		for (i = 0; i < IW_ESSID_MAX_SIZE; i++)			bogus[i] = 0x18 + i;		cmd.host_command_length = IW_ESSID_MAX_SIZE;	}	/* NOTE:  We always send the SSID command even if the provided ESSID is	 * the same as what we currently think is set. */	err = ipw2100_hw_send_command(priv, &cmd);	if (!err) {		memset(priv->essid + ssid_len, 0, IW_ESSID_MAX_SIZE - ssid_len);		memcpy(priv->essid, essid, ssid_len);		priv->essid_len = ssid_len;	}	if (!batch_mode) {		if (ipw2100_enable_adapter(priv))			err = -EIO;	}	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/823283549da144ff49e65c6e4a670b7784203e0b/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c