545 Commits

Author SHA1 Message Date
Arif Alam
1ba2fcbe0a WIFI-3487: Update BDF for WF188n
Fixes connectivity issue due to poor rx-sensitivity.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2022-01-21 14:40:29 -05:00
Chaitanya Godavarthi
64566994a7 wifi-2082:Add cig wf194c4 AP
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2022-01-06 11:46:36 -05:00
Arif Alam
f72fc12cef WIFI-6180: Fix cmdm crash
Fix cmdm crash when LED definition is not present in board.json.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-12-16 20:39:00 -05:00
Yashvardhan
9c573dcf82 wifi-6062: Fix for CAC timer running twice
In case of full config push, do not send CSA as hostapd
is anyway going to reload with reload_config script detecting
the UCI change. This would help avoid double channel switch.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-12-13 13:39:12 -05:00
ravi vaishnav
db61769849 Wifi-6129. Fix for client connectivity with EAP102 VLAN
Bringing in the missing changes from a patch which was earlier
committed on Pennding and which got over-written with CS merge.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-12-13 13:38:04 -05:00
Arif Alam
c63e2c1a7c WIFI-6060: Add missing passpoint config params
Some passpoint config params were missed during the CS1 update task.
Readding those config params.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-12-08 11:41:25 -05:00
ravi vaishnav
2c5d1188df Wifi-5995. Fix for CSA failure and invalid chan/BW config
A channel change request from RRM while a reload_config is in
progress cause the new CSA attempt fail. AP updated the UCI
no matter if the CSA attempt failed or passed. This leads to
the AP not re-trying the CSA again.

Furthermore another issue is seen when an invalid channel/BW
combination is configured. Solution is to update the Bandwidth
as per channel change request is made via CSA.

Example: BW already configured for 40MHz, and then the channel
change attempt is made to 165. The channel change code takes care
of downgrading the BW to 20MHz while sending the request down to
the driver, but did not update the same in the UCI config.
UCI config reads as 165/40. A reloadconfig thereafter causes this
invalid combination 165/40 attempt which leads to radio stay disabled.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-12-02 17:47:42 -05:00
Siddharth Pandey
cb8659f438 ipq4019: Single PHY VLAN Fix.
Signed-off-by: Siddharth Pandey <siddharth.pandey@vvdntech.com>
2021-12-01 17:36:38 -05:00
Arif Alam
66629b969a Revert "wifi-5624: Fix eth port VLAN Access in wifi6"
This reverts commit e8483f021b.
2021-11-29 17:27:27 -05:00
Arif Alam
211b196e18 WIFI-5982: update ath11k
Update ath11k to CS1.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-11-29 17:16:50 -05:00
ravi vaishnav
06ca778908 Wifi-5798. Fix for SM crash during VoIP calls
nf_uccdetect module tries and analyze the traffic to detect
VoIP calls, and generate events up to the user space. This module
assigns value -1 as RadioID for packets from Ethernet interface
which eventually is used as an array index, eventually running
into an Assert and crash. Fix is to skip these packets from
Ethernet interface for the analysis.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-11-22 09:51:20 -05:00
Chaitanya Godavarthi
e8483f021b wifi-5624: Fix eth port VLAN Access in wifi6
Fix ethernet port vlan access mode in wifi6
Create a vlan bridge and attach wan vlan interface
and eth port in the vlan bridge.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-11-11 17:17:32 -05:00
Nagendrababu
da9e6919af WIFI-4924-Report-Channel-Bandwidth
Current survey sample report doesn't include channel bandwidth parameter, hence cloud won't be having channel bandwidth information.
This patch will add support to add channel bandwidth attribute to survey sample report and will report available channel
bandwidth on respective channel to the cloud.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-11-11 17:16:29 -05:00
Nagendrababu
319e7e93bd WIFI-5291-APC-config-reload
This patch will fix the config reload issue when DR and BDR addresses
change

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-11-11 11:49:53 -05:00
Rick Sommerville
1dd6d7ccb5 WIFI-5040 OpenSync CM repair open file leak
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2021-10-26 15:35:46 -04:00
Chaitanya Godavarthi
e6ed8ff483 wifi-5041: Disable Network probe stats - Disable Synthetic client
Disable Network probe stats and hence the Synthetic client

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-22 19:07:14 -04:00
Chaitanya Godavarthi
da688d3dd6 wifi-4952: Fix eth port vlan Inet_State missing in eap101
Fix Wifi_Inet_State missing issue in eap101 when both the
ethernet ports are configured as vlan trunk/access mode.
Also, removed the pvid from allowed vlans list in trunk mode.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-22 18:01:30 -04:00
John Crispin
82d80bf985 wifi-3256: ath11k: fix regdb upload
Make ath11k honour latest regdb.

