Commit Graph

24766 Commits

Author SHA1 Message Date
Bing Sun
d1ad81958b qcacld-3.0: Check link session Before populate MLO RNR IE
Mlo flag of vdev is set in wlan_hdd_cfg80211_start_bss context which
happens before pe session creation, so we may get a mlo vdev but the
pe session is not created.
Check link session Before populate MLO RNR IE.

Change-Id: I59da17bf1722c5a580c804ec8e6bf801aa510b0a
CRs-Fixed: 3105243
2022-01-06 10:39:45 -08:00
Madan Koyyalamudi
d011d59b12 Release 5.2.1.6Q
Release 5.2.1.6Q

Change-Id: I0030db076f10f5e868aef4e6e7c84e1501f8e32e
CRs-Fixed: 774533
2022-01-06 09:27:36 -08:00
Utkarsh Bhatnagar
91f17875ce qcacld-3.0: Initialize sap ch_width by Max ch_width
Initialize sap bw as MAX BW in
policy_mgr_valid_sap_conc_channel_check() as
wlansap_get_csa_chanwidth_from_phymode() take care
of selecting BW for sap and it has a check that will
take minimum of selected BW and initialized BW.
If this BW is not initialized with Max BW then in cases
where original BW is 0 (20 Mhz) (cases such as channel
switch happens from 2.4Ghz to 5Ghz), the above mentioned
check will result in selected BW being 0 (20 Mhz) for
non-DBS HW.

Change-Id: I29febf09036ffa0163df58ce51b399abe2a43fe2
CRs-Fixed: 3101285
2022-01-06 09:27:35 -08:00
Gururaj Pandurangi
25f62b8a77 qcacld-3.0: Add more debug logs for EHT cap and MLO IE
Add additional debug logs for EHT cap and MLO IE in the
parser APIs for ML STA and SAP.

Change-Id: I19353e30be44d29d2ab5ec3de780ecdeb8907158
CRs-Fixed: 3088072
2022-01-06 09:27:30 -08:00
Zhaoyang Liu
2839ca71b4 qcacld-3.0: fix setting tx aggr size issue for qca6390
For QCA6390, firmware not advertise service capability for
tx aggr size 256 support information. Actually it supports
max tx aggr size 256. If user want to use aggr size 256 from
ini file , current behavior will reset the size 64 for QCA6390.
Fix this issue to adopt size from ini file configuration.

Change-Id: Icaed9af65d70e3d14ac604636c4269bd00a8c801
CRs-Fixed: 3089384
2022-01-06 09:27:25 -08:00
Madan Koyyalamudi
31395dd472 Release 5.2.1.6P
Release 5.2.1.6P

Change-Id: I71f88b4c22fdf638ec5291f231314546c6b0a5af
CRs-Fixed: 774533
2022-01-05 21:41:36 -08:00
Gururaj Pandurangi
c032cd1997 qcacld-3.0: Avoid OOB read in dot11f_unpack_assoc_response
Avoid OOB read in dot11f_unpack_assoc_response API. Modify
the check to nBuf-len > 1 to read another byte of pBufRemaining.
This ensures a read of at least 2 bytes since all IEs have
at least 2 bytes.

Change-Id: Ic6756c11c05e68f0af5227971ce8b16a6c7e012a
CRs-Fixed: 3104235
2022-01-05 21:41:35 -08:00
Madan Koyyalamudi
75148ac430 Release 5.2.1.6O
Release 5.2.1.6O

Change-Id: I5546cb9a09f355db46ba19f366879768a7ed60d2
CRs-Fixed: 774533
2022-01-05 13:16:29 -08:00
Bapiraju Alla
b3c7c1582f qcacld-3.0: Reject LL stats request for SAP mode
LL stats request is not supported for SAP mode. But driver is not checking
for device mode for LL stats request. Instead it is depending on LL stats
request set flag which won't be set for SAP mode. In case of mode switch
from STA to SAP, it is possible that LL stats request set flag will be set
for STA mode and LL stats are requested after switching to SAP mode. This
will bypass the mode SAP.

To avoid this, reject LL stats request for SAP mode.

Change-Id: I8c680288991126f0b349584f502b22e18af72287
CRs-Fixed: 3081453
2022-01-05 13:16:28 -08:00
Madan Koyyalamudi
37cac8cc9f Release 5.2.1.6N
Release 5.2.1.6N

