From 3b5c90aae391d5433662b24a457cd729f2f19ddd Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Fri, 12 Mar 2010 13:05:36 +0100 Subject: [PATCH] Set radiotap WEP flag for received frames --- rt2860.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rt2860.c b/rt2860.c index e944b80..dd51e7c 100644 --- a/rt2860.c +++ b/rt2860.c @@ -4883,6 +4883,10 @@ static int rt2860_rx_eof(struct rt2860_softc *sc, int limit) if (rxwi->bw_mcs & RT2860_RXWI_MCS_SHOTPRE) tap->flags |= IEEE80211_RADIOTAP_F_SHORTPRE; + if ((desc_flags & RT2860_RXDESC_FLAGS_DECRYPTED) || + (wh->i_fc[1] & IEEE80211_FC1_WEP)) + tap->flags |= IEEE80211_RADIOTAP_F_WEP; + if (shortgi) tap->flags |= IEEE80211_RADIOTAP_F_SHORTGI; -- 2.11.4.GIT