Commit Graph

28695 Commits

Author SHA1 Message Date
Madan Koyyalamudi
127957dfdf Release 5.2.1.63O
Release 5.2.1.63O

Change-Id: Idbf9de1427f90acb45ad52f9614309d6896dc62f
CRs-Fixed: 774533
2023-04-15 04:39:36 -07:00
Pragaspathi Thilagaraj
9e24d820d4 qcacld-3.0: Handle STA + TDLS + P2P CLI concurrencies
When P2P CLI is connected first and then STA is connected,
disable TDLS on existing interface and enable TDLS on the STA
vdev.

When existing STA + TDLS exists, disable off channel when P2P
connection is started and re-enable off channel for TDLS once
connection is complete. Don't teardown TDLS peers once the
P2P client connection is successful.

Change-Id: I91d152a3a052706289c06cebc932c84a69fdbc00
CRs-Fixed: 3455639
2023-04-15 04:39:35 -07:00
Madan Koyyalamudi
90da1d654b Release 5.2.1.63N
Release 5.2.1.63N

Change-Id: Iba2f2298ce7dde7be0e12cc9ead3aef11de3acd2
CRs-Fixed: 774533
2023-04-15 02:57:23 -07:00
Jeff Johnson
a54eacbdb6 qcacld-3.0: Introduce WLAN_DBGLOG_DEBUGFS feature flag
Currently the Debug Log DebugFS functionality in the qca-wifi-host-cmn
project is protected with #ifdef WLAN_OPEN_SOURCE.

The WLAN_OPEN_SOURCE macro was introduced for a legacy reason that is
no longer applicable. In order to remove the WLAN_OPEN_SOURCE macro,
introduce a new feature-specific WLAN_DBGLOG_DEBUGFS feature flag.
Once the Debug Log DebugFS functionality moves to the new flag, the
WLAN_OPEN_SOURCE macro can be removed.

Change-Id: I159af54ab91d009e5bf50d67492cbc62a05bad47
CRs-Fixed: 3463793
2023-04-15 02:57:23 -07:00
Jeff Johnson
f805d72764 qcacld-3.0: Kbuild: Consistently use ccflags-y
Currently Kbuild uses both cppflags-y and ccflags-y, The kernel Kbuild
documentation recommends using ccflags-y, so consistently use that
everywhere.

Change-Id: Ic5f86bad5d4260f39f98b5ce1b56ba6a69606aa9
CRs-Fixed: 3463792
2023-04-15 02:57:18 -07:00
Pragaspathi Thilagaraj
f8ac9322f3 qcacld-3.0: Add debugs for TDLS concurrencies
Add more debugs for TDLS concurrency scenarios.
Enable WLAN_FEATURE_TDLS_CONCURRENCIES.

Change-Id: Iad2d96d0bbf6a8f5e488ea5da2d666a55d9b5aba
CRs-Fixed: 3461776
2023-04-15 02:57:13 -07:00
Madan Koyyalamudi
9c4edc3fda Release 5.2.1.63M
Release 5.2.1.63M

Change-Id: I21799db987531fe087acd200ba9e2c14ea343dc0
CRs-Fixed: 774533
2023-04-14 23:40:27 -07:00
Srikanth Marepalli
6feba28f2a qcacld-3.0: Delete TDLS peers before sending TDLS disable to FW
As part of commit(Id680d0f6193740b24e78115ac7dc7be26e28acff)
during roam driver notify the TDLS STA about disconnection.
During this driver sends the TDLS disable command to Firmware
without deleting the TDLS peers. As a result of this in FW the
TDLS delete instance is called and TDLS handle is marked as NULL.
And later in driver the TDLS peers are getting deleted and now
the teardown update command is sent to Firmware. But in FW as
the TDLS handle is already NULL, it has asserted and crashed.

Fix is to delete the TDLS peers in driver and update the teardown
to Firmware and then send the TDLS disable command to Firmware.

Change-Id: Ic425cc065a29bbc444531f523eaccb14014ae47a
CRs-Fixed: 3455117
2023-04-14 23:40:26 -07:00
David Oladunjoye
866d289758 qcacld-3.0: Add stub implementation when TWT is not enabled
Add stub implementation when TWT is not enabled.