Change-Id: Ia1c09a982c26972b268b5ca2fe34e12db47a68bb
CRs-Fixed: 774533
2022-01-05 11:29:59 -08:00
Qun Zhang
bcf5bbcfb7 qcacld-3.0: Move SAP from dfs to non-dfs if sta is coming up
Currently STA will fail to start on 5G channel if SAP is up on
dfs channel already. So moving SAP from dfs to non-dfs channel
first to make sure STA connection can happen.

Change-Id: I1761debdd33b0b60755f159d598fd3c9b080ceee
CRs-Fixed: 3103726
2022-01-05 11:29:59 -08:00
Madan Koyyalamudi
acb33111a7 Release 5.2.1.6M
Release 5.2.1.6M

Change-Id: I472d091b70375ddd47920f9ffb4eacab3b482e5c
CRs-Fixed: 774533
2022-01-05 09:02:20 -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
Abhishek Singh
955f7f17ed qcacld-3.0: For SBS-SCC get low 5Ghz freq if 6ghz freq is not allowed
In force SCC logic if 6Ghz freq is not allowed on the SAP interface
get the low 5Ghz freq for SBS scenario as we have 2 5Ghz freqs present
in this case.

Change-Id: I0783e5cf2825ee4f10549826b6dd71677976e6c3
CRs-Fixed: 3103876
2022-01-05 09:02:14 -08:00
Madan Koyyalamudi
b93cd89978 Release 5.2.1.6L
Release 5.2.1.6L

Change-Id: I4700192e8bbaf7d6a0bc8fea50bfacec72905b74
CRs-Fixed: 774533
2022-01-05 05:09:21 -08:00
Jianmin Zhu
57d012b6f3 qcacld-3.0: Send broadcast probe rsp for 6G AP
Certificate 4.70.1_6G need verify that the following conditions are true:
a. APUT responds with a Probe Response frame with the Address 1 field
set to the broadcast address when test bed STA to send Probe Request with
SSID = as per Table 168, Address 1 = wildcard (broadcast).

Change-Id: I44581eaf251b79f47e374d8294616c554a9acf10
CRs-Fixed: 3104288
2022-01-05 05:09:21 -08:00
Madan Koyyalamudi
d12190f945 Release 5.2.1.6K
Release 5.2.1.6K

Change-Id: Ia5bc927fea82548b79e80418464a82e8fe7b6443
CRs-Fixed: 774533
2022-01-04 23:27:00 -08:00
Bapiraju Alla
52ce5baf65 qcacld-3.0: Use link assoc req pointer to generate partner assoc request
Currently to copy the assoc request to partner link assoc request,
qdf_nbuf_clone is used. But qdf_nbuf_clone will just copy the skb
structure but not the original packet. Hence while updating link assoc
request, original assoc request is being updated. As a result ML
security connection is failing.

To resolve this, use qdf_nbuf_copy to copy assoc request to link assoc
request.

Change-Id: Id31d293300ab6471ede4b40a505ebf2495c432b5
CRs-Fixed: 3099473
2022-01-04 23:27:00 -08:00
Madan Koyyalamudi
367e20e4a5 Release 5.2.1.6J
Release 5.2.1.6J

Change-Id: Ib6a536160f3d28234fa6441d98d2c71b751625bd
CRs-Fixed: 774533
2022-01-04 18:56:22 -08:00
Namita Nair
5b2e81cd73 qcacld-3.0: Fix static code analysis issue
In function wma_data_tx_ack_comp_hdlr, wma_handle, which is already
validated by wma_validate_handle, is NULL checked again after
dereferencing. The fix is to remove the irrelevant NULL check.

Change-Id: I9eebdb398e61d2991d0ff8e23cd08870d57707e5
CRs-Fixed: 3096718
2022-01-04 18:56:22 -08:00
Madan Koyyalamudi
9cd24d8458 Release 5.2.1.6I
Release 5.2.1.6I

Change-Id: I7b7f6036297ae9f8adec9f9016e07108b82a2eb4
CRs-Fixed: 774533
2022-01-04 11:40:00 -08:00
Yu Tian
fb5d4a46c4 qcacld-3.0: Stop replenish timer during recovery
During recovery, when this timer is started, there is no
stop operation. If the timer is triggered and SSR is not
completed, it will visit re-inited data structure and lead
kernel crash.

Change-Id: I81b20c1cc9c66efb3f334a17f38613a116aeaf9e
CRs-fixed: 3101872
2022-01-04 11:40:00 -08:00
Jianmin Zhu
683bc95375 qcacld-3.0: Change tx retries unit from msdu to mpdu
Customer reported their HLOS LTE-WLAN transition algo sometimes go wrong
for wrong low layer stats, Txretry delta is bigger than Txtotal delta.
Txretry unit is msdu while Txtotal unit is mpdu.

