param->value = priv->sec.auth_mode; 
param->value = priv->ieee->sec.auth_mode; 
static int ipw2100_wx_get_auth(struct net_device *dev,			       struct iw_request_info *info,			       union iwreq_data *wrqu, char *extra){	struct ipw2100_priv *priv = ieee80211_priv(dev);	struct ieee80211_device *ieee = priv->ieee;	struct ieee80211_crypt_data *crypt;	struct iw_param *param = &wrqu->param;	int ret = 0;	switch (param->flags & IW_AUTH_INDEX) {	case IW_AUTH_WPA_VERSION:	case IW_AUTH_CIPHER_PAIRWISE:	case IW_AUTH_CIPHER_GROUP:	case IW_AUTH_KEY_MGMT:		/*		 * wpa_supplicant will control these internally		 */		ret = -EOPNOTSUPP;		break;	case IW_AUTH_TKIP_COUNTERMEASURES:		crypt = priv->ieee->crypt[priv->ieee->tx_keyidx];		if (!crypt || !crypt->ops->get_flags) {			IPW_DEBUG_WARNING("Can't get TKIP countermeasures: "					  "crypt not set!\n");			break;		}		param->value = (crypt->ops->get_flags(crypt->priv) &				IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) ? 1 : 0;		break;	case IW_AUTH_DROP_UNENCRYPTED:		param->value = ieee->drop_unencrypted;		break;	case IW_AUTH_80211_AUTH_ALG:		param->value = priv->sec.auth_mode;		break;	case IW_AUTH_WPA_ENABLED:		param->value = ieee->wpa_enabled;		break;	case IW_AUTH_RX_UNENCRYPTED_EAPOL:		param->value = ieee->ieee802_1x;		break;	case IW_AUTH_ROAMING_CONTROL:	case IW_AUTH_PRIVACY_INVOKED:		param->value = ieee->privacy_invoked;		break;	default:		return -EOPNOTSUPP;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/25b645be1e25e16ea7a25678ac195a0e7595c629/ipw2100.c/clean/drivers/net/wireless/ipw2100.c