Commit Graph

21228 Commits

Author SHA1 Message Date
Wu Gao
491fb8246f qcacld-3.0: Disable link layer statistics for GENOA
GENOA FW doesn't support WMI_REQUEST_LINK_STATS_CMDID. So, add this
change to disable link layer statistics for GENOA chip. This change
also fixed compilation issue without WLAN_FEATURE_LINK_LAYER_STATS.

Change-Id: Ib800c9717908767e390ccc234c577a5300f82cf2
CRs-Fixed: 2805832
2020-11-04 05:02:42 -08:00
Zhaoyang Liu
487c52aa53 qcacld-3.0: skip smmu map setup failure during driver probing
If IPA driver is not initialized during kernel boot, wlan driver
would be failed to probe because that smmu map setup failed.
Skip this failure to make sure that wlan driver can load
successfully for basic function.

Change-Id: I1e4554908a1603e4b1fce956b153db87859b4ddd
CRs-Fixed: 2786761
2020-11-04 05:02:38 -08:00
snandini
ae3a337dfd Release 5.2.0.209A
Release 5.2.0.209A

Change-Id: I90f181a492029caf32372a73f56fba72d0e8e806
CRs-Fixed: 774533
2020-11-04 03:00:25 -08:00
Zhaoyang Liu
5dab5f86a7 qcacld-3.0: fix timeout issue when unloading driver with ftm mode
When driver working with FTM mode for qca6174, unloading driver
need send WMI_PDEV_SUSPEND_CMDID to firmware, as firmware has no
code to handle this command for FTM mode, driver will do self recovery
after waiting response timedout. Fix the issue to skip pdev suspend
command with FTM mode for specific target.

Change-Id: I9e6ea6de3e8cb15580ba06e1a1a0c0ac7c3a9253
CRs-Fixed: 2785653
2020-11-04 03:00:25 -08:00
snandini
d07f234c19 Release 5.2.0.209
Release 5.2.0.209

Change-Id: Ifdccbd784840e78b147128de4a554a40fe141459
CRs-Fixed: 774533
2020-11-03 18:59:20 -08:00
Paul Zhang
bb3ac230bd qcacld-3.0: Possible buffer overflow
Fix array index out of bounds issue in function
cds_hang_event_notifier_call.

Change-Id: I19f17e6b53e9be83c63a7aa3c8ac7ed6d0b6e852
CRs-Fixed: 2777774
2020-11-03 18:59:20 -08:00
snandini
aa64383fc3 Release 5.2.0.208Z
Release 5.2.0.208Z

Change-Id: I0364750eb808d3e618a9cee47535a556a50d3609
CRs-Fixed: 774533
2020-11-03 15:30:18 -08:00
Arun Kumar Khandavalli
495df65373 qcacld-3.0: Add the new hang reasons
Add additional hang reason codes to convert in hdd_convert_hang_reason

Change-Id: Ibab7110b64ad9096da48aab9ae31906278120d60
CRS-Fixed: 2803846
2020-11-03 15:30:17 -08:00
snandini
9bf81848e1 Release 5.2.0.208Y
Release 5.2.0.208Y

Change-Id: I5d1be6f226ee819ad1691cea59f5b6f4c91a339a
CRs-Fixed: 774533
2020-11-03 08:35:11 -08:00
Liangwei Dong
23bc217297 qcacld-3.0: Add hdd_objmgr_get_vdev to obj tracing
Add implementation of hdd_objmgr_get_vdev and hdd_objmgr_put_vdev
api for object ref id tracing enabled.
When WLAN_OBJMGR_REF_ID_TRACE enabled, add line and func name to
the two API to record the ref/deref history.

Change-Id: I7c4c52159d4e1b842026b584ff8f25faa47c168c
CRs-Fixed: 2802668
2020-11-03 08:35:10 -08:00
Jianmin Zhu
355722bcae qcacld-3.0: move ini CFG_VENDOR_ROAM_SCORE_ALGORITHM to cmn
Move ini CFG_VENDOR_ROAM_SCORE_ALGORITHM from qcacld-3.0 to qcacmn part.
from qcacld-3.0: mac_ctx->mlme_cfg->roam_scoring
to qcacmn: mlme_psoc_obj->psoc_cfg.score_config.

