diff options
| author | Andriy Voskoboinyk <avos@FreeBSD.org> | 2017-02-26 20:49:35 +0000 |
|---|---|---|
| committer | Andriy Voskoboinyk <avos@FreeBSD.org> | 2017-02-26 20:49:35 +0000 |
| commit | f6313575401b3e97469df997e8b9d1a18fb485d0 (patch) | |
| tree | 157d78224587d45de6f2a92e09caff18cbfe7fac /sys/dev/bwi | |
| parent | 2fa6d2fe8429a0bdcead3f328e95f3158f30244d (diff) | |
Notes
Diffstat (limited to 'sys/dev/bwi')
| -rw-r--r-- | sys/dev/bwi/if_bwi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c index 338ef62d43bb..5953f27fa800 100644 --- a/sys/dev/bwi/if_bwi.c +++ b/sys/dev/bwi/if_bwi.c @@ -2930,7 +2930,7 @@ bwi_encap(struct bwi_softc *sc, int idx, struct mbuf *m, struct bwi_mac *mac; struct bwi_txbuf_hdr *hdr; struct ieee80211_frame *wh; - const struct ieee80211_txparam *tp; + const struct ieee80211_txparam *tp = ni->ni_txparms; uint8_t rate, rate_fb; uint32_t mac_ctrl; uint16_t phy_ctrl; @@ -2955,7 +2955,6 @@ bwi_encap(struct bwi_softc *sc, int idx, struct mbuf *m, /* * Find TX rate */ - tp = &vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)]; if (type != IEEE80211_FC0_TYPE_DATA || (m->m_flags & M_EAPOL)) { rate = rate_fb = tp->mgmtrate; } else if (ismcast) { |
