Commit graph

21,112 commits

Author SHA1 Message Date
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
Srikanth Marepalli
daad108fa3 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-30 00:57:52 -07:00
Srikanth Marepalli
9b3dfb15cc qcacld-3.0: Fix to avoid sending invalid PMKID in FT-SuiteB roam
In FT-SuiteB when STA connects to AP1 then PMK1 gets cached. And
then STA disconnects from AP1 and connects to AP2 then PMK2
gets cached. Now if STA roams to AP1 then FW uses PMK2 from mlme
session to create the PMKID. But the corresponding RSO command
from driver sends the PMK1 to FW and the same gets updated in
mlme session of FW. This results in failure of next roams, as the
invalid PMKID gets created using PMK1.
This fix helps in deleting the old/stale PMK cache entries that
are under the same mobility domain as of the newly added entry in
case of all the FT connections except FT-SAE.

Change-Id: Id960e955f8669e19e950c1edc38a9f0a715292b7
CRs-Fixed: 2798713
2020-10-30 00:57:40 -07:00
Srikanth Marepalli
7a976c29e3 qcacld-3.0: Fix to avoid sending invalid PMKID in FT-SAE roam
In FT-SAE when STA connects to AP1 then PMK1 gets cached. And
then STA disconnects from AP1 and connects to AP2 then PMK2
gets cached. Now if STA roams to AP1 then FW uses PMK2 from mlme
session to create the PMKID. But the corresponding RSO command
from driver sends the PMK1 to FW and the same gets updated in
mlme session of FW. This results in failure of next roams, as the
invalid PMKID gets created using PMK1.
This fix helps in deleting the old/stale PMK cache entries that
are under the same mobility domain as of the newly added entry in
case of the FT-SAE connection.

Change-Id: If71b22dbf9200b820c8dd8c9fd0183af5bfcb0f6
CRs-Fixed: 2740532
2020-10-30 00:57:26 -07:00
snandini
7f0804e5d6 Release 2.0.8.2Q
Release 2.0.8.2Q

Change-Id: Ic340e776cc872317de277ecb5be4ccce1e58cf1e
CRs-Fixed: 774533
2020-10-29 23:01:47 -07:00
Paul Zhang
bab8a8c623 qcacld-3.0: Avoid race about roam to invalid channel
Currently, when channel list is changed. It updates
the channel list to fw first and then disconnect the
sta. This causes race condition to roam to invalid
channel.

To resolve this, disconnect the sta and then update
channel list.

Change-Id: I12d8098ee6acececc8a574d2b15f5c4774c07936
CRs-Fixed: 2806706
2020-10-29 19:46:11 -07:00
snandini
c4a48b68ee Release 2.0.8.2P
Release 2.0.8.2P

Change-Id: I18db64553a305f704d2728a79be054b0f89d1864
CRs-Fixed: 774533
2020-10-29 18:27:44 -07:00
Gururaj Pandurangi
9d9998c392 qcacld-3.0: Add action OUI to disable TWT for some APs
Add a new action OUI to disable TWT for certain APs.
The cfg item will be present in the host and sent to
the FW to disable TWT.

Change-Id: I122c44993a9102838dec7e9eb2817ba404a76515
CRs-Fixed: 2793124
2020-10-29 13:18:17 -07:00
snandini
368f882ff9 Release 2.0.8.2O
Release 2.0.8.2O

Change-Id: I90f90945d59a3f5e08a18304a2a9d8d4762fc418
CRs-Fixed: 774533
2020-10-29 08:58:13 -07:00
Abhishek Ambure
2af71e59bd qcacld-3.0: Update correct value of RoamKeyMgmtOffloadEnabled
Presently RoamKeyMgmtOffloadEnabled flag in roam req_buf gets set from
csr session, which gets set only if user sends vendor command to set key
management i.e. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY.
Thus if user doesn't send QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY
vendor command, then host fails to sets ROAM_OFFLOAD_OKC_ENABLED &
PMK_CACHE_ENABLED flags in RSO command. This leads to failure of single
PMK cache roaming. Hence update correct value of RoamKeyMgmtOffloadEnabled
from mlme object.

Change-Id: I34099b4651ca179bb86ca24581526e161d2bf503
CRs-Fixed: 2802124
2020-10-29 08:58:12 -07:00
snandini
df65dc896e Release 2.0.8.2N
Release 2.0.8.2N

