Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/pci Pass more information to iwn_tx, more may ...



details:   https://anonhg.NetBSD.org/src-all/rev/108146b58e98
branches:  trunk
changeset: 986423:108146b58e98
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue May 19 23:52:35 2020 +1000

description:
Pass more information to iwn_tx, more may be required...

diffstat:

 sys/dev/pci/if_iwn.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 301d6722fda0 -r 108146b58e98 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Mon May 18 23:32:42 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Tue May 19 23:52:35 2020 +1000
@@ -3297,7 +3297,8 @@
        struct ieee80211vap *vap = ni->ni_vap;
        struct ieee80211com *ic = ni->ni_ic;
        struct iwn_softc *sc = ic->ic_softc;
-       int error;
+       struct ether_header *eh;
+       int ac, error;
 
        DPRINTFN(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
 
@@ -3307,9 +3308,12 @@
        KASSERT(m != NULL);
 
 
+       eh = mtod(m, struct ether_header *);
+       ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
+           M_WME_GETAC(m) : WME_AC_BE;
         bpf_mtap3(vap->iv_rawbpf, m, BPF_D_OUT);
 
-       error = iwn_tx(sc, m, ni, 0);
+       error = iwn_tx(sc, m, ni, ac);
        if (error != 0) {
                 if_statinc(vap->iv_ifp, if_oerrors);
        } else {



Home | Main Index | Thread Index | Old Index