luci-app-dawn: fix crash issue when viewing hearing map
authorBCoverstone <brian@mainsequence.net>
Tue, 10 Jan 2023 03:28:28 +0000 (22:28 -0500)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2023 13:26:59 +0000 (14:26 +0100)
commit2221110c17c2799948209463590618190cce8808
treeaaaf99803b9d5c36bf3b9c92e461cd045e2e81f2
parente11ff51b17baa6c6ed7991de006d563b4e387f9c
luci-app-dawn: fix crash issue when viewing hearing map

When viewing the hearing map, sometimes a crash will happen when one of the
routers suddenly cannot view a client. This PR simply checks that the radio
frequency in data2 is not 0, and skips the entry if it is a 0.

Submitted-by: Brian Coverstone <brian@mainsequence.net>
[fix commit subject, add commit description]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_hearing_map.lua