Change-Id: I70230f1534a746effdcc5f9635af9d3ebe2926d6
CRs-Fixed: 3466514
2023-04-14 23:40:21 -07:00
Madan Koyyalamudi
1ef58a7ad3 Release 5.2.1.63L
Release 5.2.1.63L

Change-Id: I484e347f1f6a75793ab767eb863c52212b17ef83
CRs-Fixed: 774533
2023-04-14 20:25:06 -07:00
Namita Nair
1eb6c68dd3 qcacld-3.0: Enable Opt Wifi Dp feature
This change enables optional wifi dp
feature.

Change-Id: I3789f3a551e5532f4547d49959958fdc15da0a0d
CRs-Fixed: 3466644
2023-04-14 20:24:56 -07:00
Madan Koyyalamudi
42a37a9bb5 Release 5.2.1.63K
Release 5.2.1.63K

Change-Id: I92d34a8709e9db37e3da10ae90975083b6182c83
CRs-Fixed: 774533
2023-04-14 10:12:54 -07:00
Aditya Kodukula
5ed17c9fa0 qcacld-3.0: Handle get_tx_power in SAP mode
In wlan_hdd_cfg80211_get_txpower function, to avoid
frequent WMI calls to firmware to get connection tx power,
host always returns the periodically cached tx power
acquired as part of UNIFIED_LL_GET_STA stats.

The current issue is, in case of SAP mode with no
stations associated, the tx_power is not cached into the
adapter, and host always returns default value.

To fix this issue, based on timestamp when tx_power is cached
into the adapter, host will either return cached value or
value obtained from WMI command.

Change-Id: I9dfbf9ea4d8b0d9430e6ab49cdc9f26c83079676
CRs-Fixed: 3456632
2023-04-14 10:12:54 -07:00
Madan Koyyalamudi
49b67f8417 Release 5.2.1.63J
Release 5.2.1.63J

Change-Id: Id379b3b5be29c5e15eac71b52e76f7773e205698
CRs-Fixed: 774533
2023-04-14 04:39:39 -07:00
Srinivas Dasari
6f89438a64 qcacld-3.0: Clear assoc vdev MLO flag upon roaming to non-MLO AP
Currently, MLO vdev flag is not cleared even when STA roams to a
legacy AP from an ML AP. This causes sending invalid info to
kernel as the os_if APIs still treat the connection as MLO
connection though STA roams to an ML AP.
Clear the assoc vdev MLO flag to avoid this.

Change-Id: Iaf013aebd1fe794202abdeeaa6b5db14987b6103
CRs-Fixed: 3466501
2023-04-14 04:39:39 -07:00
Madan Koyyalamudi
6912cf89d0 Release 5.2.1.63I
Release 5.2.1.63I

Change-Id: I04162d93f0446fecce11721bd279b52fa8e314ff
CRs-Fixed: 774533
2023-04-14 01:53:43 -07:00
Pragaspathi Thilagaraj
b96ea38606 qcacld-3.0: Cleanup tdls_disable_in_progress condition checks
tdls_disable_in_progress checks are always false since the
tdls_disable_in_progress is never set to true.
So cleanup the condition checks that use the
tdls_disable_in_progress variable.

Change-Id: I8a5f868c09919fc5835b9f8f7f30a32d59dab74a
CRs-Fixed: 3445123
2023-04-14 01:53:42 -07:00
Madan Koyyalamudi
439deefd2f Release 5.2.1.63H
Release 5.2.1.63H

Change-Id: Ic6a485cc8424b35f004ff779748b22115d4ad2c5
CRs-Fixed: 774533
2023-04-14 00:34:15 -07:00
Manikanta Pubbisetty
bfd3c67fcf qcacld-3.0: Enable TX descriptor history on WCN6750
Enable software and hardware TX descriptor history on WCN6750;
this will aid in TX data path debugging.

Change-Id: Ia5f84d79c1f721ea959beec48088fd3823d75ce0
CRs-Fixed: 3460664
2023-04-14 00:34:15 -07:00
Madan Koyyalamudi
93a8b4098b Release 5.2.1.63G
Release 5.2.1.63G

Change-Id: Ib7a58ecc97045198cb6c02e6623fb8ab06f75790
CRs-Fixed: 774533
2023-04-13 23:11:47 -07:00
Amruta Kulkarni
b934d276e6 qcacld-3.0: Set protected bit for t2lm action rsp frame
Set the protected bit when sending the t2lm action response
frame to AP.

