diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-08-27 08:56:39 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-08-27 08:56:39 +0000 |
| commit | 7a79cebfbac5e1de4648e0385b828bd161e05874 (patch) | |
| tree | 7898977af912b148a68c6e102a888b4316ea1fb5 /sys/dev/ath/if_ath_tdma.c | |
| parent | 0cfae4b4bc88d749cf22ad377bac77b09eb31422 (diff) | |
Notes
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); |
