struct ieee80211_device *ieee = priv->ieee; struct ieee80211_security sec = { .flags = SEC_LEVEL | SEC_ENABLED, }; int ret = 0;  ieee->wpa_enabled = value;  if (value) { sec.level = SEC_LEVEL_3; sec.enabled = 1; } else { sec.level = SEC_LEVEL_0; sec.enabled = 0; ieee->wpa_ie_len = 0; }  if (ieee->set_security) ieee->set_security(ieee->dev, &sec); else ret = -EOPNOTSUPP;  return ret; 
/* This is called when wpa_supplicant loads and closes the driver * interface. */ return 0; 
static int ipw_wpa_enable(struct ipw_priv *priv, int value){	struct ieee80211_device *ieee = priv->ieee;	struct ieee80211_security sec = {		.flags = SEC_LEVEL | SEC_ENABLED,	};	int ret = 0;	ieee->wpa_enabled = value;	if (value) {		sec.level = SEC_LEVEL_3;		sec.enabled = 1;	} else {		sec.level = SEC_LEVEL_0;		sec.enabled = 0;		ieee->wpa_ie_len = 0;	}	if (ieee->set_security)		ieee->set_security(ieee->dev, &sec);	else		ret = -EOPNOTSUPP;	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b095c3819805f87d73d41641a53e4c070360d783/ipw2200.c/buggy/drivers/net/wireless/ipw2200.c