Add vdev/peer stats for mpdu number of successfully transmitted after
more than one retransmission attempt, to align mpdu tx_packets, tx_failed.

CRs-Fixed: 3102117
Change-Id: Id4b9d8fd81af4bf0c141dad481bfd2b3f6c1db2a
2022-01-04 11:39:55 -08:00
Madan Koyyalamudi
5d66b627a6 Release 5.2.1.6H
Release 5.2.1.6H

Change-Id: Ia622c883626e78c34ff066b4e4d33ebc5a0ecca7
CRs-Fixed: 774533
2022-01-03 22:50:10 -08:00
Jianmin Zhu
2e5a2db4be qcacld-3.0: sta roam failed after sap stopped
When STA+SAP concurrency,  sta roaming pcl will remove all channels of SAP
band except scc channel to avoid mcc.

When SAP stopped, STA roaming pcl isn't updated for wrong vdev id is used,
so can't roam to all channels of old SAP band except scc channel to avoid
mcc.

Change-Id: I35adb55ac155e4c84f858f16796dbec12589ab2f
CRs-Fixed: 3102601
2022-01-03 22:50:10 -08:00
Madan Koyyalamudi
19c3263dbf Release 5.2.1.6G
Release 5.2.1.6G

Change-Id: Icb4a25efe3fef1bfcb53c49c9d6c00734ecbfb8a
CRs-Fixed: 774533
2022-01-03 16:37:34 -08:00
Jianmin Zhu
fc2b30bba0 qcacld-3.0: Don't send probe req when receive beacon miss
Before host received beacon miss, firmware has checked link by sending
QoS NULL data, don't need host send probe request to check now.
Some IoT AP can send probe response after receive probe request, but can't
send beacon sometimes, need disconnect in time too, or firmware will
assert.

Change-Id: I74105769cfbd9f80cdde21bfa7b8c6d75efc4a3a
CRs-Fixed: 3102930
2022-01-03 20:10:40 +08:00
Madan Koyyalamudi
a467ef189e Release 5.2.1.6F
Release 5.2.1.6F

Change-Id: Idb0067f340416d1b942dcf01ef769a91c7af7ffa
CRs-Fixed: 774533
2022-01-03 02:19:36 -08:00
Divyajyothi Goparaju
df5e68bdef qcacld-3.0: Add support to query BMISS stats from fw
Currently there is no support to read bmiss stats from fw.
With this change, add support to read bmiss stats from fw.

Change-Id: I77594d05fbcd295aff4c625ba5f4f33cbc491063
CRs-Fixed: 3097304
2022-01-03 02:19:36 -08:00
Madan Koyyalamudi
dc0102976a Release 5.2.1.6E
Release 5.2.1.6E

Change-Id: I4e6b77bb502d2cf8ee9f13c06b03becb8044cf4d
CRs-Fixed: 774533
2022-01-02 22:57:11 -08:00
Ashish
665d5c5ef5 qcacld-3.0: Prevent runtime suspend on ll_stats and get station requests
Currently when ll_stats or get station request comes and while fw
sends the response of the request, it is possible that driver can go into
runtime suspend state while fw still wants to send few more stats
events. Because of this ll_stats request or station stats request gets
time out in host.

To address above issue, add logic to prevent runtime suspend when
ll_stats or station stats request is received in host driver.

Change-Id: I7704a3b9b3e8ad187677705e1b11fbd82be73cfb
CRs-FixeD: 3096165
2022-01-02 22:57:11 -08:00
Madan Koyyalamudi
fd49fef535 Release 5.2.1.6D
Release 5.2.1.6D

Change-Id: I6d109dbaf48cfc58978c3cbdd220e316db062602
CRs-Fixed: 774533
2021-12-31 02:14:15 -08:00
Yu Wang
4a0857dacd qcacld-3.0: enable CONFIG_DBR_HOLD_LARGE_MEM for QCA6490
Enable CONFIG_DBR_HOLD_LARGE_MEM for QCA6490, to avoid
large memory allocation failure during idle restart.

Change-Id: I8f504f278bab6f4d974e8cf6b778e6c5ab9ec838
CRs-Fixed: 3101976
2021-12-31 02:14:15 -08:00
Madan Koyyalamudi
733cdf936a Release 5.2.1.6C
Release 5.2.1.6C

Change-Id: Id2877af969195c18c4bd4506714449ef4743ebc3
CRs-Fixed: 774533
2021-12-30 12:36:48 -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
Madan Koyyalamudi
24b0cc154c Release 5.2.1.6B
Release 5.2.1.6B

