Commit Graph

2833 Commits

Author SHA1 Message Date
Aravind Kishore Sukla
df3ec76f19 qcacld-3.0: Replace QDF_TRACE with sme APIs
Replace QDF_TRACE with respective sme APIs

Change-Id: I34403dacc207c126b4edfb2c2fbc96463f9b7620
CRs-Fixed: 3173845
2022-04-19 13:21:23 -07:00
VIJAY RAJ
e6a153e819 qcacld-3.0: Replace QDF_TRACE with sme api for log optimization
Optimize the log by replacing the QDF_TRACE api with sme api in
csr_api_scan.c

Change-Id: I8fdf9e0689c916c07424992c81d72249b508d3c9
CRs-Fixed: 3174442
2022-04-19 01:12:28 -07:00
Vinod Kumar Myadam
708acac4e5 qcacld-3.0: Replace QDF_TRACE with SME APIs
Replaced QDF_TRACE with SME APIs debug and err
in sme_qoc.c

Change-Id: I1a72a632de2597a28d04236cf4ef1b26b064510d
CRs-Fixed: 3173313
2022-04-18 00:10:32 -07:00
Aravind Kishore Sukla
f082da249c qcacld-3.0: Replace QDF_TRACE with sme APIs
Replace QDF_TRACE with respective sme APIs

Change-Id: Ibc7349dc5c5a8c1511ab578c2177cc0e32bc64cd
CRs-Fixed: 3170203
2022-04-12 17:49:23 -07:00
Bing Sun
6df47a0d95 qcacld-3.0: Add API to get max mcs index
Add a new field max_mcs_index in mlme_legacy_priv to save max mcs
index of current vdev.
Add a new field max_real_mcs_idx in hdd_station_info to save max
mcs index of the connected station.

Change-Id: I28908515cbe5c18c79f14f8645defd5c82e3a6f0
CRs-Fixed: 3065838
2022-04-12 06:31:07 -07:00
VIJAY RAJ
2fc8eae7a6 qcacld-3.0: Replace QDF_TRACE with sme api for log optimization
Optimize the log by replacing the QDF_TRACE api with sme api in
csr_api_roam.c

Change-Id: Id2a8b86619fab5c4ee9e69fb59152060654afc02
CRs-Fixed: 3169030
2022-04-08 10:04:53 -07:00
Rahul Gusain
4c8e7dd2a8 qcacld-3.0: Process deauth even in middle of SAE authentication
When SAE authentication fails due to some reason and if the
failure is detected while processing confirm request from the
station, some APs send deauth instead of confirm response.

Current driver/wpa_suplicant wait for the confirm response and
driver drops the deauth frame as it's in the middle of SAE
authentication. This results in connect timeout.
Driver is supposed to process the deauth from AP and indicate
failure to userspace. To resolve this, consider the deauth from AP
as SAE failure and abort the connection. Send connect failure to
userspace.

CRs-Fixed: 3157178
Change-Id: I09c9d8b19539e4986665c6052d3a7f52b3e49600
2022-04-07 16:28:14 -07:00
Vinod Kumar Myadam
6d1d58c176 qcacld-3.0: Replace QDF_TRACE with respective SME DEBUG APIs
Replaced QDF_TRACE with respective SME DEBUG and ERR APIs

Change-Id: If46ccd5ab9e3113559d48ae167bbbd067d0828e5
CRs-Fixed: 3168064
2022-04-07 01:18:25 -07:00
Srinivas Girigowda
e5bb379ee3 qcacld-3.0: Return -EAGAIN if TWT setup is issued and PS disabled
As per the requirement, if TWT setup request is issued when
power save is disabled, expectation from driver is to return -EAGAIN.

Change-Id: I7a519d15787f912338afabf7e83b561cb3a2ebc0
CRs-Fixed: 3163880
2022-04-04 21:00:06 -07:00
Surya Prakash Sivaraj
edc56c445f qcacld-3.0: Remove the old SAP/CSR flow
Remove the old SAP-CSR flow for start bss, stop bss and
channel change req processing which is disabled currently
under the SAP_CP_CLEANUP macro.

Cleanup the redundant checks in the deauth, disassoc
response processing in CSR.

Change-Id: I5a360fc267688b51ca645551108b65646a3c8c1a
CRs-Fixed: 3164259
2022-04-03 17:55:50 -07:00
Jyoti Kumari
930f8637fb qcacld-3.0: Remove peer disconnect command from serialization
Consider a case when CSA happens and south bound disconnect
command(WLAN_SER_CMD_WM_STATUS_CHANGE) got queue in serialization
at same time. Later peer tries to connect and south bound
diconnect command becomes active for same peer.

