From 8ba68b01720cdcaf12db952a84b72d6b7eb20249 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 22 Feb 2010 09:10:23 +0100 Subject: [PATCH] Use field ni_txparms of ieee80211_node and not iv_txparms of ieee80211vap during Tx --- rt2870.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rt2870.c b/rt2870.c index c6dbdca..34b84e8 100644 --- a/rt2870.c +++ b/rt2870.c @@ -3984,7 +3984,7 @@ static int rt2870_tx_mgmt(struct rt2870_softc *sc, ic = ifp->if_l2com; vap = ni->ni_vap; rni = (struct rt2870_softc_node *) ni; - tp = &vap->iv_txparms[ieee80211_chan2mode(ic->ic_curchan)]; + tp = ni->ni_txparms; ring = &sc->tx_ring[qid]; data = STAILQ_FIRST(&ring->inactive); @@ -4199,7 +4199,7 @@ static int rt2870_tx_data(struct rt2870_softc *sc, ic = ifp->if_l2com; vap = ni->ni_vap; rni = (struct rt2870_softc_node *) ni; - tp = &vap->iv_txparms[ieee80211_chan2mode(ni->ni_chan)]; + tp = ni->ni_txparms; ring = &sc->tx_ring[qid]; data = STAILQ_FIRST(&ring->inactive); -- 2.11.4.GIT