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/94b911b4a227
branches: trunk
changeset: 367232:94b911b4a227
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 9d3de226405a -r 94b911b4a227 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
@@ -2109,9 +2109,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;
@@ -2239,9 +2241,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,
@@ -2280,6 +2286,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