Commit Graph

80 Commits

Author SHA1 Message Date
John Crispin
2bbf70cf79 opensync: arm64 compile fixes
Code was so far only compiled on 32bit

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 12:07:19 +02:00
Chaitanya Kiran Godavarthi
0196cbbf4a opensync: Add timestamp for videovoicereport
Add time stamp for videovoicedetect report
2020-09-16 10:01:37 +02:00
Arif Alam
ef2f270ff4 opensync: configure ieee80211k
Add the ability to enable/disable ieee80211k via custom options

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-09-16 10:00:47 +02:00
Yashvardhan
61ad8756b3 opensync: Added support for local dhcp fingerprint decoding
- Support to decode dhcp fingerprint using a locally stored fingerbank database

Fixes: WIFI-433

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-15 14:43:10 +02:00
Yashvardhan
9934f93701 opensync: Additional client DHCP attributes in ovsdb
- Added support to report client DHCP attributes such as
   subnetmask, gateway, dhcp server, primary and secondary dns

Fixes: WIFI-432

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-15 14:42:56 +02:00
Rick Sommerville
4596dd23d2 opensync: Noise floor inaccurate
On-channel survey reports only the active channel.
Off-channel survey reports on channels actually measured.
Channel utilization reported as a percentage.

Fixes: Wifi-638
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-09-15 14:41:45 +02:00
Chaitanya Kiran Godavarthi
0c3064e437 opensync: Add video/voice detect
- Add kernel module which detects voice/video by
  analysing the traffic.
- Add new report to the stats manager in opensync.
- Generates a report each time a voice call is
  detected, indicats callstart, callstop and callreport.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-09-15 14:41:07 +02:00
Yashvardhan
6ad1c0f30b opensync: Support of Client DHCP attributes in OVSDB
- Enabled DHCP sniffing support in libinet
 - Added support to populate DHCP_leased_IP table with sniffing results

Fixes: WIFI-432
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-09-11 17:27:43 +02:00
Ammad Rehmat
7aa405d4e1 opensync: Command_State now reflects command string as well
Fixes: WIFI-729
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-09-11 09:31:39 +02:00
Nagendrababu
5fbd9243d4 opennds: Fix for redirect page problem
this code changes resolve the problem of not redirecting to intended page after client
authentication

Fixes: WIFI-596
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-09-11 09:26:23 +02:00
Ammad Rehmat
efb5e4a9aa WIFI-442 : Support for synthetic radius client added
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-09-07 11:47:28 +02:00
Nagendrababu
88e8163410 package:openNDS
Implement a per-SSID embedded Captive Portal making use of OpenNDS
Authentication type:None
Fix for WIFI-596
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-09-07 11:38:33 +02:00
Ammad Rehmat
c56aebcc85 opensync: channel is reported in Wifi_VIF_State now
Fixes: WIFI-561
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-29 08:00:25 +02:00
Rick Sommerville
ae2d0ae077 opensync: Add SSID to client stats
Fixes: WIFI-527
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-29 07:44:08 +02:00
John Crispin
34897d13e1 Revert "opensync: populate Wifi_Route_State"
This reverts commit 42fc1965cd.

The commit was causing issues when updating NM2 state.

Fixes: WIFI-702
Signed-off-by: John Crispin <john@phrozen.org>
2020-08-29 07:40:19 +02:00
Chaitanya Kiran Godavarthi
0dbbfe8c58 opensync: Bug fix for ssid-client-rate-limit
Client ratelimit doesnt get updated when client
roams between ssids in the Access Point.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-08-23 20:01:27 -04:00
Ammad Rehmat
5d9ea412e5 opensync: DHCP synthetic client support added
- synthetic dhcp client checks if the dhcp server is responsive and
  reports back to cloud

Fixes: WIFI-441
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-18 07:59:47 +02:00
Ammad Rehmat
ff9357ae43 opensync: 802.11r settings bug
- FT over DS was set to 0 which wasnt taking effect due to missing
  declarations in the policy

Fixes: WIFI-560
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-18 07:58:15 +02:00
Rick Sommerville
d178036d1d opensync: Adjust wlan naming convention.
Replace dashes with underscores to simplify operation with UCI.

