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 Opps. Use the right flags.



details:   https://anonhg.NetBSD.org/src-all/rev/8654b691a2f3
branches:  trunk
changeset: 361270:8654b691a2f3
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 24 19:02:54 2020 +1000

description:
Opps.  Use the right flags.

diffstat:

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

diffs (21 lines):

diff -r fe1e65e5d71e -r 8654b691a2f3 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Sun May 24 19:02:09 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Sun May 24 19:02:54 2020 +1000
@@ -3454,7 +3454,7 @@
         * tcpdump indicates that the order is irrelevant, however,
         * as bpf produces unencrypted data for both ordering choices.
         */
-       if (wh->i_fc[1] & IEEE80211_IOC_WEP) {
+       if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
                k = ieee80211_crypto_encap(ni, m);
                if (k == NULL) {
                        m_freem(m);
@@ -3473,7 +3473,7 @@
                tap->wt_chan_flags = htole16(ni->ni_chan->ic_flags);
                tap->wt_rate = rinfo->rate;
                tap->wt_hwqueue = ac;
-               if (wh->i_fc[1] & IEEE80211_IOC_WEP)
+               if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED)
                        tap->wt_flags |= IEEE80211_RADIOTAP_F_WEP;
 
                bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m, BPF_D_OUT);



Home | Main Index | Thread Index | Old Index