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 Use ieee80211_radiotap_tx.



details:   https://anonhg.NetBSD.org/src-all/rev/aba6ce359089
branches:  trunk
changeset: 377158:aba6ce359089
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Jun 18 15:13:58 2023 +1000

description:
Use ieee80211_radiotap_tx.

diffstat:

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

diffs (29 lines):

diff -r 30a46dc1ed38 -r aba6ce359089 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun Jun 18 15:12:51 2023 +1000
+++ b/sys/dev/pci/if_iwn.c      Sun Jun 18 15:13:58 2023 +1000
@@ -3498,14 +3498,14 @@ iwn_raw_xmit(struct ieee80211_node *ni ,
        ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
            M_WME_GETAC(m) : WME_AC_BE;
 
-        bpf_mtap3(vap->iv_rawbpf, m, BPF_D_OUT);
-
        if (iwn_tx(vap, m, ni, ac) != 0) {
                ieee80211_tx_complete(ni, m, 1);
                if_statinc(ifp, if_oerrors);
                return ENXIO;
        }
 
+       ieee80211_radiotap_tx(vap, m);
+
        sc->sc_tx_timer = 5;
        ifp->if_timer = 1;
 
@@ -3856,8 +3856,6 @@ iwn_start(struct ifnet *ifp)
                if (sc->sc_beacon_wait)
                        continue;
 
-               //bpf_mtap3(ic->ic_rawbpf, m, BPF_D_OUT);
-
                if (iwn_tx(vap, m, ni, ac) != 0) {
                        ieee80211_tx_complete(ni, m, 1);
                        if_statinc(ifp, if_oerrors);



Home | Main Index | Thread Index | Old Index