Track the average RSSI of associated stations. This information can be
used to deauth stations if their rssi gets too low.
Signed-off-by: John Crispin <john@phrozen.org>
- Added helper script to apply redirector address
- Added support to preserve the same
- Changed the default fqdn
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
the last nm2 patch incorrectly contained a chunk that disabled the process
watchdog for nm and wm. revert this change.
this patch shall be folded into the other nm2 patches when we move to trunk.
Signed-off-by: John Crispin <john@phrozen.org>
Deleteing entries from ucis internal state while looping of it was causing
issues related as the ordering of the list is not deterministic.
Signed-off-by: John Crispin <john@phrozen.org>
This patch will bring up a monitor interface on a named phy and start a scan.
Once completed, the resulting pcap will be uploaded to a http server.
Signed-off-by: John Crispin <john@phrozen.org>
The current script was using the wrong upgrade file and incorrectly deleted
$TMPDIR after it was done.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
This feature makes use of the crashlog driver in the kernel. If we experience
an oops, the kernel will store the stack trace inside /sys/kernel/debug/crashlog.
OpenSync will then add an entry to the Alarms table. The could can then retrieve
the crashlog via the Command_config table.
A crash can be simulated with
echo c > /proc/sysrq-trigger
Signed-off-by: John Crispin <john@phrozen.org>
Once the AP connected to the cloud for the first time we wait 5 minutes.
Once that period is over we stop and disable the webserver. It is only
intended for initial WAN bringup during deployment.
Signed-off-by: John Crispin <john@phrozen.org>
- Added support to upgrade firmware from a URL to a FW tar/tar.gz package
- Checksum validation using sha256sum
- Some error handling
- Added support to share the firmware tar name to the gateway
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
This allows us to trigger remote commands, such as tcpdump.
Also allow configuring NTP and remote syslog.
Signed-off-by: John Crispin <john@phrozen.org>
When adding a new baord we had to edit files all over the tree. After this patch
they are all located in the same folder.
Signed-off-by: John Crispin <john@phrozen.org>
The current code was reporting invalid state back to the cloud incase
rate-limit was not actually enabled.
Signed-off-by: John Crispin <john@phrozen.org>
This adds 2 new tables
* CommandConfig
* CommandState
This allows us to remotely trigger, tcpdump, remote syslog, ...
Signed-off-by: John Crispin <john@phrozen.org>
The @ syntax reference the L3 device. This means a child interface will not
be brought up if the underlying parent is still pending.
This can be seen if we have br-wan and br-wan.100. Both have proto dhcp.
The vlan interface wont come up until the wan interface has an IP.
Signed-off-by: John Crispin <john@phrozen.org>
We can now trigger remote reboot and factory reset using the firmware
upgrade code. Simply sending the URL "reboot" or "factory" is enough.
Signed-off-by: John Crispin <john@phrozen.org>