1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 00:11:52 +02:00
openwrt-xburst/package/madwifi/patches/405-retransmit_check.patch
nbd c537863342 madwifi: fix noderef and state machine issues in the currently unused ap-to-ap wds mode; refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-02 13:04:36 +00:00

23 lines
753 B
Diff

--- a/net80211/ieee80211.h
+++ b/net80211/ieee80211.h
@@ -174,8 +174,6 @@ struct ieee80211_ctlframe_addr2 {
#define IEEE80211_SEQ_SEQ_MASK 0xfff0
#define IEEE80211_SEQ_SEQ_SHIFT 4
-#define IEEE80211_SEQ_LEQ(a,b) ((int)((a)-(b)) <= 0)
-
#define IEEE80211_NWID_LEN 32
#define IEEE80211_QOS_TXOP 0x00ff
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
@@ -429,7 +429,7 @@ ieee80211_input(struct ieee80211vap * va
tid = 0;
rxseq = le16toh(*(__le16 *)wh->i_seq);
if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
- IEEE80211_SEQ_LEQ(rxseq, ni->ni_rxseqs[tid])) {
+ (rxseq == ni->ni_rxseqs[tid])) {
/* duplicate, discard */
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_INPUT,
bssid, "duplicate",