diff options
author | Polynomialdivision <vincent@systemli.org> | 2020-03-28 12:17:57 +0100 |
---|---|---|
committer | Polynomialdivision <vincent@systemli.org> | 2020-04-02 11:12:01 +0200 |
commit | 9707acf72fd789b917c97f93ac0bb2fede9a86f4 (patch) | |
tree | a6e022f66b6fb19be3a8d1e2b8744fe0e4a6fbea /applications/luci-app-dawn/luasrc/tools/ieee80211.lua | |
parent | 0adf93de3b78fae8a19843906852abad6c7855ae (diff) |
luci-app-dawn: add luci app for dawn
Dawn is a decentralized WiFi controller.
Just install dawn and the APs will find each other via umdns. They
periodically exchange information about connected clients, wireless
statistics and other needed information. With that, the daemon load
balances clients between different APs through association control.
Luci-app-dawn is the graphical user interface.
It allows to:
- Configure dawn
- View Wireless Network Overview
- View Hearing Map
The hearing map is the list of all probe requests seen from a client
from all APs that are running the controller.
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'applications/luci-app-dawn/luasrc/tools/ieee80211.lua')
-rw-r--r-- | applications/luci-app-dawn/luasrc/tools/ieee80211.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/applications/luci-app-dawn/luasrc/tools/ieee80211.lua b/applications/luci-app-dawn/luasrc/tools/ieee80211.lua new file mode 100644 index 0000000000..b35991ed7d --- /dev/null +++ b/applications/luci-app-dawn/luasrc/tools/ieee80211.lua @@ -0,0 +1,18 @@ +module("luci.tools.ieee80211", package.seeall) + +function frequency_to_channel(freq) + if (freq == 2484) then + return 14; + elseif (freq < 2484) then + return (freq - 2407) / 5; + elseif (freq >= 4910 and freq <= 4980) then + return (freq - 4000) / 5; + elseif (freq <= 45000) then + return (freq - 5000) / 5; + elseif (freq >= 58320 and freq <= 64800) then + return (freq - 56160) / 2160; + else + return 0; + end +end + |