Fixes: WIFI-628
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-18 07:56:52 +02:00
John Crispin
42fc1965cd opensync: populate Wifi_Route_State
This populates the ipv4 routes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
fdf5bb6e96 opensync: add average STA RSSI tracking
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>
2020-08-09 16:28:55 +02:00
Yashvardhan
24a3c6e6e7 opensync: Support to apply and preserve redirector address
- Added helper script to apply redirector address
 - Added support to preserve the same
 - Changed the default fqdn

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-08-09 09:18:08 +02:00
John Crispin
6bbb48022e opensync: enable KRACK countermeasures
This patch will always turn off eapol key retry.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 17:30:55 +02:00
Arif Alam
16c5d2931d opensync: rrm support
- Add rrm manager
- Add rrm config params to schema

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-08-06 07:06:02 +02:00
John Crispin
38e2d08b0f opensync: re-enable DM manager wdt
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>
2020-08-03 18:56:41 +02:00
Rick Sommerville
0730ba955f Stabilize the WIFI_VIF_State by correcting state reporting and setting errors.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-08-03 18:30:32 +02:00
John Crispin
0a31c9f692 opensync: convert the last board to the unified package
There is no a single opensync package that reads the board data from uci.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:11:56 +02:00
Ammad Rehmat
9883d6b9dc opensync : synthetic client - bug fix
-timestamp corrected for dns client

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-02 11:54:41 +02:00
John Crispin
ed379f94f2 opensync: more network manager fixes
This patch will get folded into the main patch when we push to trunk.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 11:53:07 +02:00
Ammad Rehmat
0eed477b9c opensync: synthetic client added
-plumbing to initialize network probe in SM

-DNS client to check access to dns server added

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:19:34 +02:00
Ammad Rehmat
8454cdb271 opensync: client events supported
-assoc/disassoc type client events now supported

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:17:08 +02:00
Ammad Rehmat
b3d692100c opensync: protobuf definitions updated
-protobuf definitions now support client events and synthetic client

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-08-01 10:17:05 +02:00
John Crispin
09a67e40f1 opensync: move vif deletion into its own context
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>
2020-07-31 14:12:18 +02:00
John Crispin
ef59c4c6e4 opensync: add netifd manager
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-31 14:12:11 +02:00
John Crispin
d9bf09d3c2 opensync: add wifi tcpdump support
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>
2020-07-30 15:55:30 +02:00
John Crispin
76e52a2fb7 luci-mod-simple: add tip bringup webui
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-30 10:54:49 +02:00
Rick Sommerville
6a6cb55ff0 opensync: Support Multi-SSID per radio. Support radioX -> wlanX-Y naming convention.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-07-30 07:55:38 +02:00
John Crispin
75b5e5a88e opensync: set default ssid
Use Maverick-<eth0 mac> as the ssid.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 19:04:46 +02:00
John Crispin
dab51c9bf0 opensync: more unified target updates
convert ap2220 and ea8300 to use the unified package.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 16:35:57 +02:00
John Crispin
9767157b8b opensync: only set dfs options for 5G and 5GU
Previously anything !wifi0 was assumed to be DFS capable.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
322d5130e7 opensync: add ec430 to tip.sh
On the ec420, the wifi devices names were not updated yet.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
da2a0dcd31 opensync: set vid to 1 inside the state table
we will get a table constraint violation otherwise.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
c0e19653fc opensync: preserve certificates during sysupgrade
Make sure that sysupgrade carries the certificates over to the new firmware.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
Yashvardhan
1f5b46b51e Opensync: fix sysupgrade
The current script was using the wrong upgrade file and incorrectly deleted
$TMPDIR after it was done.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2020-07-29 14:17:39 +02:00
Arif Alam
61bb9aee32 opensync: add noise floor reporting
- Add noise floor reporting to survey stats
- Fix survey stats

Signed-off-by: Arif Alam <arif.alam@connectus.ai>
2020-07-29 14:17:39 +02:00
John Crispin
a98b0eac77 ecw5211: make the board use the unified opensync target
Drop the vendor specific target. Also fix ct-fwcfg for this board.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
def5a919f0 opensync: disable hapd notifications
These were only added to test the ubus API. We dont really need them.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
4f67ca0e4b opensync: fix license headers
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
1b168a811e opensync: add kernel crash detection
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>
2020-07-29 14:17:39 +02:00
John Crispin
50f26d1b20 opensync: move default cloud keys in wlan-ap-keys
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00