Change-Id: I318f0d516ce699c061f268116e1cbf79fcc9e23a
CRs-Fixed: 2806090
2020-11-03 08:35:06 -08:00
snandini
a61cf45a7f Release 5.2.0.208X
Release 5.2.0.208X

Change-Id: I30f10ac0779a415e9bac71da79a32ea952b1587c
CRs-Fixed: 774533
2020-11-03 06:23:24 -08:00
sheenam monga
0146ef4dd4 qcacld-3.0: Validate and Update invalid dot11 mode based on band
Currently during get_ch_info dot11 mode is fetched from mlme_cfg
and used to calculate phy mode without any band validation which
may cause errorneous behaviour in below cases due to invalid band
and dot11 mode combination:

a.) Band 2g and dot11 mode 11a
b.) Band 5g and dot11 mode 11g
c.) Band 5g and dot11 mode 11g_only
c.) Band 5g and dot11 mode 11b

Fix is to update modes in case mlme_cfg mode and frequency combination
is invalid.

Change-Id: I6390677cb196ebec3695d73cfe1e67086a67a8c0
CRs-Fixed: 2802679
2020-11-03 06:23:24 -08:00
Ashish Kumar Dhanotiya
24c3b52320 Revert "qcacld-3.0: Change the priority of the deauth and disassoc commands"
This reverts commit "Change-Id: 5859acc0d6938feaf52516fcc5c18f0bdcab14ab".

Above change is not required on this branch as the issue fixed
with above change is not present on this branch.

And because of the above change there is an issue of priority
inversion between disconnect stats and deauth/disassoc commands.
disconnect stats command should always execute before deauth/disassoc
commands so that peer stats can be retrieved before peer gets
deleted. with current implementation where both the commands have
high priority disconnect stats command will execute first if there
is no active command in the active queue else deauth/disassoc
command will be queued before the disconnect stats command and
if there are multiple clients connected to SAP and all gets
disconnect at the same time, disconnect stats command for all
the clients will be there in the serialization queue, because of
which serialization queue gets full and no other command can be
added to serialization queue.

To address above issue change the priority of the deauth/disassoc
commands so that disconnect stats always gets chance to execute
first.

Change-Id: I7041ddfcb195da5a9e203feb5bbb36e645141630
CRs-Fixed: 2808528
2020-11-03 06:23:19 -08:00
snandini
74345e7652 Release 5.2.0.208W
Release 5.2.0.208W

Change-Id: Ib859ee7a76142c31e64002e07fdf1f62a8931cb5
CRs-Fixed: 774533
2020-11-03 03:01:32 -08:00
hqu
e63002e1e5 qcacld-3.0: Remove old rso path code [PART 4]
Since new rso ROAM_OFFLOAD_V1 path is enabled, remove
the old rso path code for hdd/sme/lim related files.

Change-Id: I9bb470cb2af0cc940f9c5dd70942eac0cdd83eb5
CRs-Fixed: 2809268
2020-11-03 03:01:31 -08:00
Rakesh Pillai
0aaa38e4be qcacld-3.0: Skip FISA aggregation for IPSec packets
Currently IPSec packets encapsulated in UDP packets
are aggregated via FISA. This is leading to unwanted
behvaior of certain special packets (hearbeat etc)
being aggregated along with other normal packets of
a flow, thereby leading to use-case disruption.

Fix this by not aggregating IPSec packets.

Change-Id: Ieada556e7e3ef67d2c7a8e8ba4d7197c7660be0c
CRs-Fixed: 2783629
2020-11-03 03:01:26 -08:00
snandini
b42dd7ac72 Release 5.2.0.208V
Release 5.2.0.208V

Change-Id: I39fef04f237e8f1111340adb8108f7c6bafdd278
CRs-Fixed: 774533
2020-11-03 00:55:30 -08:00
hqu
ad188263dd qcacld-3.0: Remove old rso path code [PART 5]
Since new rso ROAM_OFFLOAD_V1 path is enabled, remove
the old rso path code for cm/wmi roam related files.

