case IPW_PARAM_DROP_UNENCRYPTED: priv->ieee->drop_unencrypted = value; break; 
case IPW_PARAM_DROP_UNENCRYPTED:{ /* HACK: * * wpa_supplicant calls set_wpa_enabled when the driver * is loaded and unloaded, regardless of if WPA is being * used.  No other calls are made which can be used to * determine if encryption will be used or not prior to * association being expected.  If encryption is not being * used, drop_unencrypted is set to false, else true -- we * can use this to determine if the CAP_PRIVACY_ON bit should * be set. */ struct ieee80211_security sec = { .flags = SEC_ENABLED, .enabled = value, }; priv->ieee->drop_unencrypted = value; /* We only change SEC_LEVEL for open mode. Others * are set by ipw_wpa_set_encryption. */ if (!value) { sec.flags |= SEC_LEVEL; sec.level = SEC_LEVEL_0; } else { sec.flags |= SEC_LEVEL; sec.level = SEC_LEVEL_1; } if (priv->ieee->set_security) priv->ieee->set_security(priv->ieee->dev, &sec); break; } 
static int ipw_wpa_set_param(struct net_device *dev, u8 name, u32 value){	struct ipw_priv *priv = ieee80211_priv(dev);	struct ieee80211_crypt_data *crypt;	unsigned long flags;	int ret = 0;	switch (name) {	case IPW_PARAM_WPA_ENABLED:		ret = ipw_wpa_enable(priv, value);		break;	case IPW_PARAM_TKIP_COUNTERMEASURES:		crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];		if (!crypt || !crypt->ops->set_flags || !crypt->ops->get_flags) {			IPW_WARNING("Can't set TKIP countermeasures: "				    "crypt not set!\n");			break;		}		flags = crypt->ops->get_flags(crypt->priv);		if (value)			flags |= IEEE80211_CRYPTO_TKIP_COUNTERMEASURES;		else			flags &= ~IEEE80211_CRYPTO_TKIP_COUNTERMEASURES;		crypt->ops->set_flags(flags, crypt->priv);		break;	case IPW_PARAM_DROP_UNENCRYPTED:		priv->ieee->drop_unencrypted = value;		break;	case IPW_PARAM_PRIVACY_INVOKED:		priv->ieee->privacy_invoked = value;		break;	case IPW_PARAM_AUTH_ALGS:		ret = ipw_wpa_set_auth_algs(priv, value);		break;	case IPW_PARAM_IEEE_802_1X:		priv->ieee->ieee802_1x = value;		break;	default:		IPW_ERROR("%s: Unknown WPA param: %d\n", dev->name, name);		ret = -EOPNOTSUPP;	}	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b095c3819805f87d73d41641a53e4c070360d783/ipw2200.c/buggy/drivers/net/wireless/ipw2200.c