Change-Id: Ia47f1e48e3a460464640e4f2f7ee997b1718e3cf
CRs-Fixed: 774533
2020-10-29 05:29:21 -07:00
Abhishek Singh
a2705649c9 qcacld-3.0: Remove inactive connection manager code
Remove inactive connection manager code.

Change-Id: I0a3ae1e67916bd0215d8f783b37688450f410681
CRs-Fixed: 2807911
2020-10-29 05:29:21 -07:00
snandini
60b15a56fd Release 2.0.8.2M
Release 2.0.8.2M

Change-Id: I6a59744128869f7731e0068b76067751ddded16f
CRs-Fixed: 774533
2020-10-29 01:32:18 -07:00
Paul Zhang
a59c8be288 qcacld-3.0: Add default roam scan triggers
When resetting roam trigger bitmap, it is missing triggers
such as QCA_ROAM_TRIGGER_REASON_IDLE,
QCA_ROAM_TRIGGER_REASON_DEAUTH etc.

Change-Id: I57b2b5c251202094b1afe65e0b4af39dc69f75e1
CRs-Fixed: 2805011
2020-10-28 19:03:51 -07:00
snandini
7faa87d5d7 Release 2.0.8.2L
Release 2.0.8.2L

Change-Id: I8d75ee78a2c2d85a1cc8c64d6b67f643f148ecfb
CRs-Fixed: 774533
2020-10-28 18:16:24 -07:00
Bapiraju Alla
b034e12a38 qcacld-3.0: Don't start monitor mode if monitor interface is already up
Currently, interface status is not being checked to start monitor mode.
This is allowing to start monitor mode more than once for the same
interface. This will result in session leak during de-init.

To avoid this, start monitor mode only if the interface is not already up.

Change-Id: I118167d3a8cea52fbfa825b226b837087828f148
CRs-fixed: 2803090
2020-10-28 18:16:23 -07:00
snandini
2cc1ff4110 Release 2.0.8.2K
Release 2.0.8.2K

Change-Id: Ica6dfc1ec7be862f3fd7b3d9537da631cb3b42ef
CRs-Fixed: 774533
2020-10-28 13:11:13 -07:00
Yu Tian
425ecb19f7 qcacld-3.0: Change BAR frame ctrl and sequence format
BAR frame is parsed incorrectly, change to correct format

Change-Id: I399d6be49834229bba5f8eccf71f4002d2d48e16
CRs-Fixed: 2804140
2020-10-28 13:11:13 -07:00
snandini
d47823a529 Release 2.0.8.2J
Release 2.0.8.2J

Change-Id: I2100fe8d752aa998e74443bb452f6193e3c919a6
CRs-Fixed: 774533
2020-10-28 11:59:29 -07:00
Bapiraju Alla
a143d3e5e2 qcacld-3.0: Fix ll_stats request in progress flag updation
Currently, LL stats in-progress flag is being set first and not getting
reset when peer is invalid. Because of this station stats sent by the
fw are ignored in the host since cp stats request pending is not set.
Also ll_stats request is not being rejected if previous ll_stats
request is in-progress.

To resolve this, update ll_stats request in progress flag after sanity
check for the peer and ignore the new ll_stats request command if the
previous ll_stats request is in progress.

Change-Id: I205502f8c34b51c396859d5ff3ed247e639eea99
CRs-Fixed: 2803032
2020-10-28 03:15:58 -07:00
snandini
9abf45e982 Release 2.0.8.2I
Release 2.0.8.2I

Change-Id: I056173a48c72a794be93501cdd35c155f91cae6e
CRs-Fixed: 774533
2020-10-27 23:28:17 -07:00
Amruta Kulkarni
43dd1a52ed qcacld-3.0: Use converged api's for roaming
In Interface manager, legacy roaming api's were used as roaming testing
was ongoing.Now testing is done so use converged roaming api's.
This will also resolve the KW warnings.

Change-Id: I9ef101e6ec02bb18c6f2f9a9fbdaa81dbe81f9a0
CRs-Fixed: 2798601
2020-10-27 16:33:20 -07:00
snandini
7bbfb05910 Release 2.0.8.2H
Release 2.0.8.2H

Change-Id: I24d419c0ab3d83a57e4d06c260f10aea7b568595
CRs-Fixed: 774533
2020-10-27 13:17:22 -07:00
Rajeev Kumar
6c97908d7f qcacld-3.0: Log packet length as part of page fault reason logging
Log packet length as part of page fault reason logging to know
how many bytes of data is filled by target.

Change-Id: I3426361d555ec195446348df9740900aa97b4604
CRs-Fixed: 2801605
2020-10-27 13:17:22 -07:00