As part of CSA, peer gets deleted directly without going through
serializtion. So when south bound disconnection command becomes
active, it may lead to race where peer tries to connect and
driver tries to disconnect the same peer which may cause
deauth/disconnect(WLAN_SER_CMD_WM_STATUS_CHANGE) active command
timeout.

As part of fix, flush all peer disconnect/deauth pending commands
from serialization during CSA.

Change-Id: I9b0af7deb7f2123850f3535f2d3258440af381f1
CRs-Fixed: 3148874
2022-04-01 09:17:37 -07:00
Abhishek Singh
553e074021 qcacld-3.0: Remove SME global lock from the scan APIs
Remove SME global lock use from the scan APIs as scan has its
own lock and thus no need to hold global lock while accessing
scan database.

Also cleanup unused csr scan functions.

Change-Id: I7ad5a61e69c200f9dee6b9158c4d27708fdc98dc
CRs-Fixed: 3160360
2022-03-29 14:11:37 -07:00
Surya Prakash Sivaraj
93aac5b7c6 qcacld-3.0: Remove camelcase in csr_roamstart_bssparams struct
Remove the usage camelcase in bssparams structure, use the
snake case instead.

Change-Id: I56a99b69b08db62aef842e40ad358b3d3dc15b40
CRs-Fixed: 3148876
2022-03-25 17:04:21 -07:00
Surya Prakash Sivaraj
cd92b53903 qcacld-3.0: Redesign the Stop BSS request/response flow
Remove the redundant structures and operations in CSR module
for the stop bss request/response processing to/from SAP/NDI
modules.

Change-Id: I0db36caa509699fe5e0e9709d3e3689e551aad4f
CRs-Fixed: 3148791
2022-03-25 15:44:30 -07:00
Surya Prakash Sivaraj
8bd8150c7c qcacld-3.0: Redesign the channel change request flow
Remove the usage of redundant legacy structures in CSR/SAP
modules and simplify the channel change request flow from
the SAP module to LIM.

Similarly change the channel change flow for monitor mode.

Change-Id: Ib91f65307d456919f68892f45f3aa9b4fed0f0d3
CRs-Fixed: 3148761
2022-03-25 15:44:25 -07:00
Surya Prakash Sivaraj
15bfaa49b3 qcacld-3.0: Cleanup start bss response flow for SAP
Remove redundant structures and APIs in the start bss response
flow for SAP and simplify the processing.

Change-Id: Ic346484200baec59d154c2c24d01fab0279647ed
CRs-Fixed: 3142915
2022-03-25 15:44:19 -07:00
Surya Prakash Sivaraj
3d8ad3801b qcacld-3.0: Cleanup the start bss request flow
Remove redundant structures and operations in SME/CSR.

Currently, start bss request is prepared in CSR module using
csr_roam_profile, which is built from sap context.

To remove redundencies, prepare the start bss request in SAP
module and serialize the start bss request.

Change-Id: Icd468fe2a48d5324c1485d83b05e27400c9dbd9a
CRs-Fixed: 3142912
2022-03-25 15:44:13 -07:00
Vulupala Shashank Reddy
5acf8c3e2a qcacld-3.0: Reduce the log level to optimize roam time
Reduce the log level for the frequent acceptable errors
to reduce the roam latencies.

Change-Id: I9f5405025948d160e6fcd65ecca05dce7670ea84
CRs-Fixed: 3150439
2022-03-22 17:00:32 -07:00
Utkarsh Bhatnagar
fea133e371 qcacld-3.0: Move MLO STA concurreny handling to Policy Mgr
Move MLO STA-SAP concurreny handling to Policy Mgr which
is present in CSR currently.
Also, Move MLO STA-STA concurreny handling to Policy Mgr
which was part of If Mgr currently.

Change-Id: I2b8de17c3d31b43ff1f6b81a7de07b88888d7fb5
CRs-Fixed: 3153393
2022-03-21 17:05:03 -07:00
chunquan
03c551de67 qcacld-3.0: Rename files with blacklist/whitelist
Rename files with blacklist/whitelist to denylist/whitelist.
Rename files with blm to dlm.

Change-Id: Ief7ce0a797f74460c9708f8d2dd440412af5b7eb
CRs-Fixed: 3099864
2022-03-14 08:50:05 -07:00
Madhvapathi Sriram
79e13b55ab qcacld-3.0: User MCC quota setting
Set the MCC quota for a given interface.