Fixes: WIFI-3256
Signed-off-by: John Crispin <john@phrozen.org>
2021-10-22 16:33:30 -04:00
ravi vaishnav
42b027b16f Wifi-4930. Fix for DFS radar event not seen on UI
When a DFS radar is generated, Hostapd code takes a different path
to switch channels if CAC is still in progress. And this other path
did not generate the DFS radar detected event. Adding the same event.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-10-22 15:50:36 -04:00
Chaitanya Godavarthi
39762e0049 wifi-4936: Fix NM crash in single eth ports APs
This fixes the Null pointer crash in single eth port
APs as a consequence to the eth ports setting in the
Wifi_Inet_Config.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-20 10:35:49 -04:00
Chaitanya Godavarthi
39ccb410ee WIFI-4739: Add provision to set an ethernet lan port as vlan trunk
Add provision to set an ethernet lan port as a vlan
trunk port which will allow the specified vlan tagged
packets to pass through it. Also, add pvid to the trunk
port for ingress tagging. Config is added in Wifi_Inet_Config
table 'vlan_trunk'.
command:
ADD: /usr/opensync/bin/ovsh i Wifi_Inet_Config NAT:=true enable
d:=true if_name:=eth0_trunk if_type:=vlan_trunk ip_assign_scheme:=none network:=
true parent_ifname:=eth0 dhcp_sniff:=false eth_ports:="eth0" vlan_trunk:='["map"
,[["allowed_vlans","100 200 300"],["pvid","10"]]]'

DEL: /usr/opensync/bin/ovsh d Wifi_Inet_Config -w if_name==eth0_trunk

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-18 13:00:41 -04:00
ravi vaishnav
7fe0022505 Wifi-4638. update allowed channels and band in radioState
Updating the Opensync radioState allowed channels list
and the band column after a country code change.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-10-12 14:00:21 -04:00
ravi vaishnav
521f849950 Wifi-4469. Set registered flag before config QDSS
The QDSS config takes long time to complete and puts the kernel
thread to freeze for a while. This lets the kernel run other
threads which leads to country code command execution without
the ATH11K_FLAG_REGISTERED flag set, which inturn leads to
failure of Country code configuration.

