This patch will add the support to read the cpu temperature of ath11k
chipset boards and update to the UI
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
The earlier changes for detaching the nl sockets for SM activity
also included a small change to relocate the event subscription.
This relocation of code is causing the crash due to possible
NULL pointer dereference.
Reverting the event subscription relocation code to avoid the
continuous SM crash.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
Could not root-cause the issue for SM crash, but there were enough
indications of some kind of memory corruption. Different core captures
show the code crashing at different places. An experiment to unblock
the SM socket on the receive end helped avoid the corruption and
subsequently the crashes.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
-Reduced the BDR->DR swap time.
-Monitor the cloud connection and start/stop APC
based on the connection stability.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Proxy service is started only if
- Radius_Proxy_Config ovsdb table is present
- APC elects AP as DR
Also fixes WIFI-2377
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
- WM was getting stuck on recvmsg() while receiving netlink event notifications
Since we are already using event loop to read data as and when it arrives, there was
no need to keep nl_recvmsgs() in blocking mode for notifications.
Setting socket to non-blocking mode resolves the issue.
- Also removed a redundant reload_config call in captive.c.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
Remove stale radius proxy config on ovsdb delete.
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
WIFI-2377: check radius proxy service on APC state change
Start or stop radius proxy service as needed on APC state change.
Radius proxy service is only started if:
- AP is elected as a DR (Designated Router) via APC
- radproxy is set to true in vif config custom options for any
ssid
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
If a previously associated-and-authorized STA comes for a new
connection (Assoc Request), AP rejects the Assoc with code 17.
Solution is to delete the STA entry at AP before re-adding the
STA entry. This clears out the state-machine at the AP and
accepts the new connection from the STA.
Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
If there is a cloud connectivity loss, we do not
want the AP to be elected as a DR/BDR since that would
mean the APs configuration could mismatch with all the
other APs linked to it.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Raise the priority of BDR in case
when DR is inactive, so that in the
election process BDR is elected as
DR.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
Fix firewall setting not being applied.
return incase the interap socket fails.
Clean up in failure conditions.
Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
- Make sure that uci_context used while loading a UCI is exclusive at
any given time.
- Some other improvements in the same area.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
- Add config parameters for accounting server in non-TLS case
- Allow server port to be configurable
- Fix up multiple realm to server mapping config
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
Fixes the following passpoint config params:
- Network Auth Type
- Connection Capability
- IP Address Availability
Signed-off-by: Arif Alam <arif.alam@netexperience.com>
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>