diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2013-01-31 00:14:25 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2013-01-31 00:14:25 +0000 |
commit | b8f355bf5068cb898f4759ecba617cd635fbe08c (patch) | |
tree | 7979c3cda6f59cad88ebdab892dec7d5f35d253c | |
parent | b713097ae3044c616638416df61302bb7c2198db (diff) |
Notes
-rw-r--r-- | sys/dev/ath/if_ath_rx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c index 368c05c7fadd..c8d95361b80e 100644 --- a/sys/dev/ath/if_ath_rx.c +++ b/sys/dev/ath/if_ath_rx.c @@ -431,18 +431,16 @@ ath_rx_tap(struct ifnet *ifp, struct mbuf *m, #ifdef AH_SUPPORT_AR5416 sc->sc_rx_th.wr_chan_flags &= ~CHAN_HT; if (rs->rs_status & HAL_RXERR_PHY) { - struct ieee80211com *ic = ifp->if_l2com; - /* * PHY error - make sure the channel flags * reflect the actual channel configuration, * not the received frame. */ - if (IEEE80211_IS_CHAN_HT40U(ic->ic_curchan)) + if (IEEE80211_IS_CHAN_HT40U(sc->sc_curchan)) sc->sc_rx_th.wr_chan_flags |= CHAN_HT40U; - else if (IEEE80211_IS_CHAN_HT40D(ic->ic_curchan)) + else if (IEEE80211_IS_CHAN_HT40D(sc->sc_curchan)) sc->sc_rx_th.wr_chan_flags |= CHAN_HT40D; - else if (IEEE80211_IS_CHAN_HT20(ic->ic_curchan)) + else if (IEEE80211_IS_CHAN_HT20(sc->sc_curchan)) sc->sc_rx_th.wr_chan_flags |= CHAN_HT20; } else if (sc->sc_rx_th.wr_rate & IEEE80211_RATE_MCS) { /* HT rate */ struct ieee80211com *ic = ifp->if_l2com; |