Commit graph

21,997 commits

Author SHA1 Message Date
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
Madan Koyyalamudi
f501247354 Release 2.0.8.15T
Release 2.0.8.15T

Change-Id: I54a04034ec49e011f83b8b9afbc9d3c208c4e809
CRs-Fixed: 774533
2021-04-27 17:29:30 -07:00
Lincoln Tran
87a1047e84 qcacld-3.0: Decide AP power type in init AP
Currently, the AP power type is only decided when the start AP
notification comes. Since ACS occurs before start AP, the power mode is
always the default of LPI. This could cause a SAP start issue if ACS
selects a frequency that is not valid for the updated power mode. Move
the call to select the power mode before either logic is invoked.

Change-Id: I6265dc242a8fae9174dc7efcf7154bdb2cf82a47
CRs-fixed: 2928987
2021-04-27 17:29:30 -07:00
Yeshwanth Sriram Guntuka
821102a4d1 qcacld-3.0: Modify few ring and desc sizes for prealloc
Modify few ring and descriptor sizes for prealloc
to support the maximum values configured via ini.

Change-Id: Ifc2976c3f9ab271c7740d4a97470d455a8ee1ba7
CRs-Fixed: 2929143
2021-04-27 17:29:26 -07:00
Abdul Muqtadeer Ahmed
1f88097a84 qcacld-3.0: Send the fw expected value in TPUT DEBUG command
There is a mismatch between host and fw for the input paramters of
TPUT DEBUG command.

To address the above issue send the fw expected value.

Change-Id: I15e14863c373d849d11eff90b75085cb451053c9
CRs-Fixed: 2928515
2021-04-27 17:29:21 -07:00
Aditya Kodukula
4d31c10ff0 qcacld-3.0: Fix memory leak in wlan_hdd_get_peer_stats
In the current implementation of the function wlan_hdd_get_peer_stats,
if the status returned by the call cdp_host_get_peer_stats is not
successful, then it returns from the function without freeing the
memory allocated to peer_stats. This causes a memory leak. To avoid
this issue, free the memory properly before returning from the function.

Change-Id: Ia002be4cf6c0b93eba2dc65d96d63e6c0eafad90
CRs-Fixed: 2932487
2021-04-27 08:09:42 -07:00
Aditya Kodukula
d4703ebb2e qcacld-3.0: Properly free ll_stats memory during file release
Since the ll_stats buffer is allocated during debugfs file open
it needs to be freed in file release but, DSC vdev op-protection is
not needed for releasing the buffer. Adding DSC protection will lead
to resource leak because DSC will reject file release op call
if it is in the middle of vdev/psoc/driver transition.

Hence, properly free the ll_stats memory during file release.

Change-Id: Id4c5ee99283a16232b0756341c4422f6f4397667
CRs-Fixed: 2931104
2021-04-27 08:08:00 -07:00
Madan Koyyalamudi
7728a7dbe4 Release 2.0.8.15S
Release 2.0.8.15S

Change-Id: I685bb5e6f566a025a89168c3973f69dbad34483d
CRs-Fixed: 774533
2021-04-26 19:00:55 -07:00
Sandeep Puligilla
fa3a63635d qcacld-3.0: Cleanup legacy interface manager code
Intra vdev operations was moved to interface
manager component as part of the connection
manager FR. Cleanup the legacy code in HDD
and SME because interface manager is component/
functionality is enabled by default on mainline.

Change-Id: I6aebec6b47231484dc61e8c9bb3956ea19d09b5e
CRs-Fixed: 2844047
2021-04-26 19:00:54 -07:00
Jingxiang Ge
eca689880a qcacld-3.0: Add QCA_WLAN_TASKLET_CREDIT_LATENCY_DETECT
Add hang reason QCA_WLAN_TASKLET_CREDIT_LATENCY_DETECT.

Change-Id: I30f377d4304c209e847d8120a78b807a65741f46
CRs-Fixed: 2929181
2021-04-26 20:06:46 +08:00
Madan Koyyalamudi
daf4f08fa0 Release 2.0.8.15R
Release 2.0.8.15R

Change-Id: Iea0bcc4a28ac66d48884d5f59fbbb9a584645cf2
CRs-Fixed: 774533
2021-04-24 10:49:45 -07:00
Srinivas Dasari
0f55d832ed qcacld-3.0: Start NDI in AUTO mode to allow max supported mode
Currently, NDI is started in 11AC mode through the API
hdd_ndi_start_bss(). Max supported mode(e.g. 11AX) is picked by
csr_roam_get_phy_mode_band_for_bss() if either of the "ini param
gDot11Mode" or "input profile mode" is set to AUTO.
But if the ini param gDot11Mode is configured as 12(11AX)
explicitly, csr_roam_get_phy_mode_band_for_bss() picks the mode
sent by hdd_ndi_start_bss() which is 11AC(or the min out of
these two).
So, start the NDI in AUTO mode to let the mode be decided based
on the ini param gDot11Mode and firmware support.

Change-Id: I404ea7a4e042262032c17e5c736501146910d084
CRs-Fixed: 2931071
2021-04-24 08:26:31 -07:00
Madan Koyyalamudi
2596a8da13 Release 2.0.8.15Q
Release 2.0.8.15Q

Change-Id: Id95e73e421358c22de1c3fe104be651c46a81acc
CRs-Fixed: 774533
2021-04-23 16:57:57 -07:00
Ananya Gupta
a3e6e66259 qcacld-3.0: Prealloc FISA Flow Table
Allocation failed as flow table size is huge.
To Fix this, moved the ft table to prealloc memory.

Change-Id: I27ee62b1bcfced563f45cb80e11978cb3dd46183
CRs-Fixed: 2926899
2021-04-23 16:57:57 -07:00
Madan Koyyalamudi
381aa79996 Release 2.0.8.15P
Release 2.0.8.15P