Change-Id: I994b28700b930a655fccbbf21e179da7d77630e7
CRs-Fixed: 774533
2021-12-30 06:36:37 -08:00
Wu Gao
659daa3fb8 qcacld-3.0: Print the last acl mac address
Host won't print acl mac address if size equal to MAX_ACL_MAC_ADDRESS.
The logic is unreasonable and add this change allows to print acl mac
address if size equal to MAX_ACL_MAC_ADDRESS.

Change-Id: Iabf10c7c5584d4217be98f7e1f3e67c94a6096a1
CRs-Fixed: 3100336
2021-12-30 06:36:36 -08:00
Madan Koyyalamudi
8077a0f43b Release 5.2.1.6A
Release 5.2.1.6A

Change-Id: Ifc0ecaea55d6ede1a6fda1995691158a3699c8ae
CRs-Fixed: 774533
2021-12-29 05:36:16 -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
Madan Koyyalamudi
826559d73a Release 5.2.1.6
Release 5.2.1.6

Change-Id: I827e7c820adee235af878fd3c5bb4847d9dc7750
CRs-Fixed: 774533
2021-12-29 04:28:21 -08:00
sandhu
afc4244d94 qcacld-3.0: Remove IP from code
Remove qualcomm IP from code

Change-Id: Icc3f239fbb6874a07272618b1be84d613b8fdc84
CRs-Fixed: 3073862
2021-12-29 04:28:21 -08:00
Madan Koyyalamudi
ca6f804551 Release 5.2.1.5Z
Release 5.2.1.5Z

Change-Id: I2670a4ed342c64f1cecc54b44b9be66f4c50a927
CRs-Fixed: 774533
2021-12-28 10:51:39 -08:00
Tiger Yu
65fcdade4d qcacld-3.0: Enable delayed peer obj freed for qca6174 module
Define the CONFIG_FEATURE_DELAYED_PEER_OBJ_DESTROY to enable delayed
peer obj freed for qca6174 module.

Change-Id: Ia80c3d1abdf0acf9fcc778e6fc77d917cb9f6baf
CRs-Fixed: 3101393
2021-12-28 10:51:39 -08:00
Madan Koyyalamudi
e7703ee4d4 Release 5.2.1.5Y
Release 5.2.1.5Y

Change-Id: Iba3cc81056fae7d7932ce117c3011574df28e4e4
CRs-Fixed: 774533
2021-12-28 08:46:12 -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
Madan Koyyalamudi
a378f4149a Release 5.2.1.5X
Release 5.2.1.5X

Change-Id: I87cb28754932383f06be3cca777c67b5e9d32a7b
CRs-Fixed: 774533
2021-12-28 05:19:17 -08:00
Srinivas Dasari
69b074e9f9 qcacld-3.0: Make default value of ndi_max_support as 2
Currently, the ini param "ndi_max_support" is set to 1 in the
ini definition though DUT can support maximum 2 NDIs.
Customers need to set the ini param to 2 in ini file
in order to support two NDIs. This ini param value needs
to be maintained across chipsets and android versions,
which is difficult.
Change the default value to 2 to avoid these. If any customer
needs the value to be 1, the same can be set in customer/target
specific ini files.

Change-Id: Id45147541dba057c2f3420adee43c7a56e3ee72b
CRs-Fixed: 3097045
2021-12-28 05:19:17 -08:00
Madan Koyyalamudi
ed150e09d1 Release 5.2.1.5W
Release 5.2.1.5W

Change-Id: I59c18220d3f113ba0ff2341fb71234192ce13522
CRs-Fixed: 774533
2021-12-28 04:06:56 -08:00
Jianmin Zhu
b93dab5a6c qcacld-3.0: Fix assert for connect and roaming concurrency
In dual sta case, while vdev0 roaming,  vdev1 tried to connect and
stop vdev0 roam. in lim_process_assoc_rsp_frame,
lim_is_roam_synch_in_progress return false, hdr is parsed as invalid
addr, assert when access hdr->sa.

Change-Id: I917dc064dbca5600fe3586ec08103fa62a1348ee
CRs-Fixed: 3100427
2021-12-28 04:06:56 -08:00
Madan Koyyalamudi
b82cc8dabf Release 5.2.1.5V
Release 5.2.1.5V

Change-Id: If9424ec9104ced1bc07671715cb58fc152f51118
CRs-Fixed: 774533
2021-12-27 23:39:32 -08:00