kernel: make Wireless Extensions (WEXT) support optional optional-wext
authorJonas Gorski <jonas.gorski@gmail.com>
Sat, 21 Oct 2017 16:23:14 +0000 (18:23 +0200)
committerJonas Gorski <jonas.gorski@gmail.com>
Thu, 26 Oct 2017 10:59:05 +0000 (12:59 +0200)
commit66dcc9cb7ab1a647df8654c4cb28a20138b26d9f
tree48f2929f3c4af86f69de17642df3956a3fcceb7b
parent6f528dfbd91f8e687e36300ab9284d16b78475b4
kernel: make Wireless Extensions (WEXT) support optional

Currently we always have WEXT support enabled, but it is only needed for
a few legacy drivers and utilities (and, unfortunately the rtl8192cu 11n
staging driver).

Since this bloats both kernel (builtin and in cfg80211) and userspace
(wpa-supplicant) for most targets, allow disabling it for building
leaner kernels.

In a short test build with ALL_NONSHARED on ar71xx, the unpadded file
sizes were:

        y       n       delta
kernel 1364205 1361585 -2620
rootfs 2020282 2006686 -13596

Resulting in a total of 15.8 kB saved.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
config/Config-kernel.in
package/kernel/linux/modules/wireless.mk
package/kernel/mac80211/Makefile
target/linux/generic/config-3.18
target/linux/generic/config-4.4
target/linux/generic/config-4.9