Change-Id: Iec350f032c3e037204f560199d4a6e258ac02688
CRs-Fixed: 2810145
2020-11-03 00:55:29 -08:00
Jianmin Zhu
0837cb4583 qcacld-3.0: Fix roaming between different PMF option APs failure
Roaming between different PMF option APs has following issues:

1. Roaming between Optional -> Disabled -> Optional
When STA roam to optional, PMF is set to False from STA in reassoc
request and all management pkt not secured.

2. Roaming between Required -> Disabled -> Required
STA not able to find candidate AP when tried to roam to AP with PMF
Required.

Root cause: When LFR3 roam happens,  vdev_crypto_params will be reset
including rsn_caps 11w PMF, if new AP hasn't enabled PMF, vdev rsn_caps
11w PMF is disabled too, and  passed to F/W. Then F/W think DUT STA
doesn'tsupport PMF, then failed to roam to AP with PMF Required and
enabled.

Fix:
Get self-capability of 11w PMF from connected profile and pass to F/W in
WMI_ROAM_SCAN_MODE by wmi_fill_rso_tlvs after roaming.

Move target_if_cm_roam_fill_11w_params to csr_cm_roam_fill_11w_params,
put protocol part to csr connection manager.

Change-Id: I543799385ec8c0ec7afdf64e2310c24758305095
CRs-Fixed: 2807454
2020-11-03 00:55:25 -08:00
snandini
6fe3f4a363 Release 5.2.0.208U
Release 5.2.0.208U

Change-Id: Ic002a99dfb92f096296c0c4fdb7929e4c78ee438
CRs-Fixed: 774533
2020-11-02 22:52:11 -08:00
Min Liu
42339f116a qcacld-3.0: API for Clear Channel Assessment
Add a vendor command to report statistics to userspace
for clear channel assessment.

Change-Id: I5c8ddc14f6661d2af7e4f3a9e1c9c844fd4cd16d
CRs-Fixed: 2773536
2020-11-02 22:52:11 -08:00
snandini
5038ef9614 Release 5.2.0.208T
Release 5.2.0.208T

Change-Id: I78b5d06b981f503b29c8264f51a45b6604c1b11e
CRs-Fixed: 774533
2020-11-02 17:32:32 -08:00
Abdul Muqtadeer Ahmed
5f15db8cf5 qcacld-3.0: Avoid memory leak
Memory is created for the mlme legacy pointer during the create
of the mlme legacy priv object. This allocated memory doesn't get
free when an error condition which leads to device crash.

To avoid this problem memory should be freed before returning from
the error condition.

Change-Id: I8aaaf7bf17cf38f70135e5ff00db429c34aff2d8
CRs-Fixed: 2803896
2020-11-02 17:32:31 -08:00
snandini
f674b145c0 Release 5.2.0.208S
Release 5.2.0.208S

Change-Id: Id788f6f148729f954669b64792fd7bff6ff272d2
CRs-Fixed: 774533
2020-11-02 15:22:06 -08:00
Utkarsh Bhatnagar
7529eea57e qcacld-3.0: Don't fallback to 11ac if peer doesn't support MCS 10&11
In 2.4 Ghz, if peer is advertising MCS10/11 in 11ax and doesn't
support LDPC coding then STA downgrades to 11ac but if AP doesn't
advetise MCS 10&11 and LDPC bit is not supported, then STA treats
LDPC as optional in 11ax and would not downgrade to 11ac from 11ax.

Change-Id: I80b4c6615469c21020ed8d671c2d9ec94bd600b4
CRs-Fixed: 2810347
2020-11-02 15:22:06 -08:00
snandini
2763e843da Release 5.2.0.208R
Release 5.2.0.208R

Change-Id: I9629c10ae1d4f003ebc874b1eeadc9ecddc9af9a
CRs-Fixed: 774533
2020-11-02 08:03:30 -08:00
gaurank kathpalia
4cea7d089e qcacld-3.0: Move HE caps to vdev mlme priv
Move HE caps to vdev mlme priv and remove it from csr session.

Change-Id: I3f68aa66cfd1828dea4e46aff1dd758fbfde4a48
CRs-Fixed: 2809092
2020-11-02 08:03:30 -08:00
Min Liu
0c8a806d02 qcacld-3.0: Use primary channel in OCI
Primary channel should be used in OCI.

