if (sec->level != SEC_LEVEL_1) { /* only WEP is supported with wireless extensions, so just * report that encryption is used */ erq->length = 0; erq->flags |= IW_ENCODE_ENABLED; return 0; }  
int ieee80211_wx_get_encode(struct ieee80211_device *ieee,			    struct iw_request_info *info,			    union iwreq_data *wrqu, char *keybuf){	struct iw_point *erq = &(wrqu->encoding);	int len, key;	struct ieee80211_crypt_data *crypt;	struct ieee80211_security *sec = &ieee->sec;	IEEE80211_DEBUG_WX("GET_ENCODE\n");	key = erq->flags & IW_ENCODE_INDEX;	if (key) {		if (key > WEP_KEYS)			return -EINVAL;		key--;	} else		key = ieee->tx_keyidx;	crypt = ieee->crypt[key];	erq->flags = key + 1;	if (!sec->enabled) {		erq->length = 0;		erq->flags |= IW_ENCODE_DISABLED;		return 0;	}	if (sec->level != SEC_LEVEL_1) {		/* only WEP is supported with wireless extensions, so just		 * report that encryption is used */		erq->length = 0;		erq->flags |= IW_ENCODE_ENABLED;		return 0;	}	len = sec->key_sizes[key];	memcpy(keybuf, sec->keys[key], len);	erq->length = (len >= 0 ? len : 0);	erq->flags |= IW_ENCODE_ENABLED;	if (ieee->open_wep)		erq->flags |= IW_ENCODE_OPEN;	else		erq->flags |= IW_ENCODE_RESTRICTED;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e0d369d1d969fc9e4fd08a20f6dad04d369aceea/ieee80211_wx.c/clean/net/ieee80211/ieee80211_wx.c