From: Alexandros Couloumbis Date: Fri, 31 Aug 2018 07:48:24 +0000 (+0300) Subject: linux/generic: ozonet-diet, remove crypto & led code from mac80211 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=cefd529fdc66680cd7cadb45e32dfa799cfc0787;p=openwrt-2018%2F.git linux/generic: ozonet-diet, remove crypto & led code from mac80211 --- diff --git a/target/linux/generic/hack-4.14/999-nuke_crypto.patch b/target/linux/generic/hack-4.14/999-nuke_crypto.patch new file mode 100644 index 0000000000..d2f7bba6c5 --- /dev/null +++ b/target/linux/generic/hack-4.14/999-nuke_crypto.patch @@ -0,0 +1,102 @@ +diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig +index 3891cbd..0243fd3 100644 +--- a/net/mac80211/Kconfig ++++ b/net/mac80211/Kconfig +@@ -1,12 +1,6 @@ + config MAC80211 + tristate "Generic IEEE 802.11 Networking Stack (mac80211)" + depends on CFG80211 +- select CRYPTO +- select CRYPTO_ARC4 +- select CRYPTO_AES +- select CRYPTO_CCM +- select CRYPTO_GCM +- select CRYPTO_CMAC + select CRC32 + ---help--- + This option enables the hardware independent IEEE 802.11 +@@ -85,6 +79,7 @@ config MAC80211_LEDS + bool "Enable LED triggers" + depends on MAC80211 + depends on LEDS_CLASS ++ default n + select LEDS_TRIGGERS + ---help--- + This option enables a few LED triggers for different +@@ -93,6 +88,7 @@ config MAC80211_LEDS + config MAC80211_DEBUGFS + bool "Export mac80211 internals in DebugFS" + depends on MAC80211 && DEBUG_FS ++ default n + ---help--- + Select this to see extensive information about + the internal state of mac80211 in debugfs. +@@ -102,6 +98,7 @@ config MAC80211_DEBUGFS + config MAC80211_MESSAGE_TRACING + bool "Trace all mac80211 debug messages" + depends on MAC80211 ++ default n + ---help--- + Select this option to have mac80211 register the + mac80211_msg trace subsystem with tracepoints to +diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig +index 3c06fa9..1937b0e 100644 +--- a/net/wireless/Kconfig ++++ b/net/wireless/Kconfig +@@ -132,6 +132,7 @@ config CFG80211_DEFAULT_PS + + config CFG80211_DEBUGFS + bool "cfg80211 DebugFS entries" ++ default n + depends on CFG80211 + depends on DEBUG_FS + ---help--- +@@ -198,14 +199,17 @@ config LIB80211 + + config LIB80211_CRYPT_WEP + tristate "LIB80211_CRYPT_WEP" ++ default n + select LIB80211 + + config LIB80211_CRYPT_CCMP + tristate "LIB80211_CRYPT_CCMP" ++ default n + select LIB80211 + + config LIB80211_CRYPT_TKIP + tristate "LIB80211_CRYPT_TKIP" ++ default n + select LIB80211 + + config LIB80211_DEBUG +--- a/drivers/net/wireless/intersil/hostap/Kconfig 2017-05-25 15:50:50.000000000 +0300 ++++ b/drivers/net/wireless/hostap/Kconfig 2017-06-02 17:48:55.613761179 +0300 +@@ -3,17 +3,7 @@ config HOSTAP + select WIRELESS_EXT + select WEXT_SPY + select WEXT_PRIV +- select CRYPTO +- select CRYPTO_ARC4 +- select CRYPTO_ECB +- select CRYPTO_AES +- select CRYPTO_MICHAEL_MIC +- select CRYPTO_ECB +- select CRC32 + select LIB80211 +- select LIB80211_CRYPT_WEP +- select LIB80211_CRYPT_TKIP +- select LIB80211_CRYPT_CCMP + ---help--- + Shared driver code for IEEE 802.11b wireless cards based on + Intersil Prism2/2.5/3 chipset. This driver supports so called +--- a/net/wireless/Makefile ++++ b/net/wireless/Makefile +@@ -1,8 +1,5 @@ + obj-$(CONFIG_CFG80211) += cfg80211.o + obj-$(CONFIG_LIB80211) += lib80211.o +-obj-$(CONFIG_LIB80211_CRYPT_WEP) += lib80211_crypt_wep.o +-obj-$(CONFIG_LIB80211_CRYPT_CCMP) += lib80211_crypt_ccmp.o +-obj-$(CONFIG_LIB80211_CRYPT_TKIP) += lib80211_crypt_tkip.o + + obj-$(CONFIG_WEXT_CORE) += wext-core.o + obj-$(CONFIG_WEXT_PROC) += wext-proc.o