Commit graph

22,024 commits

Author SHA1 Message Date
Madan Koyyalamudi
a73416f6c6 Release 2.0.8.16M
Release 2.0.8.16M

Change-Id: I354971041044a6eba4bc4b01c82e987223e4d9af
CRs-Fixed: 774533
2021-05-06 03:03:59 -07:00
abhinav kumar
45603527e7 qcacld-3.0: Update pmk cache entry for roamed AP
qcacld-3.0: Update pmk cache entry for roamed AP

Consider two APs: AP1, AP2
Both APs configured with EAP 802.1x security mode
and OKC is enabled in both APs by default. Initially
DUT successfully associated with AP1, and generated
PMK1 by performing full EAP and added an entry for AP1
in pmk table. At this stage, pmk table has only one
entry for PMK1 (1. AP1-->PMK1).

Now DUT roams to AP2 using PMK1 (as OKC is enabled)
but session timeout happens on AP2 just before 4 way
handshake completion in FW. At this point of time DUT not
in authenticated state. Due to this DUT performs full EAP
with AP2 and generates PMK2. As there is no previous
entry of AP2 (AP2-->PMK1) in pmk table. When host gets
pmk delete command for BSSID of AP2, the BSSID match
fails. Hence host will not delete pmk entry of AP1 as well.

At this point of time, the PMK table has two entry
1. AP1-->PMK1 and 2. AP2 --> PMK2.

Ideally, if OKC is enabled then whenever timeout occurs in
a mobility domain, then the driver should clear all APs
cache entries related to that domain but as the BSSID
doesn't exist yet in the driver cache there is no way of
clearing the cache entries, without disturbing the legacy
roaming. Now security profile for both APs changed to FT-RSN.
DUT first disassociate with AP2 and successfully associated
with AP2 and perform full EAP and generates PMK3. DUT first
deletes PMK entry for AP2 and then adds a new entry for AP2.

At this point of time pmk table has two entry AP2--> PMK3
and AP1-->PMK1. Now DUT roamed to AP1 using
PMK3 but sends stale entry of AP1 (PMK1) to fw via RSO
command. This override PMK for both APs with PMK1
(as FW uses mlme session PMK for both APs in case of FT
roaming) and next time when FW try to roam to AP2 using
PMK1, AP2 rejects PMK1 (As AP2 is expecting PMK3) and
initiates full EAP with AP2, which is wrong.

Fix is to update pmk table entry for roamed AP1 with PMK3 value
comes to host via roam sync indication event.. By this host
override stale entry (if any) with the latest valid pmk for
that AP at a point of time.

Also add new api to get the sae single pmk ini value and
update the bss desc of single_pmk cap after intersecting the ini
value.

Change-Id: I12fecbae69d0d2a11f2a39eee6be960752d831bd
CRs-Fixed: 2889847
2021-05-06 03:03:59 -07:00
Gururaj Pandurangi
527074d526 qcacld-3.0: Fix Link tx power updation for RRM
Update Link tx power with TPC power calculated in lim_calculate_tpc
everytime a radio measurement request is received.

Change-Id: Ie564fd13b071f0265c2a5c80088d5550e07395b3
CRs-Fixed: 2938684
2021-05-06 03:03:55 -07:00
Vulupala Shashank Reddy
c4e3177ed0 qcacld-3.0: Fix data rate in mgmt rx packets in packet capture mode
Currently the rate, ofdm and cck flags are filled to support only
legacy rates.To support other rates too, fill ofdm and cck flags
based on phymode and fill rate in terms of 500 Kbps in tx status.

Change-Id: I972919ebd2cbd19a1b55af0324e481fada7f12cd
CRs-Fixed: 2917079
2021-05-06 03:03:51 -07:00
Madan Koyyalamudi
b558baa733 Release 2.0.8.16L
Release 2.0.8.16L

Change-Id: If73f105d1d17b19249186609a170e6277db3177b
CRs-Fixed: 774533
2021-05-06 01:12:00 -07:00
Vulupala Shashank Reddy
6b57dc6b17 qcacld-3.0: Refactor the code related to packet capture header
Refactor the code to replace htt tx data header with packet capture
header. So that we can add extra parameters in packet capture
header to send required data to packet capture callback function.

