diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-18 22:57:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-18 22:57:30 +0000 |
commit | 9dc4917da8a85552aa733b269c985cebb35f00c5 (patch) | |
tree | 1d7b62d9d6fc2d792c0fd53c7b3d886dd7635882 /package/madwifi/patches-testing/332-retransmit_check.patch | |
parent | 8aa31d7ce01f62e092d91499529e80db27775558 (diff) | |
download | mtk-20170518-9dc4917da8a85552aa733b269c985cebb35f00c5.zip mtk-20170518-9dc4917da8a85552aa733b269c985cebb35f00c5.tar.gz mtk-20170518-9dc4917da8a85552aa733b269c985cebb35f00c5.tar.bz2 |
rename patches-r3776 to patches-testing
SVN-Revision: 11868
Diffstat (limited to 'package/madwifi/patches-testing/332-retransmit_check.patch')
-rw-r--r-- | package/madwifi/patches-testing/332-retransmit_check.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/madwifi/patches-testing/332-retransmit_check.patch b/package/madwifi/patches-testing/332-retransmit_check.patch new file mode 100644 index 0000000..ec1fcf9 --- /dev/null +++ b/package/madwifi/patches-testing/332-retransmit_check.patch @@ -0,0 +1,22 @@ +--- a/net80211/ieee80211.h ++++ b/net80211/ieee80211.h +@@ -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 +--- a/net80211/ieee80211_input.c ++++ b/net80211/ieee80211_input.c +@@ -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", |