Change-Id: I313cdf1673f8fc5f50a049d429c0d88fd213e66f
CRs-Fixed: 3106146
2022-03-14 00:43:35 -07:00
Abhishek Singh
fb49ccd37f qcacld-3.0: Avoid Using sme global lock in hdd calls of Connection mgr
If the connection manager command is moved from pending to active
queue after an SME initiated active command e.g SAP peer
disconnect, it's already holding the SME lock and trying to
acquire the connection manager lock.

Now if in another thread, the connection manager process is
already in progress and tries to get the SME lock,
the driver ends up in a deadlock.

Thus remove the SME global lock from the APIs called from
HDD disconnect handlers.

Change-Id: Ia1e9d4480935cb8954eeb02bf3d845dce4b29f8f
CRs-Fixed: 3139097
2022-02-28 16:12:05 -08:00
Surya Prakash Sivaraj
836041faff qcacld-3.0: Cleanup start bss response structure
Cleanup bss description variable from start bss response.

Change-Id: I450b9d2720e342914de9636a7bc00e42508bd5c9
CRs-Fixed: 3123069
2022-02-23 16:32:34 -08:00
Divyajyothi Goparaju
66982241c5 qcacld-3.0: Optimize logs in sme_qos_get_acm_mask
Remove ACM prints from sme_qos_is_acm function
as mask value in sme_qos_get_acm_mask indicates the same

Change-Id: I7c5e9f4cca78fc7a99459f7662184670371a6313
CRs-Fixed: 3134776
2022-02-23 09:50:07 -08:00
Surya Prakash Sivaraj
08bdec292e qcacld-3.0: Cleanup SAP flow in CSR
Remove redundant structures in CSR for SAP functionality
and add a new flow to post SAP requests from SAP module to
LIM.

Change-Id: If3339cf138140ea148bbd263960907fb3a01de43
CRs-Fixed: 3123072
2022-02-23 08:36:37 -08:00
Divyajyothi Goparaju
5e8af21ed8 qcacld-3.0: Optimize logs during start bss
Instead of print each frequency in separate line,
print  all the frequencies in one shot in
csr_save_to_channel_power2_g_5_g.

Change-Id: I9bca0a94b702626e247bd63f3aa3a617597351a0
CRs-Fixed: 3128543
2022-02-17 15:42:13 -08:00
Bing Sun
26e00031d5 qcacld-3.0: Handle CSA in MLO sta partner link before it is up
Before MLO sta partner link is up, FW can't indicate CSA event to host.
For this case, host need save csa parameters and process it when MLO
sta partner link is up.

Change-Id: I543c5e1069af5b1e88c6619364a7a44330134d2c
CRs-Fixed: 3082437
2022-02-11 02:57:10 -08:00
Srinivas Girigowda
3d62f09171 qcacld-3.0: Make legacy WMA TWT functions no-op
Make legacy WMA TWT functions no-op if TWT componentization is enabled.

Change-Id: I19ab205dac72d869bbe90bad359f89fe83275e4d
CRs-Fixed: 3085424
2022-02-11 00:20:40 -08:00
Rachit Kankane
0b6247975c qcacld-3.0: Add support for EasyMesh ACS
Add support for below EasyMesh specific commands

1. To set user specified channels in the acs channel list
2. To trigger ACS
3. To get the ACS report

Change-Id: I1090b9a86d62eddc9954b70835c7496e5a614757
CRs-Fixed: 3080222
2022-02-01 10:40:17 -08:00
Surabhi Vishnoi
ef01f40bf7 qcacld-3.0: Reduce the log level to optimise the roam time
TWT initialisation will fail for each non 11ax connection
so an error log is not needed if peer object for TWT is not found.

Also, RIC data is not mandatory in FT session, so if its not
present, log a debug level print instead of error level.

Change-Id: I7fec9f88aa68b2ae947e34a1aede311e9fed2d05
CRs-Fixed: 3117535
2022-01-28 10:58:05 -08:00
Wu Gao
5924885bea qcacld-3.0: Set vdev tx data callback properly
When WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE enabled and user space sets
mac address, host will detach vdev and attach again without setting
vdev tx data callback. Then host tx TDLS discovery request timeout
since lim_mgmt_tdls_tx_complete isn't called, finally TDLS link
establish failed. This change set vdev tx data callback after dp vdev
detach and attach done.

