Commit graph

21,135 commits

Author SHA1 Message Date
Abhishek Ambure
824d698f25 qcacld-3.0: Add HW dbs cap info in pm_cinfo
User reads policy manager connection status information via sysfs
entry. Host adds HW mode dbs capability information in pm_cinfo
by checking HW is dbs capable and present HW state is DBS.

Change-Id: I00d83b49dfae41b17341d3758d8ead42ffd602a8
CRs-Fixed: 2795010
2020-11-09 23:35:27 -08:00
snandini
0e3fb97808 Release 2.0.8.3K
Release 2.0.8.3K

Change-Id: I540e8a35d1c4d027617973ed36b7949ee8f1cadb
CRs-Fixed: 774533
2020-11-09 11:26:19 -08:00
Abdul Muqtadeer Ahmed
af6403d14f qcacld-3.0: Add new WMI wakeup reason
Add the new WMI wakeup reason “WOW_REASON_LOCAL_DATA_UC_DROP".

Change-Id: Ibae5d98de8e63b03930837de8ce3062fef319718
CRs-Fixed: 2798184
2020-11-09 11:26:19 -08:00
sheenam monga
489346578f 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-09 00:42:47 -08:00
snandini
ba15ea831e Release 2.0.8.3J
Release 2.0.8.3J

Change-Id: I7c4aa7093292712a9a54b6dc76b232b666b209e6
CRs-Fixed: 774533
2020-11-06 14:04:48 -08:00
Karthik Kantamneni
66b1bab7fe qcacld-3.0: Fix wrong calculation of DP thread stats
In FISA path number of list elements in head nbuf is not updated,
leading to wrong calculation of dp thread stats and packets are dropped.
Update the number of list elements in head nbuf before flush.

During calculation of outstanding packets to be processed
by dp rx thread take rx flushed packets into consideration.

Change-Id: Id96ceee71e035fdbe17f0da4b662c6f848296fbd
CRs-Fixed: 2811001
2020-11-06 14:04:47 -08:00
snandini
967b82900c Release 2.0.8.3I
Release 2.0.8.3I

Change-Id: I08e6dadd67aa426ae35ed73d64ffb7998ee28424
CRs-Fixed: 774533
2020-11-06 12:02:09 -08:00
Min Liu
29544d3eb7 qcacld-3.0: Use primary channel in OCI
Primary channel should be used in OCI.

Change-Id: I1e92efd5b0348f58bc951dc459e08091737ced9f
CRs-Fixed: 2806607
2020-11-06 12:02:09 -08:00
Bapiraju Alla
38bcc40811 qcacld-3.0: Remove unnecessary net_device validation
Currently net_device is being validated inside the
hdd_for_each_adapter_dev_held_safe loop. This is not required as
hdd_for_each_adapter_dev_held_safe will hold the reference for
net_device and prevent it from being deleted. So net_device validation
is not required inside hdd_for_each_adapter_dev_held_safe loop.

Change-Id: Id7e78748b80e7a3bbe50fee43a28fd0d48bd6856
CRs-Fixed: 2812716
2020-11-06 12:02:05 -08:00
snandini
e40af9cc7c Release 2.0.8.3H
Release 2.0.8.3H

Change-Id: I06c071976e4aa220a05ced01400a0a2dc2e1453c
CRs-Fixed: 774533
2020-11-06 10:00:45 -08:00
Abhinav Kumar
4ef1a433c1 qcacld-3.0: Print roam related info in kmsg
The event WMI_ROAM_STATS_EVENTID is received after
every roam, once the roam synch complete is sent by the host.
This event contains details regarding the btm response.

This helps to debug the scenario when roam failure happen.

Print the info received related to roam scan type & roam status
info into kmsg.

Change-Id: Idd688eb4d1e699573fa1e243873c30ffdc5bf96f
CRs-Fixed: 2794555
2020-11-06 10:00:45 -08:00
Srinivas Dasari
20fa7d67af qcacld-3.0: Add 6ghz scan files for compilation
New files are created for 6ghz scan functionality. Add the same
for compilation.

Change-Id: I3f715db50fb5020afea74297794d07ddc5b39913
CRs-Fixed: 2806415
2020-11-06 10:00:41 -08:00
snandini
4441d5e864 Release 2.0.8.3G
Release 2.0.8.3G

Change-Id: Id97dde1ae7de79df3246bd727b72f0749b8e7eae
CRs-Fixed: 774533
2020-11-05 15:49:18 -08:00
Aditya Kodukula
73cd520a77 qcacld-3.0: Add INI param to configure wow-mode logging
Add an INI to configure the wow-mode logging config.

