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 Only radiotap_tx successful packets.



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

description:
Only radiotap_tx successful packets.

diffstat:

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

diffs (21 lines):

diff -r ccecad962009 -r bed33f539498 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun Jun 18 15:13:58 2023 +1000
+++ b/sys/dev/pci/if_iwn.c      Sun Jun 18 15:15:03 2023 +1000
@@ -3851,8 +3851,6 @@ iwn_start(struct ifnet *ifp)
                ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
                    M_WME_GETAC(m) : WME_AC_BE;
 
-               if (sc->sc_beacon_wait == 0)
-                       ieee80211_radiotap_tx(vap, m);
                if (sc->sc_beacon_wait)
                        continue;
 
@@ -3862,6 +3860,8 @@ iwn_start(struct ifnet *ifp)
                        continue;
                }
 
+               if (sc->sc_beacon_wait == 0)
+                       ieee80211_radiotap_tx(vap, m);
                IF_DEQUEUE(&sc->sc_sendq, m);
 
                sc->sc_tx_timer = 5;



Home | Main Index | Thread Index | Old Index