Change-Id: I863c63b925d1cd8ba5a8a7f0bc08ee3cd2acb96b
CRs-Fixed: 2916795
2021-05-06 01:12:00 -07:00
Vulupala Shashank Reddy
8bfe204c4a qcacld-3.0: Fill timestamp for Mgmt tx packets for packet capture
Currently in packet capture mode for tx mgmt packets tsf_delta
filled in tsf timeestamp, which is incorrect.

So, fill tsf timestamp in Mgmt tx packets for packet capture.

Change-Id: I90da072ee6d7e0f7a9b6271086e163a71208b7f5
CRs-Fixed: 2916982
2021-05-06 01:11:55 -07:00
Vulupala Shashank Reddy
5e6bc10b53 qcacld-3.0: Fill timestamp for packet capture rx data packets
For rx data packets in packet capture mode fill timestamp
from msdu start.

Change-Id: Iebbdcf303e67369f855d5cf3514df0e03e38dedd
CRs-Fixed: 2917013
2021-05-06 01:11:46 -07:00
Madan Koyyalamudi
c11ed3024d Release 2.0.8.16K
Release 2.0.8.16K

Change-Id: Id59f62d89139e0dc520dcfefa935282bea6c7a99
CRs-Fixed: 774533
2021-05-05 16:21:55 -07:00
Lincoln Tran
4d1dd6e78c qcacld-3.0: Add path to skip TPE IE in TX power calc
When calculating the TX power, add a path to not consider the TPE IE
values in case of 2G/5G bands. If device is operating in 6G band,
include the TPE IE regardless of INI configuration.

Change-Id: If829318319e9b799c75a59ce3beed39bae5bffa2
CRs-fixed: 2936487
2021-05-05 16:21:55 -07:00
Lincoln Tran
64dfa5b5a9 qcacld-3.0: Add INI to not consider TPE IE
Sometimes, the AP sends low values in the TPE IE resulting in low TX
power. This causes DUT to have throughput/connection issues. Add an INI
to skip over TPE IE only in 2g/5g case. TPE IE will always be considered
in 6G band.

Change-Id: Ia0750195bb0aabf304743e1ad89c8f6d0c9ef1a3
CRs-fixed: 2936492
2021-05-05 16:21:49 -07:00
Madan Koyyalamudi
86ed12b640 Release 2.0.8.16J
Release 2.0.8.16J

Change-Id: I7282af4bbd728935d143ad76a9f92f07cede0e61
CRs-Fixed: 774533
2021-05-05 14:34:19 -07:00
Pragaspathi Thilagaraj
5906816563 qcacld-3.0: Increment peer count in LFR-2.0 roaming case
In LFR-2.0 roaming case, wma_add_peer() is called which
sends the peer create command to firmware, but in the
caller peer count is not incremented in success case.
This leads to peer deletion failure during disconnection.

Increment peer count in LFR-2.0 roaming case.

Change-Id: I0b17217615e104fe93f622555f04c6a85e279d6d
CRs-Fixed: 2929615
2021-05-05 18:40:20 +05:30
Pragaspathi Thilagaraj
23e7bc4a65 qcacld-3.0: Fix sending vdev start again during LFR-2.0 roaming
Currently peer create response support is added for connect path
but in LFR-2.0 case also peer create response received is
processed and lim_post_join_set_link_state_callback() is called
leading to sending vdev start again.
Call the API to fill peer create wma request only for initial
connection.

Change-Id: I24140efd5541f7ed4aa3cef9efebf5a729846902
CRs-Fixed: 2856636
2021-05-05 03:03:14 -07:00
Madan Koyyalamudi
00497f1f3c Release 2.0.8.16I
Release 2.0.8.16I

Change-Id: Ie9548b9798d393ee9132564569ae2bdabb50acd3
CRs-Fixed: 774533
2021-05-05 01:00:08 -07:00
Yeshwanth Sriram Guntuka
32ed81c857 qcacld-3.0: Mark rx/fisa history prealloc as non-critical
Mark rx and fisa history related allocations as non
critical for prealloc. This will ensure that prealloc
init can continue when memory alloc fails for the above
as these are only for debug purposes.

Change-Id: I94fc5c35a3a7a5dae3a4c97cf4ceca4eee7372ca
CRs-Fixed: 2936359
2021-05-05 01:00:07 -07:00
Madan Koyyalamudi
09238d6d51 Release 2.0.8.16H
Release 2.0.8.16H

