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/96405a39eb3b
branches:  trunk
changeset: 933895:96405a39eb3b
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 69c3cc5b905e -r 96405a39eb3b 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
@@ -3381,7 +3381,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);
@@ -3400,7 +3400,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