Change-Id: Iada58ba2df0612a92503ccfa5f246f7cca9db9ad
CRs-Fixed: 3112831
2022-01-26 01:04:12 -08:00
Bing Sun
3e6513e3b8 qcacld-3.0: Implement beamforming configuration for EHT
Intersecting EHT beamforming configuration from ini and FW
indication, then save it to eht caps of mlme.
For sta, update mlme EHT beamforming configuration to FW
through WMI_VDEV_PARAM_SET_EHT_MU_MODE directly.
For ap, intersecting mlme EHT beamforming configuration and user
configuration, then send result to FW.

Change-Id: I3d6185896af9fc58eb1fb6db913d4a425f72c696
CRs-Fixed: 3113235
2022-01-25 06:57:40 -08:00
Surya Prakash Sivaraj
79c1885686 qcacld-3.0: Cleanup the CSR API
Cleanup csr_get_cfg_dot11_mode_from_csr_phy_mode API by removing
unused parameters and use vdev id instead of profile.

Change-Id: Id2c8b52845d5e928e315b3af0a3d1289e81b2e7e
CRs-Fixed: 3113395
2022-01-25 03:21:24 -08:00
Amruta Kulkarni
f99679197f qcacld-3.0: Enable RSO for ML connection
For MLO connection, roaming is enabled
after ML link is up.

Change-Id: Ib042a9593bef9f287b92f0b256c942f8133a7f71
CRs-Fixed: 3098637
2022-01-12 01:50:58 -08:00
Surya Prakash Sivaraj
ab7caec132 qcacld-3.0: Cleanup start bss processing in LIM
Remove unwanted parameters from start_bss_req and use
the parameters from vdev instead.

Change-Id: Ifea96bf7908b0dae66807b7a346684fe46fdcd4e
CRs-Fixed: 3105488
2022-01-10 15:08:27 -08:00
Bing Sun
8b5d93f37c qcacld-3.0: Update CAC duration of new channel to vdev before CSA
CAC duration of new channel should be able to get before CSA. During
CSA, CAC duration of new channel is used to populate max channel
switch IE.

Change-Id: I25d430d3eb663c90555ebad7a214b0789ea8c1ce
CRs-Fixed: 3102581
2022-01-09 23:09:50 -08:00
Bapiraju Alla
33911c5296 qcacld-3.0: Update MLO manager whenever the MLD address is changed
Currently when ever there is a change in MLD MAC address, MLO manager is
not being notified with new MAC address. This resulting in memory leak
for mlo dev context which is created with old MLD address.

To address this, update MLD address in MLO manager with new MLD address.

Change-Id: I1a3eb9426dc39e5b4fe5bfaf0bd4a571280eb50c
CRs-Fixed: 3103077
2022-01-05 09:02:20 -08:00
Utkarsh Bhatnagar
7af2c5d1e7 qcacld-3.0: Fix force SCC logic to consider 1 inactive link
A MLO with 1 link not active will lead to HW mode as SMM instead
of SBS, so check and see if SBS MLO is present and take
decision as per it.

Change-Id: Ide487d56d6375892b91ab615b9ad314dba2c9991
CRs-Fixed: 3102349
2021-12-30 12:36:48 -08:00
Ashish
0fcdb3b424 qcacld-3.0: Remove get disconnect stats command from serialization
Currently in SAP mode, when host driver receives disconnect for
station, first it gets disconnect stats with serialization command
and then it sends delete peer command to fw. There is an issue with
this approach, if there are maximum number of clients are connected
to a SAP and all of these clients gets disconnected at the same
time, in that case there will be a disconnect stats command and
peer delete command in serialization, because of which serialization
queue gets full.

To address this issue, remove disconnect stats command from
serialization and send this command just before sending peer
delete command once peer delete command gets serialized.

Change-Id: I2fa1a5a393939eebbce796e11348fa7c040b40e8
CRs-Fixed: 3100914
2021-12-29 05:36:16 -08:00
Abhishek Singh
af5e1cfadb qcacld-3.0: Remove Unused RSO functions
Remove Unused functions wlan_cm_abort_rso and
sme_abort_roaming.

Change-Id: I3ff40cc7d526adea5cac61522c27142f7c73bcbe
CRs-Fixed: 3101169
2021-12-28 08:46:12 -08:00
Bapiraju Alla
0de141916d qcacld-3.0: Add support to dynamic MAC address update
Currently, MAC address update is supported only when interface is down.
Because of this framework needs to issue interface down and interface
up to update the MAC address. Interface down and up will lead to VDEV
delete and VDEV create commands to the FW.

To optimize Host-FW interactions during set MAC address, add support
to update the MAC address without bringing the interface to down state.

