openwrtv4/package/kernel
Christian Lamparter 5f8f8a3661 base-files, mac80211, broadcom-wl: wifi detection and configuration
Currently, the wifi detection script is executed as part of
the (early) boot process. Pluggable wifi USB devices, which
are inserted at a later time are not automatically
detected and therefore they don't show up in LuCI.

A user has to deal with wifi detection manually, or restart
the router.

However, the current "sleep 1" window - which the boot
process waits for wifi devices to "settle down" - is too
short to detect wifi devices for some routers anyway.

For example, this can happen with USB WLAN devices on the
WNDR4700. This is because the usb controller needs to load
its firmware from UBI and initialize, before it can operate.

The issue can be seen on a BT HomeHub 5A as well as soon as
the caldata are on an ubi volume. This is because the ath9k
card has to be initialized by owl-loader first. Which has to
wait for the firmware extraction script to retrieve the pci
initialization values inside the caldata.

This patch moves the wifi configuration to hotplug scripts.
For mac80211, the wifi configuration will now automatically
run any time a "ieee80211" device is added. Likewise
broadcom-wl's script checks for new "net" devices which
have the "wl$NUMBER" moniker.

Issues with spawning multiple interface configuration - in
case the detection script is run concurrently - have been
resolved by using a named section for the initial
configuration. Concurrent configuration scripts will now
simply overwrite the same existing configuration.

A workaround which preserves the "sleep 1" window for just
the first boot has been added. This allows the existing
brcm47xx boot and mvebu uci-default scripts to correctly
setup the initial mac addresses and regulatory domain.

And finally, the patch renames the "wifi detect" into
"wifi config". As the script no longer produces any output
that has to be redirected or appended to the configuration
file.

Thanks to Martin Blumenstingl for helping with the implementation
and testing of the patch.

Acked-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-11-03 11:08:01 +01:00
..
acx-mac80211 source: Switch to xz for packages and tools where possible 2016-10-06 12:16:56 +02:00
ar7-atm package: flag further target specific packages as nonshared 2016-04-26 23:26:43 +02:00
ath10k-ct ath10k-ct: Add QCA9888/9886 support, fix compat issue. 2016-10-27 12:45:05 +02:00
avila-wdt kernel/avila-wdt: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
brcm2708-gpu-fw brcm2708-gpu-fw: update to latest version 2016-09-10 14:54:08 +02:00
broadcom-wl base-files, mac80211, broadcom-wl: wifi detection and configuration 2016-11-03 11:08:01 +01:00
button-hotplug kernel/button-hotplug: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
ep80579-drivers packages: clean up the package folder 2013-06-21 16:54:37 +00:00
gpio-button-hotplug kernel/gpio-button-hotplug: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
i2c-gpio-custom kernel/i2c-gpio-custom: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
kmod-sched-cake source: Switch to xz for packages and tools where possible 2016-10-06 12:16:56 +02:00
lantiq lantiq: added xrx200 as plattform for ltqvmmc 2016-10-31 16:51:33 +01:00
linux linux/modules: drop ledtrig-netfilter 2016-10-27 15:29:36 +02:00
mac80211 base-files, mac80211, broadcom-wl: wifi detection and configuration 2016-11-03 11:08:01 +01:00
mmc_over_gpio package: kernel: update dependencies for 4.4 2015-12-02 22:19:31 +00:00
mt76 mt76: update to the latest version 2016-08-25 13:00:10 +02:00
mwlwifi mwlwifi: upgrade to 10.3.2.0-20161013 2016-10-24 08:45:06 +02:00
om-watchdog package/om-watchdog: add OpenMesh MR1750v2 support 2016-05-23 12:19:25 +02:00
rotary-gpio-custom kernel/rotary-gpio-custom: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00
rtc-rv5c386a kernel/rtc-rv5c386a: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00
spi-gpio-custom kernel/spi-gpio-custom: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00
trelay kernel/trelay: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00
w1-gpio-custom kernel/w1-gpio-custom: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00
wrt55agv2-spidevs kernel/wrt55agv2-spidevs: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:53 +02:00