Change-Id: I80bb898287f9ab2cc14359f02278b55d33dccbc9
CRs-Fixed: 774533
2021-04-23 08:48:41 -07:00
Abhishek Singh
aea5790657 qcacld-3.0: Avoid use after free of del_sta in wma_delete_sta
In case of TDLS peer connected if SSR happen, LIM try to flush
TDLS peer with del_sta->respReqd as false.

With respReqd false del_sta is freed in the switch case, but
is used outside the switch case, leading to use after free.

Fix is to use the local vdev_id instead of del_sta->smesessionId.

Change-Id: I7e08733cf42ef619b3fa0d6726ee1acc2012c6a4
CRs-Fixed: 2929448
2021-04-23 08:48:41 -07:00
Madan Koyyalamudi
dadf6506ff Release 2.0.8.15O
Release 2.0.8.15O

Change-Id: Id09f686a830778f63e6d51d945dcb0986ef8ad1d
CRs-Fixed: 774533
2021-04-23 06:50:28 -07:00
Bapiraju Alla
4c01170c3c qcacld-3.0: Use separate request context for NAN and NDP
Currently single request context is used for NAN discovery and NDP.
If NAN disable request is sent to the FW and FW sends NDP end
indication and didn't send NAN disable indication. In this case,
wait event for NAN disable indication will be completed as part of
NDP end indication. This is because same request context is used for
both NAN discovery and NDP.

To resolve this, use separate request for NAN discovery and NDP.

Change-Id: Ic42e32c5cfd818188ca96d6cba3cbec1ed85a3ec
CRs-Fixed: 2921287
2021-04-23 06:50:28 -07:00
Madan Koyyalamudi
db2881f376 Release 2.0.8.15N
Release 2.0.8.15N

Change-Id: Ia4c350d71d2df78264f9accd4615c473e2e0145a
CRs-Fixed: 774533
2021-04-23 04:34:02 -07:00
Deeksha Gupta
6ddd8467cc qcacld-3.0: Send get_stats status in GET_STATS response
Send QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS attribute in
the driver TWT get stats NL response.

Change-Id: I7c447a8d2841f3bb0143f9ac6f957b1f78fa1e21
CRs-Fixed: 2923086
2021-04-23 04:34:02 -07:00
Abhishek Singh
b43ba94f41 qcacld-3.0: Reset scan reject params on peer connect and disconnect
If in SAP peer keep on connecting and disconnecting without
completing the EAPOL (e.g. due to wrong password), scan logic will
assume that EAPOL is in progress for long time and assert.

To fix this false alarm reset scan reject params on peer connect
and disconnect.

Change-Id: I067b5be39504651ffe4e29e1cc927ad0bc3a06c0
CRs-Fixed: 2928817
2021-04-23 04:33:57 -07:00
Madan Koyyalamudi
11b70ac20d Release 2.0.8.15M
Release 2.0.8.15M

Change-Id: Ib8f82c1e693e0edbc6e925d00f95d87f246fdea1
CRs-Fixed: 774533
2021-04-23 02:31:21 -07:00
Abdul Muqtadeer Ahmed
5d6e79efae qcacld-3.0: Remove the NULL check for a pointer which will never be NULL
psoc_cfg is pointing to the address of a structure variable,
which will never be NULL.

To address this remove the NULL check.

Change-Id: I12f539ce2feace550c403ffc996fa315994470a7
CRs-Fixed: 2911862
2021-04-23 02:31:21 -07:00
Madan Koyyalamudi
d1a1ca8038 Release 2.0.8.15L
Release 2.0.8.15L

Change-Id: Ia1d06f8be71bcefe5a85b022907ec3611e2168ef
CRs-Fixed: 774533
2021-04-23 00:50:35 -07:00
Utkarsh Bhatnagar
8b0ac900d2 qcacld-3.0: Don't do CSA on DFS channel in Non-DBS HW
In case of Non-DBS HW, don't allow channel to switch
to DFS channel or 160 Mhz BW in 5 Ghz, if STA is not
connected.

This is done because in Non-DBS HW, Monitoring mode
is disabled as sta_sap_scc_on_dfs_chnl is forced to
1.

Change-Id: Ie30a38a6c5155ca2b6f11f602fb51a43ca2e323e
CRs-Fixed: 2916799
2021-04-23 00:50:35 -07:00
Madan Koyyalamudi
d8a2628709 Release 2.0.8.15K
Release 2.0.8.15K

Change-Id: I23eff193124a3f746d839efa25a677f84098d5e4
CRs-Fixed: 774533
2021-04-22 15:34:57 -07:00
Bapiraju Alla
197f0778c9 qcacld-3.0: Increase latency detection timer timeout and threshold
Currently latency detection timer timeout and threshold values are
used as 2 and 1.9 seconds respectively. After going through few
issues, 2seconds found to be too aggressive and hence increasing
these values to 4 and 3.9 seconds respectively.

Change-Id: Ie9314b517a7a8e47460effc86e5b3fb939dcbb33
CRs-Fixed: 2921474
2021-04-22 15:34:57 -07:00
Liangwei Dong
dc89ee3aa6 qcacld-3.0: Fix invalid timestamp in kernel bss entry
Driver report beacon/probe rsp frame in wlan_hdd_inform_bss_frame
to kernel. "boottime_ns" field needs be filled by "scansystimensec"
in nanosecond, so assign "boottime_ns" (NS) from scan entry to
bss_description instead of "scan_entry_time" (MS).

Change-Id: Id22f119f41f8cf60a8aadc9e04c4f18424c88413
CRs-Fixed: 2870827
2021-04-22 10:39:32 +08:00