So that,the fw would use this bitmap for logging when it
is in wow mode.

Change-Id: Ib2fbd0c5c9cc573b2f5b12dcdf06682c16550cb2
CRs-Fixed: 2810372
2020-11-05 07:55:26 -08:00
snandini
9e555529fc Release 2.0.8.3F
Release 2.0.8.3F

Change-Id: I2fbf7b1f3d300712c345f146ea54fa285155eca0
CRs-Fixed: 774533
2020-11-05 05:20:01 -08:00
Deeksha Gupta
eebc6512ec qcacld-3.0: Change the vendor attributes name in wake lock stats
Wake lock stats vendor command attribute names
in the driver are different from the attribute
names in upstream qca-vendor.h.

Change the wake lock stats attributes name in driver.

Change-Id: If9dbd46482f2f65758ea90aebdd078c1a30d5bef
CRs-Fixed: 2789539
2020-11-05 05:20:01 -08:00
snandini
12d0972710 Release 2.0.8.3E
Release 2.0.8.3E

Change-Id: Ideff50d502e2f5a86dcab4678d92368aeab65c31
CRs-Fixed: 774533
2020-11-05 00:47:16 -08:00
Abhishek Ambure
5335bfcf45 qcacld-3.0: Do not delete peer if wma peer assoc send fails
As per vdev state machine, host deletes peer while vdev stop response.
If host deletes peer on wma peer assoc req send fail, vdev state machine
stuck at vdev stop and fails to send vdev down to FW. Thus PE session
and vdev ref of WLAN_LEGACY_MAC_ID remains undeleted. Which leads to
ref leak. Hence do not delete peer if peer assoc req send at wma.

Change-Id: Ibc5d6013fa3ecbad1e45ea03b8d27c9010a72008
CRs-Fixed: 2812183
2020-11-04 20:57:35 -08:00
snandini
ff2a000da3 Release 2.0.8.3D
Release 2.0.8.3D

Change-Id: I5a36634ece7cbd1b031895e33533ee92d553499a
CRs-Fixed: 774533
2020-11-04 14:19:01 -08:00
Paul Zhang
2207a90787 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-04 14:19:01 -08:00
snandini
5cc1d13ff9 Release 2.0.8.3C
Release 2.0.8.3C

Change-Id: I07fa80ad1b80912012fa9b2ce6b85aa577694bc1
CRs-Fixed: 774533
2020-11-04 01:17:50 -08:00
Jianmin Zhu
5b0a7812e8 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-04 01:17:50 -08:00
Arun Kumar Khandavalli
58a0220633 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-04 01:17:46 -08:00
Ashish Kumar Dhanotiya
ca166e0f53 Revert "qcacld-3.0: Change the priority of the deauth and disassoc commands"
This reverts commit "Change-Id: 5859acc0d6".

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-04 01:17:41 -08:00
snandini
88b1ace2f7 Release 2.0.8.3B
Release 2.0.8.3B

Change-Id: I5a1871b095da7e678bc3071a48d8278cf994b2ea
CRs-Fixed: 774533
2020-11-03 19:20:09 -08:00
Jianmin Zhu
5555231c56 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 19:20:08 -08:00
snandini
cdc4c814d3 Release 2.0.8.3A
Release 2.0.8.3A

Change-Id: I63d7114fb4fbeb71f008178e5c14a7fcebbd20f6
CRs-Fixed: 774533
2020-11-03 11:28:12 -08:00
Rakesh Pillai
eae11e83a7 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 11:28:12 -08:00
Vevek Venkatesan
1146beddcb 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-11-03 11:28:08 -08:00
snandini
f85573a2bd Release 2.0.8.3
Release 2.0.8.3

Change-Id: I8f32ec0f83b460edd469e3418c23a93213907e88
CRs-Fixed: 774533
2020-11-03 09:28:22 -08:00
Abdul Muqtadeer Ahmed
4b001d974f 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-03 09:28:21 -08:00
snandini
065cf1cbf2 Release 2.0.8.2Z
Release 2.0.8.2Z

Change-Id: I025f92e6ee790bb1d0147af48f3bdd0b73be0c00
CRs-Fixed: 774533
2020-11-03 00:07:40 -08:00
Nirav Shah
45d737659a qcacld-3.0: Handle GRO packets for runtime rx_thread disable
In lithium GRO is not supported with rx_thread
disable. Add similar handling as part of runtime
rx_thread disable.

Change-Id: I897179ecdfd83f8dde7cd997e943ffb276b1afad
CRs-Fixed: 2794023
2020-11-03 00:07:40 -08:00
Subrat Dash
60697f3b92 qcacld-3.0: Enable skip GRO flush logic
Skip GRO flush for low rx throghput.