Change-Id: Idba6c0aaa509d9d908431c605bb5bc89b6a2dcf6
CRs-Fixed: 3465075
2023-04-13 23:11:47 -07:00
Madan Koyyalamudi
194d71fc1e Release 5.2.1.63F
Release 5.2.1.63F

Change-Id: I86cb1e262ae8eff6ad99844898ee4ea12bd7b09c
CRs-Fixed: 774533
2023-04-13 21:45:43 -07:00
Deeksha Gupta
35ef57fc82 qcacld-3.0: Add Ref Leak related flags outside CONFIG_CNSS2_DEBUG
Currently Peer Ref leak functions (eg: wlan_objmgr_print_ref_func_line)
are not being compiled in defconfig due to flag is under 
CONFIG_CNSS2_DEBUG.
To fix it by moving appropriate flags outside the 
CONFIG_CNSS2_DEBUG flag.

Change-Id: I4501a895611c7339b6842ea3ad4b4bc50e78bb7e
CRs-Fixed: 3459656
2023-04-13 21:45:43 -07:00
Madan Koyyalamudi
cd293bd1d5 Release 5.2.1.63E
Release 5.2.1.63E

Change-Id: Ic9502615559992e1f938e299b4dbf274c8329da2
CRs-Fixed: 774533
2023-04-13 16:34:29 -07:00
Jeff Johnson
a4bdce02bc qcacld-3.0: Kbuild: Remove duplicate -W switches
Currently the Kbuild adds "-Wall -Werror" to the C command line.
However, the kernel already adds these by default, so stop adding the
duplicates.

Change-Id: I8d0b777feafd726ab29278739ac20bcaf0f7f000
CRs-Fixed: 3463791
2023-04-13 16:34:29 -07:00
Jeff Johnson
474edb63ae qcacld-3.0: Kbuild: Consolidate setting of feature flags
Currently in Kbuild most of the feature flags, but not all of them,
are set in one place. In order to make the Kbuild more maintainable,
and in preparation for future refactoring, consolidate all of the
feature flag setting in one place.

Change-Id: Ie7bcf67304990991f555b0bdd93f3ad38b52bddd
CRs-Fixed: 3463790
2023-04-13 16:34:23 -07:00
Madan Koyyalamudi
13afe4b63d Release 5.2.1.63D
Release 5.2.1.63D

Change-Id: I22a4a178da4b10a7a37a746f2ebb96632580a248
CRs-Fixed: 774533
2023-04-13 13:58:45 -07:00
Rahul Gusain
583019cf27 qcacld-3.0: Set NDP state to disconnect if no peers exist
Currently, host driver checks if there are peers present on the NDI
and clean them up as part of NDI cleanup. Cleanup is done in below steps,
1. Set the state to NAN_DATA_END_STATE
2. Send NDP_END_ALL to firmware to end all existing NDP sessions on the
NDI and to cleanup corresponding peers
3. Move the state to NAN_DATA_DISCONNECTED_STATE finally if NDP_END_ALL
goes fine.
But if no peers are present on NDP, none of the above happens and NDI
state stays and doesn't move to DELETED. So, set the NDI state to
DISCONNECTED if no peers are present.

Change-Id: I0d22c240b3e3eee5f62ba8b369bab500e27487b7
CRs-Fixed: 3463614
2023-04-13 13:58:44 -07:00
Madan Koyyalamudi
2c3ad4db6d Release 5.2.1.63C
Release 5.2.1.63C

Change-Id: I4cc07eccbaf75ce21d48f123f50330bc84d404c5
CRs-Fixed: 774533
2023-04-13 11:07:34 -07:00
Jingxiang Ge
892da28289 qcacld-3.0: refine log in wlan_hdd_get_station_stats
add a space at the beginning of each string. otherwise if
more than one is NULL it will get a concatenated set of
strings instead of space separated strings.

Change-Id: I12426da8e14069a3d1f0048954f1033683f6c697
CRs-Fixed: 3458752
2023-04-13 11:07:33 -07:00
Madan Koyyalamudi
a8eb327487 Release 5.2.1.63B
Release 5.2.1.63B

