luci-mod-network: improve wifi scan status reporting
authorJo-Philipp Wich <jo@mein.io>
Fri, 19 Jul 2019 15:59:05 +0000 (17:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 19 Jul 2019 15:59:05 +0000 (17:59 +0200)
commit8dd2df29c47ab0ce594246ebc477bddb8043bcb7
tree1d4eda134f5d7b34021ba27c4e2cc236d28937ae
parent5510bdae399c131f8911f4d4b39ec6832252c161
luci-mod-network: improve wifi scan status reporting

Attempt to properly report the scan status by treating 404 replies as
not yet completed scans and empty array replies as successful scans
that did not yield any results.

Fixes: #2874
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wifi_join.js
modules/luci-mod-network/luasrc/controller/admin/network.lua