Commit Graph

236 Commits

Author SHA1 Message Date
Yashvardhan
97632b83d6 wifi-1514 Fix IpEvent IP address reporting
Added missing reporting of IP Address in protobuf

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-03-25 08:56:01 -04:00
Yashvardhan
9d7beae903 wifi-1737: Restrict DHCP Sniffing to a max of 4 vlans
Partial fix for wifi-1737:
Use of current DHCP sniffing library from opensync increases
memory footprint of nm with increased number of vlans.
This patch restricts DHCP sniffing on a maximum of 4 vlans.
This is a workaround and actual fix would be to use a better
packet filter such as eBPF

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-03-24 14:14:54 -04:00
Nagendrababu
ea470687cc WIFI-1716-Noisy-Logs
This Patch will clean up the moisy logs in the Opensync target layer software
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-03-23 17:21:52 -04:00
Arif Alam
debb9aad7f opensync: add radius nas ip config
Add functionality to configure nas ip.

Fixes: WIFI-1715

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-03-22 12:08:08 -04:00
Nagendrababu
58793d4349 uci file unload for captive portal
This patch will improve the code for captive portal feature

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-03-22 11:55:48 -04:00
Yashvardhan
c7157c7e9d wifi-1857: Remove redundant nl request to fetch the current channel
A netlink request to fetch the current channel was leading to a race condition.
Since the current channel is already reported by nl events, the redundant code
is removed.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-03-19 12:04:16 -04:00
Chaitanya Godavarthi
068a6b787a opensync: Fix redirector update
Fix redirector update issue, redirector occassionally
doesnt update in the system file.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-03-18 19:38:04 -04:00
Arif Alam
a886575bce WIFI-1808: Fix interworking related parameter config
Fixes various config params for passpoint.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-03-18 17:06:00 -04:00
Nagendrababu
56f51c8055 WIFI-1629 Captive Portal Service Portal Halt
This patch will add the support to enable captive portal on multiple ssid's with same
captive portal profile

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-03-16 09:26:17 -04:00
Rick Sommerville
34b495c94c WIFI-1549 Fix Wifi6 SM crash
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-03-09 11:44:40 -05:00
Ammad Rehmat
623afeafd3 Wifi-1666 : Fix for reflecting the actual channel value in wifi radio state
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-03-08 18:42:09 -05:00
Yashvardhan
799d5bfe9b wifi-1514: Fix SM crash
Fix for Memory corruption observed in SM.
This was also the cause for missing SSID and band reporting
inside client events.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-03-04 13:03:47 -05:00
Chaitanya Godavarthi
5a57c8e2b1 opensync: Add Local power constraint radio option
Add local_power_constraint radio params

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-26 09:31:27 -05:00
Yashvardhan
685c25424a Wifi-1470 Fix missing ip string to bytes conversion
IP event protobuf expects ip address to be in the form of bytes.
Added the missing conversion.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-02-26 09:21:02 -05:00
Yashvardhan
c6ebc8bec7 Wifi-1572 Repair VIF_State to show the correct number of associated clients
This patch primarily reverts fdf5bb6e96
(opensync: add average STA RSSI tracking). Netlink request to track STA RSSI
every 10 secs was leading to a race condition because the receive callback
for the request was also used to receive rest of the nl80211 events.
This was resulting in lost messages and hence VIF State was not getting populated correctly.
Now, the code to poll for STA RSSI in opensync is redundant and is not used because STA RSSI is already
tracked in hostapd. Removing it solves the redundancy and the race.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-02-25 09:07:41 -05:00
Ammad Rehmat
79a65c2985 Wifi-1623 : Any event coming from hostapd with 5G frequency will be treated as coming from 5G radio not 5gU/5gL
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-24 19:17:33 -05:00
Yashvardhan
00d39a0835 Wifi-1572 Increase nl socket buffer size
Partial fix for Wifi-1572

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-02-24 15:09:25 -05:00
Rick Sommerville
d2873b935e Wifi-1637 Configure max associate clients per radio
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-02-23 20:54:32 -05:00
Nagendrababu
9215aac0f9 WIFI-1531-captive-portal-parameters-update-error
This patch will fix latest parameters update error from captive portal
profile

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-23 19:57:52 -05:00
Nagendrababu
63e48453c8 WIFI-1543-EX447 MIMO configuration
This patch will add support to detect the offset of the bitmask before
configuring MIMO mode on AP

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-23 15:43:23 -05:00
Nagendrababu
61fab91974 WIFI-1531-Captive-Portal-User/Pass-Defect
This patch will add support for captive portal on all SSIDs under each radio

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-22 13:58:23 -05:00
Rick Sommerville
9be815ef7a Wifi 1355 Repair MIMO mode auto
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-02-21 08:59:02 -05:00
Chaitanya Godavarthi
710cebf3e1 opensync: Dynamic VLAN add hotplug
Add hotplug script which adds the Dynamic
VLAN for the desired interface.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-20 15:46:41 -05:00
Chaitanya Godavarthi
ed7194e1b4 Fix for wifi6 Crash in nft in ssidratelimit hotplug
Fixes crash in kernel due to nft accessing
kernel in hotplug code early on.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-18 20:40:59 -05:00
Yashvardhan
f56edd7673 opensync: Update ovsdb schema to support 11ax
Ovsdb schema for VIF_Config/State is updated to support 11ax as min_hw_mode

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-02-17 14:27:02 -05:00
Chris Busch
b3f8465123
Merge pull request #179 from Telecominfraproject/staging-ssidratelimit-fix
opensync: fix ssid-ratelimiting
Ack'd-by: Chris Busch chrisbusch@fb.com
2021-02-17 13:10:50 -05:00
Chaitanya Godavarthi
d92c28e5cb opensync: fix ssid-ratelimiting
Fix ssid ratelimiting bugs

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-17 11:02:49 -05:00
Chaitanya Godavarthi
0f8a885c97 opensync: Set ieee80211w as 2 in wpa3 mode
set ieee80211w as 2 which enables the requirement
for PMF to be mandatory for wpa3 mode.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-16 22:31:29 -05:00
Arif Alam
3741e3c999 opensync: enable dhcp sniffing only on bridge interface
Reduce nm running memory footprint by enabling dhcp sniffing only on bridge interface.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-02-11 23:09:24 -05:00
Ammad Rehmat
e8bb46609d Wifi-1502 : Hostapd has the list of channels it can switch to in case of DFS event
- Hostapd will have a list of channels which it is allowed to switch to after receiving DFS event.
- cpp check switched from 1.82 to 1.90-4 so some code changes in redirclient.c and captive.c for passing static analysis.

Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-11 22:12:13 -05:00
Chaitanya Godavarthi
efc52018e5 opensync: Add support for dynamic vlan in custom_options
Add support for dynamic vlan in custom_options:
dynamic_vlan (values 0 1 and 2)
0 - disabled
1 - enabled
2 - enabled and reject if Radius server doesnt have Dynamic VLAN

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-09 13:19:40 -05:00
Nagendrababu
d6e1a02432 WIFI-1458-Tx-Power-Range
This patch will resolve the radio config fail problem, when tx
power configured more than allowed operational range of AP.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-08 17:27:03 -05:00
Rick Sommerville
122965a3ad Wifi-1472 Wifi6 software upgrade fix with TIP cloud
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-02-07 22:20:18 -05:00
Chaitanya Godavarthi
b6b0ddfcf6 ssidratelimit: Convert bits/sec to bytes/sec
Convert kbits/sec bandwidth information given
to kbytes/sec.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-02-04 22:06:07 -05:00
Ammad Rehmat
fd35b98e61 Wifi-888 : Channel switch events due to high interference and DFS
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-04 22:01:17 -05:00
Ammad Rehmat
f6739a6c0f WIFI-1412 Command manager clears entries upon completion/failure from state and config table
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-03 21:19:19 -05:00
Ammad Rehmat
af486ae7f7 WIFI-1435 : Stop session command implemented in command manager
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-02-03 21:17:39 -05:00
Yashvardhan
06c9dd4d2a opensync: Add GRE support
- Added support to create GRE tunnel interface and corresponding
   vlans

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-02-02 22:24:00 -05:00
Nagendrababu
fb04fbbd00 WIFI-1355 Configure MIMO mode
This patch will add fix for MIMO mode configuration issue

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-02 22:14:48 -05:00
Nagendrababu
f65c9cd537 WIFI-961: Fix for Command Manager Crash
This patch will reslove command manager crash issue and also add support for deleting the lingering entries in
the command state table

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-02-01 15:36:45 -05:00
Rick Sommerville
dca36b0128 Wifi-1393 Software upgrade SHA check repair.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-01-29 10:05:45 -05:00
Rick Sommerville
253ff7b918 WIFI-1308 Validate EAP parameters before UCI update
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-01-26 13:11:25 -05:00
Rick Sommerville
6e451ce367 WIFI-1318 Reduce memory required for sysupgrade
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-01-21 16:59:40 -05:00
Ammad Rehmat
f7345e5e18 NETEXP-898: Increase the waiting time before terminating the websocket
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2021-01-19 09:08:25 -05:00
John Crispin
2f71c9c367 wlan-ap-config: fix hostname detection on qcom/ax units
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
3392cec348 wlan-ap-config: properly detect the cig wf-194c serial
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
John Crispin
db9507bcc1 wlan-ap-config: move oom reboot trigger to the right location
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-18 08:03:29 +01:00
Yashvardhan
861c2168ab opensync: Fix events timestamp
- Added milliseconds timestamp precision
- Data type changed to uint64 to hold millisecond timestamp

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-01-14 20:31:19 -05:00
John Crispin
73b62d7126 luci-mod-simple: add tab to allow LAN configuration in the webui
Signed-off-by: John Crispin <john@phrozen.org>
2021-01-13 14:26:48 +01:00
Arif Alam
7bdc20f093 NETEXP-928: fix associated clients keeps switching state
Fixes an issue where client was getting deleted and added to ovsdb causing state change.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-01-12 12:23:03 -05:00