diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-17 02:30:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-17 02:30:08 +0000 |
commit | b83f384981232d7ebaff91900f1dd935d9bbb8a5 (patch) | |
tree | 9a6c4a84b220fbf9a9e4066c469eed96abce61f1 /package/madwifi/patches-r3776/332-retransmit_check.patch | |
parent | d549476c027e2aa6d8c8107cc61008fa03e94263 (diff) | |
download | upstream-b83f384981232d7ebaff91900f1dd935d9bbb8a5.tar.gz upstream-b83f384981232d7ebaff91900f1dd935d9bbb8a5.tar.bz2 upstream-b83f384981232d7ebaff91900f1dd935d9bbb8a5.zip |
huge madwifi update (work in progress, disabled by default, compiles but breaks at run time)
SVN-Revision: 11851
Diffstat (limited to 'package/madwifi/patches-r3776/332-retransmit_check.patch')
-rw-r--r-- | package/madwifi/patches-r3776/332-retransmit_check.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/madwifi/patches-r3776/332-retransmit_check.patch b/package/madwifi/patches-r3776/332-retransmit_check.patch new file mode 100644 index 0000000000..2e2f919538 --- /dev/null +++ b/package/madwifi/patches-r3776/332-retransmit_check.patch @@ -0,0 +1,26 @@ +Index: madwifi-trunk-r3776/net80211/ieee80211.h +=================================================================== +--- madwifi-trunk-r3776.orig/net80211/ieee80211.h 2008-07-17 04:14:08.000000000 +0200 ++++ madwifi-trunk-r3776/net80211/ieee80211.h 2008-07-17 04:14:13.000000000 +0200 +@@ -174,8 +174,6 @@ + #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 +Index: madwifi-trunk-r3776/net80211/ieee80211_input.c +=================================================================== +--- madwifi-trunk-r3776.orig/net80211/ieee80211_input.c 2008-07-17 04:14:08.000000000 +0200 ++++ madwifi-trunk-r3776/net80211/ieee80211_input.c 2008-07-17 04:14:13.000000000 +0200 +@@ -406,7 +406,7 @@ + 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", |