luci-mod-admin-full: use incremental background scanning for wireless join
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Jul 2018 12:43:27 +0000 (14:43 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 18 Jul 2018 12:43:27 +0000 (14:43 +0200)
commit9b4efaefa1b4c94a7d976c8d65169bf056032e09
treeb76fde8eeb5fe85df6e0dff1306134ea0ae17043
parent68dae07225c44ca43aec7d4826ebc954d0c9ef10
luci-mod-admin-full: use incremental background scanning for wireless join

The previous approach of synchroneously scanning while building the result
page was suboptimal since it frequently led to connection resets when
accessing LuCI via wireless.

It also exhibited problems when accessed via SSL on recent Firefox versions
where the page were only loaded partially.

Rework the wireless scanning to gather scan results in a background process
and put them into the ubus session data area where they can be readily
accessed without causing network interruptions.

Subsequently rebuild the wireless join page to use XHR polling to
incrementally fetch updated scan results.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_join.htm