IPW_DEBUG_ERROR("%s: Could not disable adapter %d\n", 
printk(KERN_ERR DRV_NAME ": %s: Could not disable adapter %d\n", 
static int ipw2100_set_key(struct ipw2100_priv *priv,			   int idx, char *key, int len, int batch_mode){	int keylen = len ? (len <= 5 ? 5 : 13) : 0;	struct host_command cmd = {		.host_command = WEP_KEY_INFO,		.host_command_sequence = 0,		.host_command_length = sizeof(struct ipw2100_wep_key),	};	struct ipw2100_wep_key *wep_key = (void*)cmd.host_command_parameters;	int err;	IPW_DEBUG_HC("WEP_KEY_INFO: index = %d, len = %d/%d\n",				 idx, keylen, len);	/* NOTE: We don't check cached values in case the firmware was reset	 * or some other problem is occuring.  If the user is setting the key,	 * then we push the change */	wep_key->idx = idx;	wep_key->len = keylen;	if (keylen) {		memcpy(wep_key->key, key, len);		memset(wep_key->key + len, 0, keylen - len);	}	/* Will be optimized out on debug not being configured in */	if (keylen == 0)		IPW_DEBUG_WEP("%s: Clearing key %d\n",				  priv->net_dev->name, wep_key->idx);	else if (keylen == 5)		IPW_DEBUG_WEP("%s: idx: %d, len: %d key: " WEP_FMT_64 "\n",				  priv->net_dev->name, wep_key->idx, wep_key->len,				  WEP_STR_64(wep_key->key));	else		IPW_DEBUG_WEP("%s: idx: %d, len: %d key: " WEP_FMT_128				  "\n",				  priv->net_dev->name, wep_key->idx, wep_key->len,				  WEP_STR_128(wep_key->key));	if (!batch_mode) {		err = ipw2100_disable_adapter(priv);		/* FIXME: IPG: shouldn't this prink be in _disable_adapter()? */		if (err) {			IPW_DEBUG_ERROR("%s: Could not disable adapter %d\n",			       priv->net_dev->name, err);			return err;		}	}	/* send cmd to firmware */	err = ipw2100_hw_send_command(priv, &cmd);	if (!batch_mode) {		int err2 = ipw2100_enable_adapter(priv);		if (err == 0)			err = err2;	}	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/797b4f7652a4dcf06bdf6a8c870991acdf56c03d/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c