Reading model info from flash. If no info present in flash,
then read it from /tmp/sysinfo/boardname.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
Add custom options to enable proxy arp and
mcast to ucast, this is used for Hotspot 2.0.
It is tested for ipv4.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
- Channel switch in case of high interference was failing
when multiple ssids are configured. Increasing CSA count helps
all the vifs to reserve context and get ready before CSA can be
finalized.
- Log when we detect high interference
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
Fix SM crash event during chan switch event due
to global chan switch struct not being freed properly.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
- Channel switch event is generated from hostapd and is sent to cloud
when AP switches channel due to high signal interference or radar detection.
The patch was missing in wifi6 hostapd and is added in this commit.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
This patch will resolve the channel switching issue when there is a single SSID on each radio
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
Fix Rate set bug by deviding the given value by 10, since
the value is given in multiples of 10 by the cloud.
Increase wait time to 20 seconds for the FW to settle
before applying the rate
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
ath10k-ct: Fix mcast/bcast/mgt/beacon rate overrides.
Somewhere around 5.7 kernel, mac80211 started setting
mcast/bcast, and ath10k started auto-calculating the
mgt ratecodes. This was overriding anything a user set through
debugfs.
Instead, have debugfs take precedence in case a user sets
a rate there.
Signed-off-by: Ben Greear <greearb@candelatech.com>
WPA3-Enterprise Only mode requires that the AP enables at least
AKM suite selector 00-0F-AC:5 (IEEE 802.1X with SHA-256) and not
enable AKM suite selector: 00-0F-AC:1 (IEEE 802.1X with SHA-1).
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
When configuring 16 VLAN, we see hostapd complaining
about no buffer space available while handling receive
events. Hence, increasing the socket buffer memory size
to 512KB.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
- add ovsdb schema for radsec and radius proxy config
- add radsec and radius proxy functionality
- add APC functionality for radsec and radius proxy
Send APC mode information through ubus
from APC application to WM.
Use the APC mode to direct the configuration
of radius proxy.
We get this information from APC:
mode:
DR (Designated Router)
BDR (Back up Designated Router)
OR (Other Router)
NC (Not connected/Not configured)
bdr_addr: IP of the BDR
dr_addr: IP of the DR
enabled: If Enabled/Disabled
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Adding code to fall-back and read eth0 address incase the
manufacturing data is not present for the id/mac_address field.
The same is also populated in the qr code field of AWLAN_Node.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
Do not renew the dhcp on bridge topology change
as this causes some of the dhcp servers to fail.
This occurs when many interfaces are added on to
a bridge and for every interface there is a dhcp
renew. The server considers receiving renew many
times in a quick succession as a DOS attack. So for
now we disable dhcp lease renew when a new interface
is added.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
This patch backports some fixes in netfilter
ratelimiting kernel module for wifi6 (linux v4.4.60).
These fixes are ported from until following commit id
6e323887565fe8a23c6c85faf9e395a24affd05c in
the mainline kernel.
Also, fix bugs in client ratelimiting.
Per Client Ratelimiting will be used henceforth
instead of Per ssid Ratelimiting.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Tested on WF188n (wifi6) and ECW5211 (wifi5) and EA8300 (wifi5) APs.
Checked for the scan results in EquipmentScanDetails event on the cloud.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
This commit partially reverts the earlier patch:
"workaround possibly false positive uses of memory after it is freed"
This fixed the crash while freeing a list item in
ubus_process_pending_msg due to a double free.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
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>
Remove NOR factory image for tplink-ex447/ex227 as now its
switched to nand based image.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
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>
This was causing sporadic issues where the q6 did not reboot into proper runstate
post coldboot calibration.
Signed-off-by: John Crispin <john@phrozen.org>
Generate factory nand images for tp-link ex447 and ex227.
This image is used to flash for migrating from stock qsdk
image to tip openwrt image using the nand flash.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
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>
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>
IP event protobuf expects ip address to be in the form of bytes.
Added the missing conversion.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
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>