Change-Id: Ie7009d09e9bcdcca1793b2acd361d78185dd7a63
CRs-Fixed: 774533
2023-04-13 07:36:12 -07:00
Rajeev Kumar
9568cbfe1c qcacld-3.0: Remove unwanted QDF asserts from PMO suspend all components
Remove unwanted QDF asserts from PMO and suspend all components as there is
error handling present for error cases.

Change-Id: I43b1ba36d9e2fb467a7a7c110abd4a2d44e5b1a8
CRs-Fixed: 3459928
2023-04-13 07:36:11 -07:00
Gururaj Pandurangi
77474a3d1d qcacld-3.0: Use HW power limit to cap RRM link tx power
During Radio Measurement request, if the TPC  power exceeds
power limit set by hardware, use this limit to cap the tx
power sent in the link measurement report.

Change-Id: Ib169c767d14160f8994a845a00baead7f8e6c3e1
CRs-Fixed: 3452913
2023-04-13 07:36:06 -07:00
Madan Koyyalamudi
d9261a80f1 Release 5.2.1.63A
Release 5.2.1.63A

Change-Id: Ie599df372cfc1e2b0fa2e0910fb4ad3a96482891
CRs-Fixed: 774533
2023-04-12 22:47:02 -07:00
Manikanta Pubbisetty
ec1b5c0064 qcacld-3.0: Send DSCP-TID map config to firmware
For WCN6450, it is required to send DSCP-TID map config to
the firmware. Enable the required configs for this.

Change-Id: I9327739aaed0fd1555a0cf2c99d6aceecc568ed0
CRs-Fixed: 3460632
2023-04-12 22:47:02 -07:00
Jingxiang Ge
fa2c01c5c4 qcacld-3.0: Fix link tx bitrate unknown issue on p2p0
In wlan_hdd_get_station_stats, NULL checking for
pdev_stats fails as it doesn't pass pdev stats info
to hdd layer. stats will not pass to userspace, it will
display tx bitrate unknown in command "iw p2p0 link" or
"iw p2p0 station dump".

issue only happen on p2p0 and not on wlan0. as wlan0 can
use cached stats in __wlan_hdd_cfg80211_ll_stats_get.

Fix is pass pdev stats info to hdd layer in
get_station_stats_cb.

regression cause is:
Iaefc5629872431cbc6c24090b1edb6cebdad995a

Change-Id: I33b608988aa288e0f8139524de5e20fcbba4f2be
CRs-Fixed: 3457955
2023-04-12 22:46:57 -07:00
Arun Kumar Khandavalli
3900e1eb53 qcacld-3.0: Block wmi transactions as part of trigger recovery work
Currently host waits for the firmware down event as part of the
recovery sequence to block the wmi transactions, if there is any delay
in triggering recovery some wmi commands can leak to firmware in this
window resulting in abnormal behaviour in the firmware.

So, block the wmi transactions after the recovery is initiated.

Change-Id: I502a8331111a6a61f31f35c4a1b64646410925f1
CRs-Fixed: 3444156
2023-04-12 22:46:51 -07:00
Madan Koyyalamudi
1fc4f08a00 Release 5.2.1.63
Release 5.2.1.63

Change-Id: I0f66c6b1276d47b4956e6b5fbf696365fa0b493d
CRs-Fixed: 774533
2023-04-12 19:06:10 -07:00
Namita Nair
a01bddd65a qcacld-3.0: Revert: Disable Opt Wifi Dp feature
This change disables IPA optional wifi
datapatah feature flag.

Change-Id: I9f8876a3f6bd7f0bbe65cbc7a991b4d3c798d326
CRs-Fixed: 3463581
2023-04-12 19:06:10 -07:00
Madan Koyyalamudi
2a327e29cc Release 5.2.1.62Z
Release 5.2.1.62Z

Change-Id: Ic2b12f85af7c3460cf24478995d4b67759339d31
CRs-Fixed: 774533
2023-04-12 16:37:33 -07:00
Pragaspathi Thilagaraj
01e7881521 qcacld-3.0: Propagate proper TDLS AP capabilities during enable
TDLS AP capabilities are stored in MLME, but is not used while
sending WMI_TDLS_SET_STATE_CMDID to firmware, instead false is
passed without passing the actual AP capabilities. This could
cause TDLS getting enabling when AP doesn't allow TDLS.