Change-Id: I1e92efd5b0348f58bc951dc459e08091737ced9f
CRs-Fixed: 2806607
2020-11-02 08:03:25 -08:00
snandini
f0d15ce146 Release 5.2.0.208Q
Release 5.2.0.208Q

Change-Id: I1c0e27cfcb56684dec597b6333f9af54c6547582
CRs-Fixed: 774533
2020-11-02 05:59:58 -08:00
hqu
41c883d77e qcacld-3.0: Remove old rso path code [PART 3]
Since new rso ROAM_OFFLOAD_V1 path is enabled, remove
the old rso path code for csr related files.

Change-Id: I6527630951ca1c291e027e7ecdb3f9bf4b0a72b3
CRs-Fixed: 2808325
2020-11-02 05:59:57 -08:00
snandini
5103a311a0 Release 5.2.0.208P
Release 5.2.0.208P

Change-Id: I840b9dcda6a66b42da2edd18ed85134ba23dfba4
CRs-Fixed: 774533
2020-11-02 03:54:09 -08:00
Jianmin Zhu
56b37546c6 qcacld-3.0: Handle channel avoidance in AP_AP SCC mode
Steps to reproduce:
1. AP-AP setup on channel 48 in SCC mode.
2. Indicate channel avoid including channel 48.

Observed Results:
Channel avoidance not happened, AP-AP still in channel 48.

Expected Results:
Channel avoidance, AP-AP moved to another safe channel.

Root cause: When channel 48 became unsafe, tried to switch AP1 to safe
channel 36, but failed for AP2 in different channel of same MAC,
wlan_sap_validate_channel_switch return false.

Fix: When CSA for unsafe channel, since get pcl by
policy_mgr_get_pcl_for_vdev_id,  scc channel is considered already,
set force to switch channel as true, ignore more SCC/MCC check by
wlan_sap_validate_channel_switch.

Change-Id: I95544d069e5cf3b289e78592f81e0e6496b72801
CRs-Fixed: 2773925
2020-11-02 03:54:08 -08:00
snandini
a9f69a1c7a Release 5.2.0.208O
Release 5.2.0.208O

Change-Id: I07f82555a0a96a3cef73d37be7266111a9254645
CRs-Fixed: 774533
2020-11-01 23:13:55 -08:00
Jinwei Chen
265468e523 qcacld-3.0: Bypass FISA if reo_destination_indication mismatch
For wow or active offload mode, FW will re-inject some RX frames
to REO with reo_destination_indication 1 (REO2SW1) to REO entrance
ring, but the original reo_destination_indication in RX buffer pkt_tlv
is 6 (REO2FW) or other flow steering value (>=16), then REO2SW ring
mismatch will happen that break FISA function in host.
Bypass FISA if reo_destination_indication mismatch between REO ring
descriptor and pkt TLVS.

Change-Id: I8736b8a96513c2e49fe41fb460f81cb0ef01ed01
CRs-Fixed: 2807461
2020-11-01 23:13:55 -08:00
snandini
2bea2c075d Release 5.2.0.208N
Release 5.2.0.208N

Change-Id: Ifcf725a25586c69f80678823a385c37c990cfad4
CRs-Fixed: 774533
2020-10-30 15:11:42 -07:00
Ashish Kumar Dhanotiya
f7bae329ed qcacld-3.0: Add connect disconnect call to osif for conection manager
Add connect and disconnect function call from hdd to osif for
connection manager to enable the connect and disconnect flow for the
connection manager.

Change-Id: I1504410cd431aedf04b58e93d9eeff34040b32a1
CRs-Fixed: 2804230
2020-10-30 15:11:42 -07:00
snandini
c365b47f87 Release 5.2.0.208M
Release 5.2.0.208M

Change-Id: Ie708084dede7c5679c8177d7b223a238da5df7af
CRs-Fixed: 774533
2020-10-30 13:03:24 -07:00
Kai Liu
52aec7a272 qcacld-3.0: Enhance hang info feature
Use separate hang reason for case that lack of credit after suspend.
Meanwhile add hang buf offset check to avoid overflow.

