1 --- a/net80211/ieee80211.h
2 +++ b/net80211/ieee80211.h
3 @@ -174,8 +174,6 @@ struct ieee80211_ctlframe_addr2 {
4 #define IEEE80211_SEQ_SEQ_MASK 0xfff0
5 #define IEEE80211_SEQ_SEQ_SHIFT 4
7 -#define IEEE80211_SEQ_LEQ(a,b) ((int)((a)-(b)) <= 0)
9 #define IEEE80211_NWID_LEN 32
11 #define IEEE80211_QOS_TXOP 0x00ff
12 --- a/net80211/ieee80211_input.c
13 +++ b/net80211/ieee80211_input.c
14 @@ -428,7 +428,7 @@ ieee80211_input(struct ieee80211vap * va
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,