diff options
Diffstat (limited to 'sys/dev/ath/if_ath_tdma.c')
| -rw-r--r-- | sys/dev/ath/if_ath_tdma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath_tdma.c b/sys/dev/ath/if_ath_tdma.c index d4c9ccd20aad..99cd61eb51a6 100644 --- a/sys/dev/ath/if_ath_tdma.c +++ b/sys/dev/ath/if_ath_tdma.c @@ -250,8 +250,7 @@ void ath_tdma_config(struct ath_softc *sc, struct ieee80211vap *vap) { struct ath_hal *ah = sc->sc_ah; - struct ifnet *ifp = sc->sc_ifp; - struct ieee80211com *ic = ifp->if_l2com; + struct ieee80211com *ic = &sc->sc_ic; const struct ieee80211_txparam *tp; const struct ieee80211_tdma_state *tdma = NULL; int rix; @@ -289,7 +288,7 @@ ath_tdma_config(struct ath_softc *sc, struct ieee80211vap *vap) /* XXX short preamble assumed */ /* XXX non-11n rate assumed */ sc->sc_tdmaguard = ath_hal_computetxtime(ah, sc->sc_currates, - ifp->if_mtu + IEEE80211_MAXOVERHEAD, rix, AH_TRUE); + vap->iv_ifp->if_mtu + IEEE80211_MAXOVERHEAD, rix, AH_TRUE); } ath_hal_intrset(ah, 0); |