Change-Id: I4ff6a54cbc3f8c92b0439a78fa7bf7a651c5cb35
CRs-Fixed: 774533
2021-05-04 23:23:37 -07:00
Gururaj Pandurangi
a3d0935690 qcacld-3.0: Update Link tx power for RRM scenario
Update Link tx power with TPC power calculated in lim for
RRM scenario. In the legacy case (old FW), Link tx power
was calculated using lim_get_max_tx_power where as for
new FW, we get the power value from lim_calculate_tpc.

Change-Id: Id97f0cad00572180e3436142df9cf95e6d270d12
CRs-Fixed: 2937763
2021-05-04 23:23:36 -07:00
Madan Koyyalamudi
6d7aabfc35 Release 2.0.8.16G
Release 2.0.8.16G

Change-Id: Id54277bc943055dbdfa70a4a9d75d3be92b5d220
CRs-Fixed: 774533
2021-05-04 15:41:24 -07:00
Lincoln Tran
e99d08060b qcacld-3.0: Set AP power mode back to LPI
When starting SAP, the AP power type is decided based on certain
conditions. After turning off the SAP, the power type is no longer
valid, so reset it back to default.

Change-Id: I472da2e02b58017dab4855fc83cd4e15b24b7b08
CRs-fixed: 2934622
2021-05-04 15:41:24 -07:00
Madan Koyyalamudi
f9264f6d82 Release 2.0.8.16F
Release 2.0.8.16F

Change-Id: I63ad0963f670db44f9fbe4613d16193c5b6092d4
CRs-Fixed: 774533
2021-05-04 10:53:39 -07:00
Yeshwanth Sriram Guntuka
19acf9243c qcacld-3.0: Allocate memory for fisa pkt history separately
Fisa packet history is around 6KB for each sw fisa
flow entry and this is part of the dp_fisa_rx_sw_ft
structure. The total size of the SW FT as a result is
around 830KB and the higher order memory allocation via
kzalloc for this could fail in low/fragmented memory
scenarios.

Fix is to allocate memory for FISA pkt history separately
and attach it to the SW FT entry.

Change-Id: I7296d7269c1b86ec38ea1668e8a0893335bbdb6f
CRs-Fixed: 2934487
2021-05-04 10:53:39 -07:00
Madan Koyyalamudi
f5180cdf16 Release 2.0.8.16E
Release 2.0.8.16E

Change-Id: I83944dd2336102f6becc4f8591e546c0a998f39c
CRs-Fixed: 774533
2021-05-04 05:31:26 -07:00
Karthik Kantamneni
afed3d0c36 qcacld-3.0: Add rx refill ring history to pre-alloc memory
Add entries to pre-allocate memory region for
recording datapath rx refill ring history.

Change-Id: Icbb6d59b834ea7b8957406e68be72bf3072389bf
CRs-Fixed: 2930011
2021-05-04 05:31:25 -07:00
Madan Koyyalamudi
ac7d7a71e1 Release 2.0.8.16D
Release 2.0.8.16D

Change-Id: I015415ca3e1d150c0fa4741af71fde412501406f
CRs-Fixed: 774533
2021-05-03 19:52:07 -07:00
Yu Tian
ba0f7d0b3e qcacld-3.0: revert TDLS pkt statistics changes
TDLS pkts statistics API cost 10% CPU cycle of whole RX
thread. It's optimized in another change from TDLS team to
remove excessive lock/unlock. So original change is not needed.

Change-Id: Ica1dd6bf8a94a4bef6045b07228bd547aeda3a00
CRs-Fixed: 2930306
2021-05-03 19:52:06 -07:00
Madan Koyyalamudi
345a2cee70 Release 2.0.8.16C
Release 2.0.8.16C

Change-Id: I37ebcda61168eede383bf3df82d669f99eb25d3d
CRs-Fixed: 774533
2021-05-03 15:04:30 -07:00
Gururaj Pandurangi
1b240dbf64 qcacld-3.0: Add country IE check to determine STA's power type for 6G
If STA Country Code is US and if AP Country IE has a different
county code, STA should not allow connection to this AP as VLP
mode is not implemented yet in the US.
If STA Country Code is GB and if AP Country IE has a different
county code, STA will use VLP mode.

