diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 17:14:38 +1100 | 
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 17:14:38 +1100 | 
| commit | bcd6acd51f3d4d1ada201e9bc5c40a31d6d80c71 (patch) | |
| tree | 2f6dffd2d3e4dd67355a224de7e7a960335a92fd /net/mac80211/wep.c | |
| parent | 11c34c7deaeeebcee342cbc35e1bb2a6711b2431 (diff) | |
| parent | 3ff6a468b45b5dfeb0e903e56f4eb27d34b2437c (diff) | |
Merge commit 'origin/master' into next
Conflicts:
	include/linux/kvm.h
Diffstat (limited to 'net/mac80211/wep.c')
| -rw-r--r-- | net/mac80211/wep.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/wep.c b/net/mac80211/wep.c index 8a980f136941..247123fe1a7a 100644 --- a/net/mac80211/wep.c +++ b/net/mac80211/wep.c @@ -281,16 +281,18 @@ bool ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key)  ieee80211_rx_result  ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx)  { -	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; +	struct sk_buff *skb = rx->skb; +	struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); +	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;  	if (!ieee80211_is_data(hdr->frame_control) &&  	    !ieee80211_is_auth(hdr->frame_control))  		return RX_CONTINUE; -	if (!(rx->status->flag & RX_FLAG_DECRYPTED)) { +	if (!(status->flag & RX_FLAG_DECRYPTED)) {  		if (ieee80211_wep_decrypt(rx->local, rx->skb, rx->key))  			return RX_DROP_UNUSABLE; -	} else if (!(rx->status->flag & RX_FLAG_IV_STRIPPED)) { +	} else if (!(status->flag & RX_FLAG_IV_STRIPPED)) {  		ieee80211_wep_remove_iv(rx->local, rx->skb, rx->key);  		/* remove ICV */  		skb_trim(rx->skb, rx->skb->len - WEP_ICV_LEN);  | 
