Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194173
b: refs/heads/master
c: e3efca0
h: refs/heads/master
i:
  194171: 10ed1ad
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Mar 31, 2010
1 parent 29cadd0 commit 7876aac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 9fd1ea428590cf6e35e5a7df32ff6bccfd371db2
refs/heads/master: e3efca0a63b4ac4d8849d37d082a95cf1a75162d
11 changes: 7 additions & 4 deletions trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,12 +1408,15 @@ static int
ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(rx->skb);
__le16 fc = hdr->frame_control;
int res;

res = ieee80211_drop_unencrypted(rx, fc);
if (unlikely(res))
return res;
/*
* Pass through unencrypted frames if the hardware has
* decrypted them already.
*/
if (status->flag & RX_FLAG_DECRYPTED)
return 0;

if (rx->sta && test_sta_flags(rx->sta, WLAN_STA_MFP)) {
if (unlikely(ieee80211_is_unicast_robust_mgmt_frame(rx->skb) &&
Expand Down

0 comments on commit 7876aac

Please sign in to comment.