Change-Id: I7d247ae9fc83d7b578b01ec664247c807f7834fc
CRs-Fixed: 2933632
2021-05-03 15:04:29 -07:00
Pragaspathi Thilagaraj
7ab4e8a172 qcacld-3.0: Reject TWT commands while scan is in progress
Reject the below TWT commands while scan is in progress:
1. TWT setup
2. TWT pause
3. TWT resume
4. TWT Nudge

Also convert the wmi status code for scan in progress
to vendor status.

Change-Id: I2b5c2cdd23a3172913e122b5c8fd04f4bb5c3e1e
CRs-Fixed: 2923282
2021-05-03 15:04:24 -07:00
Madan Koyyalamudi
7842e35770 Release 2.0.8.16B
Release 2.0.8.16B

Change-Id: I1404fb063a5dc0d5ab8634a023eb628c724a11af
CRs-Fixed: 774533
2021-04-30 23:13:22 -07:00
Alan Chen
f99022aafb qcacld-3.0: Add a missing policy attribute for set_wifi_config
set_wifi_config vendor command is missing the policy configuration
for the OPTIMIZED_POWER_MANAGEMENT attribute. Thus, add the attribute
to set_wifi_config's policy table.

Change-Id: Ia4d205ceea59a1d557bd646ff064ff340066c12a
CRs-Fixed: 2933377
2021-04-30 23:13:22 -07:00
Madan Koyyalamudi
fc08ce21b9 Release 2.0.8.16A
Release 2.0.8.16A

Change-Id: I8a185f0f369630fb873c92e9c5d89feb9beb6b2d
CRs-Fixed: 774533
2021-04-30 17:33:40 -07:00
Nisha Menon
886fc60f9a qcacld-3.0: Stop BW monitoring before disabling IPA pipes
Stop the BW monitoring and stats collection for IPA before
disabling the pipes. Add this to the the case where WLAN
is in SSR and IPA pipes are being disabled when last client
is disconnecting.

Change-Id: I29e8ec6d73287cf601f829e74ba03aa611564d3a
CRs-Fixed: 2922079
2021-04-30 17:33:39 -07:00
Madan Koyyalamudi
8150e531fa Release 2.0.8.16
Release 2.0.8.16

Change-Id: I2aea725cd20fb9d31ff7f1ccd4df5b72c0b1b871
CRs-Fixed: 774533
2021-04-30 12:53:35 -07:00
Yeshwanth Sriram Guntuka
30990afbc3 qcacld-3.0: Enable IPA set/reset tx doorbell paddr feature for MSL
Enable set/reset tx doorbell paddr feature for Moselle.

Change-Id: I5e3fbf7a2afcadb455732e6ad53f36a1e3760c89
CRs-Fixed: 2933285
2021-04-30 12:53:34 -07:00
Madan Koyyalamudi
9860d4698e Release 2.0.8.15Z
Release 2.0.8.15Z

Change-Id: I316690e03a571209557fc7b1a2cfb59325a53584
CRs-Fixed: 774533
2021-04-30 08:15:55 -07:00
Abhishek Ambure
25701b0bd3 qcacld-3.0: Allow MCC if STA ch is non-preferred and sap ACS 1-11
If STA is present on non-preferred channel i.e. 12, 13, 14 and SAP
ACS channel list is 1-11 then MCC is preferable as SAP don't want
to come up on non-preferable channel.

Change-Id: I82bd707c26258e0bf0b7cc14657185d11f56f757
CRs-Fixed: 2922824
2021-04-30 08:15:55 -07:00
Yeshwanth Sriram Guntuka
a5f19a851e qcacld-3.0: Enable TX_AGGREGATION_SIZE_ENABLE for HST
Tx MPDU aggregation is not happening in HE80 11ax connection
resulting in low throughput for HST.

Fix is to enable TX_AGGREGATION_SIZE_ENABLE for HST.

Change-Id: Ieca8464991a6a194d6f02b70fe4972aca288b541
CRs-Fixed: 2925514
2021-04-30 08:15:50 -07:00
Madan Koyyalamudi
5a327817c5 Release 2.0.8.15Y
Release 2.0.8.15Y