Updating the ATH11K_FLAG_REGISTERED flag before calling QDSS
config seems to help driver configure the Country code successfully.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-10-08 11:26:20 -04:00
Chaitanya Godavarthi
3bbfb52649 wifi-4651: Fix NM crash in single ethernet port APs
Fix by adding LAN port check in case of single ethernet
port APs where LAN port is not available.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-05 13:27:54 -04:00
Chaitanya Godavarthi
98104a2e8d WIFI-4201: Add provision to set the AP LAN Ports to Bridge/NAT
1. Add provision to tag with vlan when set to Bridge mode (br-wan).
2. Add provision to set the local IP address in NAT (br-lan)
3. Display the Ethernet port status(up/down) and negotiated rate.
4. Add provision to set lan eth port to bridge/nat.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-02 09:09:03 -04:00
Chaitanya Godavarthi
16149f6ba5 wifi-4421: Fix client disconn when in DFS channel
On detecting Radar on the DFS channel the radio switches
the channel to backup channel. However, the opensync tries
to set it back to the configured channel every 30 seconds, which
which would fail since the channel is in a radar NOP period, this
leads to dropping of clients.
Fix by adding a check for the configured channel's availability
before trying to change to that channel.
Also, check if the radio Channel config has changed before
attempting to change the channel.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-10-02 08:57:55 -04:00
Nagendrababu
4cd7cab7d0 WIFI-4473-Client-Blocked-List
This patch will fix the client blocked list update issue

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-10-02 08:57:01 -04:00
Nagendrababu
eaa37d4101 WIFI-4474-EC420-LED-Colour-Config
This patch will fix EC420 AP LED color change issue

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-10-02 08:56:39 -04:00
Arif Alam
8a063e1333 WIFI-4322: add capability to turn on/off LEDs
Add capability to turn on/off LEDs.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-09-28 11:00:43 -04:00
Nagendrababu
f1c6d4bd6e WIFI-4229-display-ssid-name-on-CP-splash-page
This patch will add support to display ssid name on the captive portal
splash page

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-09-23 09:19:01 -04:00
Owen Anderson
18ada0ceb8 WIFI-2410: Filter out low signal SSID from SM neighbour report
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-09-23 09:07:26 -04:00
Arif Alam
8bcea2834e WIFI-4209: Fix Maverick SSID
Apply maverick ssid config after timeout.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-09-22 09:20:07 -04:00
Chaitanya Godavarthi
6128ac9ecc Add reset button for wf194c and wf188n
Add reset button for wf194c and wf188n APs

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-09-19 21:55:18 -04:00
Nagendrababu
1e536a5d1a WIFI-3905-AP does not forward dhcp broadcast offer
This patch will add fix to allow DHCP broadcast packets,
so that AP can forward DHCP broadcast offer to clients

Cause:
In the bridge source code, there is a mechanism to drop all the broadcast packets if the proxy arp is enabled, because of this dhcp clients which set broadcast flag to 1 while connecting toAP's interfaces are not able get an ip address hence they are not connecting

Solution:
Added the code to the bridge source code so that before dropping broadcast packets it first checks, whether it is dhcp broadcast packet or not. So that it won't drop dhcp braodcast packets.Hence DORA process will succeed and clients which sets broadcast flag to 1 gets an ip address even though the proxy arp is enabled.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-09-17 08:22:46 -04:00
Nagendrababu
b838bc9005 WIFI-3905-AP does not forward dhcp broadcast offer
This patch will add fix to allow DHCP broadcast packets, so that AP can forward DHCP broadcast offer to clients

cause:
In the bridge source code, there is a mechanism to drop all the broadcast packets if the proxy arp is enabled, because of this dhcp clients which set broadcast flag to 1 while connecting toAP's interfaces are not able get the an ip address hence they are not connecting.

solution:
Added the code to the bridge source code, so that before dropping broadcast packets it first check whether it is dhcp braodcast packet or not. So that it won't drop dhcp broadcast packets. Hence DORA process will succeed and clients which set broadcast flag to 1 gets an ip address even though the proxy arp is enabled.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2021-09-17 08:21:14 -04:00
Chaitanya Godavarthi
9b383148f8 wifi-3888: Fix for Client Local access enable/disable
Dont enable hairpin mode from hostapd (x_snoop) as it overwrites
the set value by netifd to enable/disable client isolation.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-09-13 09:33:58 -04:00
Siddharth Pandey
5ad5aff6b7 ipq40xx: HFCL ION4 Target addition
Signed-off-by: Siddharth Pandey <siddharth.pandey@vvdntech.com>
2021-09-09 09:34:59 -04:00
ravi vaishnav
0397bb67c8 Wifi-3522. Correcting an earlier commit for scan failures.
Correcting an earlier commit 4beda3ab66
to consider all the cases where the avl entry needs be deleted when
a scan is either completed or aborted for any reason.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-09-07 09:03:59 -04:00
Yashvardhan
efdacd350b wifi-3613: Fix channel fallback after switch
Radio was falling back to original channel after switch because
of a mismatch in radio state and radio config.

