priv->sec.key_sizes[i] = sec->key_sizes[i]; 
priv->ieee->sec.key_sizes[i] = sec->key_sizes[i]; 
static void shim__set_security(struct net_device *dev,			       struct ieee80211_security *sec){	struct ipw2100_priv *priv = ieee80211_priv(dev);	int i, force_update = 0;	down(&priv->action_sem);	if (!(priv->status & STATUS_INITIALIZED))		goto done;	for (i = 0; i < 4; i++) {		if (sec->flags & (1 << i)) {			priv->sec.key_sizes[i] = sec->key_sizes[i];			if (sec->key_sizes[i] == 0)				priv->sec.flags &= ~(1 << i);			else				memcpy(priv->sec.keys[i], sec->keys[i],				       sec->key_sizes[i]);			priv->sec.flags |= (1 << i);			priv->status |= STATUS_SECURITY_UPDATED;		}	}	if ((sec->flags & SEC_ACTIVE_KEY) &&	    priv->sec.active_key != sec->active_key) {		if (sec->active_key <= 3) {			priv->sec.active_key = sec->active_key;			priv->sec.flags |= SEC_ACTIVE_KEY;		} else			priv->sec.flags &= ~SEC_ACTIVE_KEY;		priv->status |= STATUS_SECURITY_UPDATED;	}	if ((sec->flags & SEC_AUTH_MODE) &&	    (priv->sec.auth_mode != sec->auth_mode)) {		priv->sec.auth_mode = sec->auth_mode;		priv->sec.flags |= SEC_AUTH_MODE;		priv->status |= STATUS_SECURITY_UPDATED;	}	if (sec->flags & SEC_ENABLED && priv->sec.enabled != sec->enabled) {		priv->sec.flags |= SEC_ENABLED;		priv->sec.enabled = sec->enabled;		priv->status |= STATUS_SECURITY_UPDATED;		force_update = 1;	}	if (sec->flags & SEC_LEVEL && priv->sec.level != sec->level) {		priv->sec.level = sec->level;		priv->sec.flags |= SEC_LEVEL;		priv->status |= STATUS_SECURITY_UPDATED;	}	IPW_DEBUG_WEP("Security flags: %c %c%c%c%c %c%c%c%c\n",		      priv->sec.flags & (1 << 8) ? '1' : '0',		      priv->sec.flags & (1 << 7) ? '1' : '0',		      priv->sec.flags & (1 << 6) ? '1' : '0',		      priv->sec.flags & (1 << 5) ? '1' : '0',		      priv->sec.flags & (1 << 4) ? '1' : '0',		      priv->sec.flags & (1 << 3) ? '1' : '0',		      priv->sec.flags & (1 << 2) ? '1' : '0',		      priv->sec.flags & (1 << 1) ? '1' : '0',		      priv->sec.flags & (1 << 0) ? '1' : '0');/* As a temporary work around to enable WPA until we figure out why * wpa_supplicant toggles the security capability of the driver, which * forces a disassocation with force_update... * *	if (force_update || !(priv->status & STATUS_ASSOCIATED))*/	if (!(priv->status & (STATUS_ASSOCIATED | STATUS_ASSOCIATING)))		ipw2100_configure_security(priv, 0);      done:	up(&priv->action_sem);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/25b645be1e25e16ea7a25678ac195a0e7595c629/ipw2100.c/buggy/drivers/net/wireless/ipw2100.c