Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41465
b: refs/heads/master
c: 837925d
h: refs/heads/master
i:
  41463: 105f707
v: v3
  • Loading branch information
Larry Finger authored and Jeff Garzik committed Dec 2, 2006
1 parent 2f26d2d commit b71a218
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42a4cf9576f036db69e15fa6b4e72986e17f0359
refs/heads/master: 837925df022a667c302b24aad9d6a58f94efd959
2 changes: 2 additions & 0 deletions trunk/include/net/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,8 @@ struct ieee80211_device {
int perfect_rssi;
int worst_rssi;

u16 prev_seq_ctl; /* used to drop duplicate frames */

/* Callback functions */
void (*set_security) (struct net_device * dev,
struct ieee80211_security * sec);
Expand Down
5 changes: 5 additions & 0 deletions trunk/net/ieee80211/ieee80211_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,11 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
goto rx_exit;
}
#endif
/* drop duplicate 802.11 retransmissions (IEEE 802.11 Chap. 9.29) */
if (sc == ieee->prev_seq_ctl)
goto rx_dropped;
else
ieee->prev_seq_ctl = sc;

/* Data frame - extract src/dst addresses */
if (skb->len < IEEE80211_3ADDR_LEN)
Expand Down

0 comments on commit b71a218

Please sign in to comment.