Updated the radio config with “switch-to” channel to match with the radio state.

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-08-31 09:08:12 -04:00
Owen Anderson
e3cb261515 WIFI-2844: Added patch from openwrt commits 2021-08-31 09:07:16 -04:00
ravi vaishnav
6edb33b992 Wifi-3490. Opensync workaround for 0 NF reported.
Sometimes, the driver reports 0 Noise Floor value which is
not a valid data point. Adding a workaround in Opensync layer
to consider previous recorded NF value when 0 NF is reported.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-08-19 07:01:25 -04:00
Nagendrababu
f4e483f7b4 WIFI-3244-WF610D-Config-Reset-Over-Sysupgrade
This patch will fix configuration restore problem over sysupgrade
on WF610D
Even though there is a configuration data in the /dev/mtdblock12, it is getting erased while reading it beacuse of JFFS2 empty bitmask code. So I added a condition to check whether the datatype available is JFFS2 or not, and making sure it is not empty before returning the JFFS2 flag to restore the configuration.

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
v1.2.0 v1.2.0-rc2
2021-08-16 23:46:52 -04:00
ravi vaishnav
4beda3ab66 Wifi-3463. Fix for scan timeout with scan on same interface
Successive scan requests on same interface cause scan timeout.
Scan requests are enqueued at the Opensync layer and is designed
to handle the requests sequentially. If there are successive
scan requests for the same interface, then we end up deleteling
an on-going scan context. This is due to the interface name being
used as key for the AVL entries, and we were trying to reuse the
AVL entry if one already exist.
Solution is to always allocate a new entry without any reuse.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-08-13 12:19:00 -04:00
Chaitanya Godavarthi
3531b884c1 wifi-3258: Fix bridge client traffic on same wifi interface
Allow bridging broadcast and multicast traffic within same
bridge port if hairpinmode is enabled for that port.
This fixes the ARP packet between clients on same wifi interface
being dropped.

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
v1.2.0-rc1
2021-08-09 18:39:54 -04:00
Chaitanya Godavarthi
5ef0556406 wifi-3051: Set proper mode & freq in RRM NF chan switch
For RRM noise floor driven channel change:
1. Set HT VHT HE based on the hw_mode
2. Set secondary frequency (center_freq1) based on bandwidth

Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
2021-08-06 09:12:45 -04:00
ravi vaishnav
bdbf536c85 Wifi-3246. Add chan_info data to existing survey info data
The data from the chan_info events were overwriting the data
to the existing survey info counters. The data in the chan_info
events were Read-On-Clear where as the Survey info was maintained
as incremental stats and the application in the User space
performs the calculations based on incremental survey info stats.
As an example, the survey->time was always stored as 150 due to
chan_info event's Clear-On-Read nature. And this lead to the
difference calcuation as 0 at the User space application.

Solution is to add the incoming chan_info data to the existing
survey info stats, instead of replacing the existing data with new.

Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
2021-08-05 18:02:32 -04:00
Owen Anderson
80bfd39857 WIFI-3306: Updated the LLDP description with firmware version info and br-wan IP
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-08-05 12:38:44 -04:00
Owen Anderson
d3f8a54de5 WIFI-2059: Removed if statement that blocked some ip updates
Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
2021-08-04 11:38:18 -04:00
Yashvardhan
8bec57d411 wifi-3331: Fix opensync Firmware version date format
- Opensync fw version date was getting trimmed.
   This patch fixes the same

Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
2021-08-03 23:50:02 -04:00
Arif Alam
36b10b5048 WIFI-3023: fix mac assign on ath11k
Port over mac assign fix from v2.

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
2021-07-31 08:19:42 -04:00