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 Disable hwcrypto for now.



details:   https://anonhg.NetBSD.org/src-all/rev/c8e2a1a954ef
branches:  trunk
changeset: 370567:c8e2a1a954ef
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue Mar 08 04:26:24 2022 +1100

description:
Disable hwcrypto for now.

diffstat:

 sys/dev/pci/if_ipw.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (37 lines):

diff -r 722a056057c8 -r c8e2a1a954ef sys/dev/pci/if_ipw.c
--- a/sys/dev/pci/if_ipw.c      Tue Mar 08 04:11:27 2022 +1100
+++ b/sys/dev/pci/if_ipw.c      Tue Mar 08 04:26:24 2022 +1100
@@ -2108,9 +2108,11 @@
        struct ieee80211com *ic = &sc->sc_ic;
        struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
        struct ifnet *ifp = &sc->sc_if;
+#ifdef IPW_HWCRYPTO
        struct ipw_security security;
        struct ieee80211_key *k;
        struct ipw_wep_key wepkey;
+#endif
        struct ipw_scan_options options;
        struct ipw_configuration config;
        uint32_t data;
@@ -2238,9 +2240,13 @@
                        return error;
        }
 
+#ifdef IPW_HWCRYPTO
        (void)memset(&security, 0, sizeof(security));
+#if 0
        security.authmode = (ic->ic_bss->ni_authmode == IEEE80211_AUTH_SHARED) ?
            IPW_AUTH_SHARED : IPW_AUTH_OPEN;
+#endif
+       security.authmode = IPW_AUTH_OPEN; /* XXX is this right? */
        security.ciphers = htole32(IPW_CIPHER_NONE);
        DPRINTF(("Setting authmode to %u\n", security.authmode));
        error = ipw_cmd(sc, IPW_CMD_SET_SECURITY_INFORMATION, &security,
@@ -2279,6 +2285,7 @@
        error = ipw_cmd(sc, IPW_CMD_SET_WEP_FLAGS, &data, sizeof data);
        if (error != 0)
                return error;
+#endif
 
 #if 0
        struct ipw_wpa_ie ie;



Home | Main Index | Thread Index | Old Index