Change-Id: If68b6d6da5fe4f60ace15b48b9d19afc72d1f62a
CRs-Fixed: 774533
2021-04-29 23:19:58 -07:00
Jianmin Zhu
41ed5d8324 qcacld-3.0: Fix No AMSDU/MPDU aggregation issue
Host need set tx_aggr_size_disable bit when host tx aggregation is
unsupported.

Change-Id: I0c86e74f6447f401d24660e1291abf969b1abbe6
CRs-Fixed: 2931245
2021-04-29 18:49:33 -07:00
Madan Koyyalamudi
be125e3b7f Release 2.0.8.15X
Release 2.0.8.15X

Change-Id: I7db30d1c67341e4c8f86d8ab2fd8f20528ce0bec
CRs-Fixed: 774533
2021-04-29 16:23:42 -07:00
Lincoln Tran
54e9c50c02 qcacld-3.0: Only send VHT TX_BF if FW supports it
Only send the VHT TX beamforming capability if firmware has set the
support bit. This helps ensure backward compatibility for older
products.

Change-Id: Ia5830c9f378e3f0ddc83c8019d5168a270ad6f69
CRs-fixed: 2933687
2021-04-29 16:23:42 -07:00
Madan Koyyalamudi
54f1508fd2 Release 2.0.8.15W
Release 2.0.8.15W

Change-Id: I86f1c9b9801a37f46179aa56951ab3a339092917
CRs-Fixed: 774533
2021-04-29 10:20:59 -07:00
Srinivas Dasari
9b2dc8a42f qcacld-3.0: Enable SAE authentication for P2P
Enable SAE authentication for P2P. This allows to process and
forward the SAE auth frames to userspace in P2P_CLI and
P2P_GO modes.

Change-Id: I210f6b3db4d4d0a39f1dcb7f136ec9ac7e4c34c4
CRs-Fixed: 2933379
2021-04-29 12:48:30 +05:30
Madan Koyyalamudi
ff0aa70e37 Release 2.0.8.15V
Release 2.0.8.15V

Change-Id: I68d2b1550811694e9b6d9377f0fac0ad6bfb13a4
CRs-Fixed: 774533
2021-04-28 13:23:45 -07:00
Lincoln Tran
af8d076163 qcacld-3.0: Fix call to get vdev mlme obj
In the validate beacon interval logic, there are a few calls to get the
vdev MLME object from the interface manager component. However,
the component does not have a vdev object, so get it from the MLME
component instead.

Change-Id: I7333edeb6f1f0d5669605fe9e3d4fb10745d1fa4
CRs-fixed: 2928798
2021-04-28 13:23:45 -07:00
Lincoln Tran
ff09775985 qcacld-3.0: Migrate validate beacon interval API
Move the beacon interval validation logic from the CSR module to the
interface manager module.
Add a path to send events to the SAP event handler from the MLME
module.

Change-Id: Ia86f219b3f209b53e7818a80f95b2c0555550736
CRs-fixed: 2796676
2021-04-28 13:23:41 -07:00
Utkarsh Bhatnagar
47b3a1d166 qcacld-3.0: Handle TDLS peer count logic for SSR scenario
Always decrement tdls_soc_obj->set_state_info.set_state_cnt
in case TDLS is disconnected due to STA disconnection
triggered as part of SSR.

If it is not, then for SSR, after the system restarts,
this count is used and can be interpreted as second
tdls connection.
Currently, multiple tdls links are not supported, so
TDLS set state CMD (WMI_TDLS_SET_STATE_CMDID) won't be
sent to fw, although peer create and peer assoc will
go to firmware which results in crash.

Change-Id: Ib764cd04a04fab237840cdffafa9752fbe202418
CRs-Fixed: 2931199
2021-04-28 13:23:37 -07:00
Madan Koyyalamudi
3475a6e896 Release 2.0.8.15U
Release 2.0.8.15U

Change-Id: Ice4902001180724dc5e62251e7e6fd118b2e7647
CRs-Fixed: 774533
2021-04-28 11:29:51 -07:00
Karthik Kantamneni
af87b16200 qcacld-3.0: Enable REO queue descriptor history
Enable REO queue descriptor history for Lithium based targets

Change-Id: I452726ceb056e880096f72572e562a2d4db7e3b3
CRs-Fixed: 2929956
2021-04-28 11:29:51 -07:00