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/df04f492bb8b
branches:  trunk
changeset: 952084:df04f492bb8b
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 d9ac7a5489ef -r df04f492bb8b 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
@@ -3224,7 +3224,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__));
 
@@ -3234,9 +3235,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