if (tkey->ieee->tkip_countermeasures) { 
if (tkey->flags & IEEE80211_CRYPTO_TKIP_COUNTERMEASURES) { 
static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv){	struct ieee80211_tkip_data *tkey = priv;	int len;	const u8 *rc4key;	u8 *pos;	struct scatterlist sg;	if (tkey->ieee->tkip_countermeasures) {		if (net_ratelimit()) {			struct ieee80211_hdr_4addr *hdr =			    (struct ieee80211_hdr_4addr *)skb->data;			printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "			       "TX packet to " MAC_FMT "\n",			       tkey->ieee->dev->name, MAC_ARG(hdr->addr1));		}		return -1;	}	if (skb_tailroom(skb) < 4 || skb->len < hdr_len)		return -1;	len = skb->len - hdr_len;	pos = skb->data + hdr_len;	rc4key = ieee80211_tkip_hdr(skb, hdr_len, priv);	if (!rc4key)		return -1;	crypto_cipher_setkey(tkey->tfm_arc4, rc4key, 16);	sg.page = virt_to_page(pos);	sg.offset = offset_in_page(pos);	sg.length = len + 4;	crypto_cipher_encrypt(tkey->tfm_arc4, &sg, &sg, len + 4);	tkey->tx_iv16++;	if (tkey->tx_iv16 == 0) {		tkey->tx_phase1_done = 0;		tkey->tx_iv32++;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/6eb6edf04acd09e3cea09456913e8da59323b89e/ieee80211_crypt_tkip.c/clean/net/ieee80211/ieee80211_crypt_tkip.c