revert accidental change to madwifi.sh
[openwrt.git] / package / madwifi / patches-testing / 332-retransmit_check.patch
1 --- a/net80211/ieee80211.h
2 +++ b/net80211/ieee80211.h
3 @@ -174,8 +174,6 @@
4 #define IEEE80211_SEQ_SEQ_MASK 0xfff0
5 #define IEEE80211_SEQ_SEQ_SHIFT 4
6
7 -#define IEEE80211_SEQ_LEQ(a,b) ((int)((a)-(b)) <= 0)
8 -
9 #define IEEE80211_NWID_LEN 32
10
11 #define IEEE80211_QOS_TXOP 0x00ff
12 --- a/net80211/ieee80211_input.c
13 +++ b/net80211/ieee80211_input.c
14 @@ -406,7 +406,7 @@
15 tid = 0;
16 rxseq = le16toh(*(__le16 *)wh->i_seq);
17 if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
18 - IEEE80211_SEQ_LEQ(rxseq, ni->ni_rxseqs[tid])) {
19 + (rxseq == ni->ni_rxseqs[tid])) {
20 /* duplicate, discard */
21 IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_INPUT,
22 bssid, "duplicate",
This page took 0.053378 seconds and 5 git commands to generate.