Change-Id: I76afa8f8c2504e8271bf689392d526f994afff0a
CRs-Fixed: 3063201
2021-12-27 20:58:55 -08:00
Jayachandran Sreekumaran
fde2fec318 qcacld-3.0: Retain the max_chan_switch_ie support ini config
Max channel switch IE is getting enabled through the ini config.
This is getting lost while copying the phy_config.
As there is no additional target support required for enabling
this IE, retain the config received through ini.

Change-Id: Ic200d8e92346e6c3fba2bca9f1776aee2b106ae4
CRs-Fixed: 3086447
2021-12-20 01:36:50 -08:00
Utkarsh Bhatnagar
da01ec4d8c qcacld-3.0: Handle SAP + MLO_STA concurrency after MLO connect
Handle SAP + MLO_STA concurrency after MLO connect, by disabling
one of the SBS link if 2.4Ghz SAP is present.

Also if roam happen to non SBS MLO remove the disable restriction
of MLO.

Change-Id: I7d9503a01bb23cd06808b46c090f0dee39c96af6
CRs-Fixed: 3096310
2021-12-17 12:17:00 -08:00
Utkarsh Bhatnagar
c7e3610309 qcacld-3.0: Handle SAP + MLO STA concurrency
Handle SAP and MLO STA concurrency such as:

  1) If MLO STA is present with both links
     in 5/6 Ghz then SAP comes up on 2.4 Ghz,
     then Disable one of the links.

  2) If there is channel switch for sap from
     2.4 ghz to 5 ghz, then enable both the
     links as they were disabled by previous
     operations when sap was on 2.4 ghz.

  3) If MLO STA is present with both links in
     5/6 Ghz and SAP, which was present on
     2.4 ghz, stops then renable both the as
     one of the links were disabled because
     of sap on 2.4 ghz.
     Also, in case where MLO STA roamed from
     5 + 6 link to 2.4 + 5/6 link force scc
     will happen and the disabled link has
     to be enabled.
     Both links should only be enabled if mlo
     sta has more than one links.

Change-Id: I0fd0093b20336ae32325981589c399b44a44b64e
CRs-Fixed: 3092202
2021-12-16 07:17:42 -08:00
bings
53a13ccb3a qcacld-3.0: Add API to get sta information for EasyMesh
Add API to get sta information for EasyMesh.

Change-Id: I12e7eaae3562ca35b33f0637a33e784b912ca8a3
CRs-Fixed: 3044736
2021-12-08 13:50:00 -08:00
Bapiraju Alla
63867fd076 qcacld-3.0: Add support to calibration failure events parsing
Currently there is no provision to get the calibration failure
information from the driver. Because of this it is getting difficult
to debug the calibration failure issues.

To simplify the calibration failure issue debugging, add support to
parse calibration failures events in the driver.

Change-Id: I6d831804cca259862fea3e8bb4af33d556138d43
CRs-Fixed: 3078926
2021-12-06 22:33:20 -08:00
Kiran Kumar Lokere
ce956d13f5 qcacld-3.0: Fix HE MCS user configuration issue
Update the 2G and 5G HE capabilities with user configuration
to advertise the user configured HE MCS in management frames.

Change-Id: I59952aba0187cd169be518336c69aa93b512327b
CRs-Fixed: 3074827
2021-11-16 06:22:45 -08:00
Utkarsh Bhatnagar
fb350af4eb qcacld-3.0: SAP concurrency changes
SAP concurrency changes to support
SBS

Change-Id: I8a509b20ab172bce2df977f69a78f5ec0070535a
CRs-Fixed: 3052123
2021-11-08 11:20:33 -08:00
Srikanth Marepalli
bbeccbc9ce qcacld-3.0: Fill the vendor attributes with the Roam stats
This change gathers the roam event stats from the FW.
New vendor event is used to fill in the vendor attributes
whenever the roam stats are received from Firmware.

Change-Id: I9a2ddef62d26b0b68897891788733df452ac1ceb
CRs-Fixed: 3036518
2021-11-08 09:41:34 -08:00
Pragaspathi Thilagaraj
e18138c7fa qcacld-3.0: Allow ADDROAMSCANFREQUENCIES irrespective of roam scan control
Based on the new NCHO requirement, allow ADDROAMSCANFREQUENCIES to add
roam scan frequencies irrespective of the roam scan control value.

Change-Id: I5742f6d590e3ec51bfb294610ede05b1935a4790
CRs-Fixed: 3046763
2021-10-25 20:19:00 -07:00