luci-app-dawn: Fix getChannelFromFrequency for 6GHz master openwrt-24.10
authorWeikai Kong <priv@pppig236.com>
Fri, 3 Jan 2025 05:31:35 +0000 (00:31 -0500)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 5 Jan 2025 14:06:54 +0000 (14:06 +0000)
commit15a8136ace399bc1f4d5cd683d9df671b232d4a5
tree1475289a769d1873204d1d6caa767c493d65b854
parent36c01dab8ce5858283aedfc3e2cd1d8184275efc
luci-app-dawn: Fix getChannelFromFrequency for 6GHz

For (5.9-)6GHz channels
( Center Frequency - 5950 ) / 5 = channel_number

e.g. ( 5955 - 5950 ) / 5 = Channel 1

Signed-off-by: Weikai Kong <priv@pppig236.com>
applications/luci-app-dawn/htdocs/luci-static/resources/dawn/dawn-common.js