From cb3c1c9e1be7846db11d19c92578acc4dc851c27 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Sun, 21 Mar 2010 10:22:39 +0100 Subject: [PATCH] Use temporarily CFP radiotap flag as A-MPDU flag --- rt2860.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rt2860.c b/rt2860.c index 3935c00..51c5ee9 100644 --- a/rt2860.c +++ b/rt2860.c @@ -4207,6 +4207,11 @@ static int rt2860_tx_frame(struct rt2860_softc *sc, if (wh->i_fc[1] & IEEE80211_FC1_WEP) tap->flags |= IEEE80211_RADIOTAP_F_WEP; + /* XXX use temporarily radiotap CFP flag as A-MPDU flag */ + + if (ampdu) + tap->flags |= IEEE80211_RADIOTAP_F_CFP; + if (wh->i_fc[1] & IEEE80211_FC1_WEP) { wh->i_fc[1] &= ~IEEE80211_FC1_WEP; @@ -5240,6 +5245,11 @@ static int rt2860_rx_eof(struct rt2860_softc *sc, int limit) if (shortgi) tap->flags |= IEEE80211_RADIOTAP_F_SHORTGI; + /* XXX use temporarily radiotap CFP flag as A-MPDU flag */ + + if (ampdu) + tap->flags |= IEEE80211_RADIOTAP_F_CFP; + bpf_mtap2(sc->drvbpf, tap, sc->rxtap_len, m); } -- 2.11.4.GIT