Cleanup few API and remove ap_cap structure in TDLS vdev private
object

Change-Id: I43c140d58e8777da3acf748f08f5d9915fd91bf4
CRs-Fixed: 3449324
2023-04-12 16:37:33 -07:00
Madan Koyyalamudi
87f608c735 Release 5.2.1.62Y
Release 5.2.1.62Y

Change-Id: I1401a2c07c9a6a9523a011c7e04c9b21487bd54e
CRs-Fixed: 774533
2023-04-12 12:53:48 -07:00
Pragaspathi Thilagaraj
282f018e47 qcacld-3.0: Handle TDLS concurrency during CSA
If CSA on SAP/P2P GO causes MCC with the current STA TDLS vdev,
then teardown the TDLS connections, disable off channel and send
disable TDLS to firmware.
If CSA causes MCC -> DBS or MCC -> SCC then allow TDLS and update
the peer off channel list to firmware
Disable TDLS off-channel before SAP/P2P GO vdev restart.
Once CSA is complete, TDLS off-channel will be re-enabled based
on the concurrency.

Add interface manager changes to notify STA channel switch.

Change-Id: I36b359a7e1cf570cfb2b2f0e6abedf148a8fd174
CRs-Fixed: 3445112
2023-04-12 12:53:47 -07:00
Madan Koyyalamudi
2a0bd88990 Release 5.2.1.62X
Release 5.2.1.62X

Change-Id: Ie72fe78a0d72d4312486ce7b42ec958fa09ce70f
CRs-Fixed: 774533
2023-04-12 03:20:01 -07:00
Amruta Kulkarni
8ffbb6dd25 qcacld-3.0: Handle T2LM teardown action frame
When a T2LM teardown action frame is received clear the
previously negotiated peer level t2lm mapping and update
FW with established mapping if valid or default mapping
applies.

Change-Id: I7951c76fe3d6c1bf231300675f2b954ff7697b39
CRs-Fixed: 3420421
2023-04-12 03:20:00 -07:00
Srinivas Dasari
12c760b99b qcacld-3.0: Don't clear MLO vdev flags while cleanup the link
Currently, MLO flags are cleared before issuing disconnect on
the link vdev when DUT roams to a single link ML-AP. But these
flags get cleared as part of disconnect handler and not supposed
to be cleared anywhere else.
Clearing these flags before issuing disconnect on link causes
sending disconnect done indication to kernel as the flags
got cleared, which make the vdev as non-MLO. This race condition
is possible when a disconnect is queued from userspace on
link vdev while one disconnect gets processed on it(due to
single link roaming).

Change-Id: I8206c1b8197bf26ad852eafb631c8585bc749846
CRs-Fixed: 3439175
2023-04-12 03:19:55 -07:00
Madan Koyyalamudi
a6d07e9314 Release 5.2.1.62W
Release 5.2.1.62W

Change-Id: I6018f8769bcbccfbccc595a45f7ed2beba8e72e1
CRs-Fixed: 774533
2023-04-12 01:32:50 -07:00
Paul Zhang
113eee880d qcacld-3.0: Config addba resp for TDLS on MLO
For TDLS in MLO case, when send addba response, it needs to
use MLD macaddr and set action code, then the frame can send
out properly and be received by peer.

Change-Id: I93b46ad88738fc2ee9c88bd52ab5d3a86ead3cd7
CRs-Fixed: 3462062
2023-04-12 01:32:50 -07:00
Paul Zhang
0752365a21 qcacld-3.0: Add logic to support tdls on MLO
Since for MLD device, it can only choice one link for tdls,
add logic like this:
1\ As initiator, it needs to send discovery request on each
link, before send the frame, it needs to force active the link;
2\ As responder, it sends the discovery response the link id,
before send the frame, it needs to force active the link;
3\ For other tdls management and tdls operation, it needs to
find out which link(vdev) is used as tdls link first.

Change-Id: I64e27219eb6c6b3fef62e541423aa8e5d84b1560
CRs-Fixed: 3439568
2023-04-12 01:32:45 -07:00
Madan Koyyalamudi
7d518a4ab9 Release 5.2.1.62V
Release 5.2.1.62V

Change-Id: Ia898cb79166782c24e3fbcc9199862fb64e1169c
CRs-Fixed: 774533
2023-04-11 16:36:17 -07:00