Change-Id: Ie49a4fc5f7d940f9246392b6b6d248add71cc667
CRs-Fixed: 2789695
2020-11-03 00:07:36 -08:00
Arun Kumar Khandavalli
aa9d9084ea qcacld-3.0: Close/destroy the pdev before CDS closing
Pdev is created once all the modules are enabled and currently
it is freed after the cds close is done, if some of the modules
as part of the de-init sequence has to send a command to the firmware
it will result in error.

To keep the deinit sequence opposite to that of init close/destroy
the pdev before closing the cds.

Change-Id: I8e087a573112e5d2d81e8ea413044d45f228813e
CRs-Fixed: 2797344
2020-11-03 00:07:32 -08:00
snandini
700f87de8d Release 2.0.8.2Y
Release 2.0.8.2Y

Change-Id: I31052f6a6f144d88eee14211f72caca70806aae3
CRs-Fixed: 774533
2020-11-02 17:38:34 -08:00
Kai Liu
7c45c7d1fb 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-11-02 17:38:34 -08:00
snandini
ca157918df Release 2.0.8.2X
Release 2.0.8.2X

Change-Id: Ia180334bb2ea876508fbe8ccc3acaa9bc432a34d
CRs-Fixed: 774533
2020-11-02 15:18:38 -08:00
Jinwei Chen
20985867e3 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-02 15:18:38 -08:00
snandini
c9b339c5b5 Release 2.0.8.2W
Release 2.0.8.2W

Change-Id: I1c57bef33cd364d8d5dfe57a06ccc9e0e2e64576
CRs-Fixed: 774533
2020-11-02 13:26:39 -08:00
Rakesh Pillai
64522cfa38 qcacld-3.0: Use reo dst indication in CMEM based HW FT entry
Currently we configure the REO ID in the HW FST entry,
which is later used by HW to route the packets matching
this particular flow.

Such a kind of configuration can lead to incorrect
routing of packets incase the RX path mapping is
changed (eg when IPA is enabled).

Hence to fix this issue, use the reo destination
indication which is received in the first packet of
the new flow in the HW FST entry.

Change-Id: Ide230dcfb07862b3921aeb02d83ad7c30cb284c2
CRs-Fixed: 2803828
2020-11-02 05:04:18 -08:00
snandini
d84194cd84 Release 2.0.8.2V
Release 2.0.8.2V

Change-Id: I88ddcd1453fe90ce41ac903986c251dcaa95c52a
CRs-Fixed: 774533
2020-11-02 01:57:05 -08:00
Abhishek Ambure
8108d23ca1 qcacld-3.0: Add support to send QCA connect fail reason code
User requests for last disconnect reason code using
QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. Host replies with
connect fail reason codes from enum qca_sta_connect_fail_reason_codes using
QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE attribute, If
last connection attempt failed.

Change-Id: I723a9dcf025bb58fa524cbf16f16a7dcea8bd5b6
CRs-Fixed: 2799227
2020-10-31 07:56:18 -07:00
snandini
b616036dca Release 2.0.8.2U
Release 2.0.8.2U

Change-Id: Ib737856de8c2b069c8bdbc787284f1b4cbe81545
CRs-Fixed: 774533
2020-10-31 06:27:10 -07:00
Alan Chen
c2dfe6521a qcacld-3.0: Add support for unit test command in FTM mode
FTM mode does not create vdev. So in order to add support for the
unit test command in FTM mode, set vdev of the adapter to 0 and create
a new funciton that handles the command called in FTM mode and does
not check for a valid vdev.

Change-Id: I5b71765dc4c6eb8025aa60726e4105f8ff30f634
CRs-Fixed: 2805415
2020-10-31 06:27:10 -07:00
snandini
d1158913bf Release 2.0.8.2T
Release 2.0.8.2T

Change-Id: Ifd7f71f16218bb66a22cc1272d1a7dd9727f7a7d
CRs-Fixed: 774533
2020-10-30 17:58:22 -07:00
Aditya Kodukula
ba50bf6928 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 17:58:22 -07:00
snandini
52997e159a Release 2.0.8.2S
Release 2.0.8.2S

Change-Id: I60241e88f4180e50831289a5abccc15046e319f4
CRs-Fixed: 774533
2020-10-30 16:03:03 -07:00
Will Huang
a546fb7dd2 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 16:03:02 -07:00
snandini
74015c2317 Release 2.0.8.2R
Release 2.0.8.2R

Change-Id: I89c8a840a96a55aafc295b4f3c081b5e5812d816
CRs-Fixed: 774533
2020-10-30 05:24:19 -07:00