Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66994
b: refs/heads/master
c: e2f036d
h: refs/heads/master
v: v3
  • Loading branch information
Mattias Nissler authored and David S. Miller committed Oct 10, 2007
1 parent a895661 commit 96086de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0654ff055c6ce5642eed88ba22915b0e56666794
refs/heads/master: e2f036da2f8f72894988670953a1141da785e4f5
20 changes: 11 additions & 9 deletions trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ ieee80211_rx_h_decrypt(struct ieee80211_txrx_data *rx)
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data;
int keyidx;
int hdrlen;
ieee80211_txrx_result result = TXRX_DROP;
struct ieee80211_key *stakey = NULL;

/*
Expand Down Expand Up @@ -522,21 +523,22 @@ ieee80211_rx_h_decrypt(struct ieee80211_txrx_data *rx)
ieee80211_wep_is_weak_iv(rx->skb, rx->key))
rx->sta->wep_weak_iv_count++;

/* either the frame will be decrypted or dropped */
rx->u.rx.status->flag |= RX_FLAG_DECRYPTED;

switch (rx->key->conf.alg) {
case ALG_WEP:
return ieee80211_crypto_wep_decrypt(rx);
result = ieee80211_crypto_wep_decrypt(rx);
break;
case ALG_TKIP:
return ieee80211_crypto_tkip_decrypt(rx);
result = ieee80211_crypto_tkip_decrypt(rx);
break;
case ALG_CCMP:
return ieee80211_crypto_ccmp_decrypt(rx);
result = ieee80211_crypto_ccmp_decrypt(rx);
break;
}

/* not reached */
WARN_ON(1);
return TXRX_DROP;
/* either the frame has been decrypted or will be dropped */
rx->u.rx.status->flag |= RX_FLAG_DECRYPTED;

return result;
}

static void ap_sta_ps_start(struct net_device *dev, struct sta_info *sta)
Expand Down

0 comments on commit 96086de

Please sign in to comment.