From 89d8f558450e045563fc43c8a1a02736519d2840 Mon Sep 17 00:00:00 2001 From: adrian <adrian@FreeBSD.org> Date: Fri, 26 May 2017 00:48:21 +0000 Subject: [PATCH] [ath] fix short-GI wireshark flag. Yes, HAL_RX_GI means "short guard interval." --- sys/dev/ath/if_ath_rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c index 0642ce3bd18a..6f5bc09b49c5 100644 --- a/sys/dev/ath/if_ath_rx.c +++ b/sys/dev/ath/if_ath_rx.c @@ -593,7 +593,8 @@ ath_rx_tap(struct ath_softc *sc, struct mbuf *m, sc->sc_rx_th.wr_chan_flags |= CHAN_HT40U; else sc->sc_rx_th.wr_chan_flags |= CHAN_HT40D; - if ((rs->rs_flags & HAL_RX_GI) == 0) + + if (rs->rs_flags & HAL_RX_GI) sc->sc_rx_th.wr_flags |= IEEE80211_RADIOTAP_F_SHORTGI; }