Change-Id: Ic794d02672cd663598da66b9e75924c41b5ef0e8
CRs-Fixed: 2801343
2020-10-30 13:03:23 -07:00
gaurank kathpalia
e5fb361504 qcacld-3.0: Handle legacy connect request
Handle legacy connect request and create pe_session
for the same.

Change-Id: Ie1e801c42f90d79d613f9d0233ec9a00a2b0d58b
CRs-Fixed: 2808000
2020-10-30 13:03:20 -07:00
Aditya Kodukula
2dc00ea324 qcacld-3.0: Cleanup SAP interface
SAP cannot be turned back on, if SAP is turned off during the
Pre-CAC. Because in __wlan_hdd_del_virtual_intf(), cleanup of SAP
is not done.

To avoid this issue cleanup SAP interface also in this scenario.

Change-Id: I12240c22a2b40c2a1fc8a46ff197023abf36631a
CRs-Fixed: 2803454
2020-10-30 13:03:16 -07:00
snandini
65fbc91406 Release 5.2.0.208L
Release 5.2.0.208L

Change-Id: Ie815d3b22761988fd3470847af82d54a082d3949
CRs-Fixed: 774533
2020-10-30 11:01:44 -07:00
Will Huang
7553cd4a2f qcacld-3.0: Don't touch CAC timer which is not created for offloaded CAC
CAC timer is only created for non-offloaded CAC case, but in some
cleanup functions, CAC timer is stopped/destroyed without checking CAC
offload flag.

Change-Id: If8422afac2389e134769a762aa87cb7969eef9ec
CRs-Fixed: 2807650
2020-10-30 11:01:44 -07:00
Ashish Kumar Dhanotiya
ded421b741 qcacld-3.0: Initialize osif and legacy callbacks for connection manager
Initialize osif callbacks to connection manager and add
legacy callbacks to osif and initialize these legacy callbacks
for connection manager.

Change-Id: I27b3ccf61fdac0ceee938264320feb1331460ba2
CRs-Fixed: 2797475
2020-10-30 11:01:40 -07:00
snandini
87ed50ea1d Release 5.2.0.208K
Release 5.2.0.208K

Change-Id: I2cf465b97d6ccfc9c62dbdb4f369c0945e44e5cf
CRs-Fixed: 774533
2020-10-29 17:50:49 -07:00
hqu
733fabb837 qcacld-3.0: Remove old rso path code [PART 2]
Since new rso ROAM_OFFLOAD_V1 path is enabled, remove
the old rso path code for wma layer related files.

Change-Id: Ie4639a6f04877aa41046706118936560200162a6
CRs-Fixed: 2808064
2020-10-29 17:50:49 -07:00
snandini
936b02c152 Release 5.2.0.208J
Release 5.2.0.208J

Change-Id: I1ecf9700cbe21a1e119037aee2c156801d467ff9
CRs-Fixed: 774533
2020-10-29 15:41:35 -07:00
Vevek Venkatesan
c6e9b184d2 qcacld-3.0: enable pld_smmu_unmap support for icnss2 helium
Enable pld_smmu_unmap support for ICNSS2 Adrestea targets.
This is needed to enable SMMU-S1 geometry support.

Change-Id: I8aa612810cc468269fa5c633276f9b3ba8135542
CRs-Fixed: 2808041
2020-10-29 15:41:35 -07:00
Srikanth Marepalli
a246757854 qcacld-3.0: Fix to have single PMK cache entry in FT roam
In FT roam when the CSR lookup fails then the PMK details from
the roam sync indication will be updated to Session/PMK cache.
This will result in having multiple PMK cache entries for the
same MDID.
This fix is to avoid updating the Session/PMK cache in case of
FT roam and maintain a Single PMK cache that was set during the
set_pmksa.

Change-Id: Ie803a9816dece79c6d71e9963e11c6ec424306eb
CRs-Fixed: 2798720
2020-10-29 15:41:30 -07:00
snandini
5b91e8ebff Release 5.2.0.208I
Release 5.2.0.208I

Change-Id: I5133808fbb6334448892eae4a64e4178d06e729a
CRs-Fixed: 774533
2020-10-29 13:35:56 -07:00