Stephen Gutknecht (hilltx) wrote:
Been trying to figure out why for the past 18 hours all my working
with the new chipset support in ATH9K driver was failing... research
says, these are related:

aes_generic: Unknown symbol crypto_unregister_alg
aes_generic: Unknown symbol crypto_register_alg
arc4: Unknown symbol crypto_unregister_alg
arc4: Unknown symbol crypto_register_alg

phy0: Failed to initialize wep: -2

This change 19 hours ago is suspect:
https://dev.openwrt.org/changeset/13850/trunk

Can someone fix please?
_______________________________________________
Here's a fix.

Index: package/kernel/modules/crypto.mk
===================================================================
--- package/kernel/modules/crypto.mk	(revision 13867)
+++ package/kernel/modules/crypto.mk	(working copy)
@@ -42,8 +42,8 @@
 	DEFLATE=deflate
 
 crypto_confvar=CONFIG_CRYPTO_$(word 1,$(subst =,$(space),$(1)))
-crypto_file=$(if $($(call crypto_confvar,$(1))),$(LINUX_DIR)/crypto/$(word 2,$(subst =,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
-crypto_name=$(if $($(call crypto_confvar,$(1))),$(word 2,$(subst =,$(space),$(1))))
+crypto_file=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(LINUX_DIR)/crypto/$(word 2,$(subst =,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
+crypto_name=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(word 2,$(subst =,$(space),$(1))))
 
 # XXX: added CONFIG_CRYPTO_HMAC to KCONFIG so that CONFIG_CRYPTO_HASH is
 # always set, even if no hash modules are selected
@@ -52,7 +52,7 @@
   TITLE:=Core CryptoAPI modules
   KCONFIG:=CONFIG_CRYPTO=y $(foreach mod,$(CRYPTO_MODULES),$(call crypto_confvar,$(mod)))
   FILES:=$(foreach mod,$(CRYPTO_MODULES),$(call crypto_file,$(mod)))
-  AUTOLOAD:=$(call AutoLoad,01,$(foreach mod,$(CRYPTO_MODULES),$(call crypto_file,$(mod))))
+  AUTOLOAD:=$(call AutoLoad,01,$(foreach mod,$(CRYPTO_MODULES),$(call crypto_name,$(mod))))
 endef
 
 define KernelPackage/crypto-core/2.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to