Commit Graph

20948 次程式碼提交

作者 SHA1 備註 提交日期
snandini
ee63ee4e2d Release 5.2.0.204U
Release 5.2.0.204U

Change-Id: I90e0d00bfc50451474974f4aa131eda334537160
CRs-Fixed: 774533
2020-10-01 19:08:48 -07:00
Vevek Venkatesan
0bd4c940e4 qcacld-3.0: fix the error accessing hdd_ctx without NULL check
Fix the error of accessing the hdd context pointer without
NULL check.

Change-Id: Ifbb2ffcd2c4270a96cbad97bf3c320702cf6bc12
CRs-Fixed: 2788159
2020-10-01 19:08:48 -07:00
Jianmin Zhu
77f915b7ea qcacld-3.0: Can't restore to 5G channel when 5G re-enabled
If 5G band disabled, all channels of 5G should be disabled, before SAP
switch to 2G channels, we need save original 5G channel, or when 5G
re-enable,  can't restore back to original 5G channel.

Regression of change-Id: I679ce6f72228b431530953a631c8c8afa4597187.

Change-Id: Iabb932102c37cc7b9d4d97a2e22e781958ed906f
CRs-Fixed: 2789341
2020-10-01 19:08:45 -07:00
snandini
88cf9b318b Release 5.2.0.204T
Release 5.2.0.204T

Change-Id: I359cb32bcb1b400840820c71628f1c193add48e3
CRs-Fixed: 774533
2020-10-01 16:57:58 -07:00
gaurank kathpalia
1fbd7b0de6 qcacld-3.0: use enum wlan_status_code for wlan status code
Use the new enum wlan_status_code for wlan status code and
remove enum mac_status_code.

Change-Id: If42cfdcf99d34ffa77be53382d02288ab8637c10
CRs-Fixed: 2789000
2020-10-01 16:57:57 -07:00
snandini
5d0d3f2124 Release 5.2.0.204S
Release 5.2.0.204S

Change-Id: Ibd18b009ff2ce06bd644fd3a80d87a2d2a36c3ce
CRs-Fixed: 774533
2020-10-01 14:40:44 -07:00
Gururaj Pandurangi
fa5234a602 qcacld-3.0: Rate limit cp stats logs
Rate limit cp stats logs to avoid excessive logging

Change-Id: I3506da05a41579f727ce36cffb475f39a9afec68
CRs-Fixed: 2787218
2020-10-01 14:40:43 -07:00
snandini
577a274700 Release 5.2.0.204R
Release 5.2.0.204R

Change-Id: I18cae1b41152559c8caebeb7c3908db4ac832d28
CRs-Fixed: 774533
2020-10-01 12:28:47 -07:00
Karthik Kantamneni
47d425d0de qcacld-3.0: Enable more TX descriptors flag for QCA6750
Enable more TX descriptors flag for QCA6750 target.
This helps to increase TX and completion descriptors size.

Change-Id: I038d5e376aec68741b172d963c9f96925b71d68a
CRs-Fixed: 2769769
2020-10-01 12:28:47 -07:00
Jianmin Zhu
64fdb6000a qcacld-3.0: Fail to transfer DBS to SCC caused by channel avoidance
Steps to reproduce:
1. AP_AP mode setup, AP1 occupy channel 1, AP2 occupy channel 44.
2. Set channel1~channel11 as unsafe channel, which cause AP1 try to
switch to 5G band.

Observed Results:
AP1 select channel 36, and channel switch fail.

Expected Results:
AP1 select channel 44 same as AP2, and channel switch pass.

Root cause: in Dual AP concurrency case, when get PCL for one AP, need
find the AP from connection list by vdev id and remove it temporarily,
can't just remove 1st vdev from connection list.

Change-Id: I763bbc89bacdad4389084588ee68c3a1e2f17b7b
CRs-Fixed: 2774570
2020-10-01 12:28:43 -07:00
hqu
f88549090b qcacld-3.0: Fix implicit-fallthrough compile error casued by gcc 9.3
Compiling with gcc 9.3 will cause many implicit-fallthrough
compile errors.

Fix is to add keyword fallthrough to resolve such compile error.

Change-Id: I3fdc48b1a9ab2345a47ae644e3217b4d29238364
CRs-Fixed: 2785172
2020-10-01 12:28:39 -07:00
snandini
f9c6ffdebb Release 5.2.0.204Q
Release 5.2.0.204Q

Change-Id: I7f10b2a93ceecfe465127520c4962c9a8a7b97d5
CRs-Fixed: 774533
2020-10-01 08:27:24 -07:00
Alan Chen
91177c2f86 qcacld-3.0: Add new bit in wow flag
In order to apply modulated DTIM only on system suspend display off use
case, in RTPM wow mode, for display on and display off, FW will stick to
DTIM 1.

Change-Id: Id282c11c39d38e8a5d55574783d280b092dbb485
CRs-Fixed: 2784872
2020-10-01 08:27:24 -07:00
snandini
f61cac298a Release 5.2.0.204P
Release 5.2.0.204P

Change-Id: I72c497472260ea3f0e5721735a5d09f4fc32bc3d
CRs-Fixed: 774533
2020-10-01 06:00:43 -07:00
Alan Chen
8cc132d398 qcacld-3.0: Add a new ini item for modulated DTIM on system suspend
Add a new ini item enable_mod_dtim_system_suspend to control the
modulated DTIM on system suspend feature.

This ini is used to set modulated DTIM configuration:
Current values of enable_mod_dtim_on_system_suspend:
0 -> Modulated DTIM will be enabled for every wow entry
      (RTPM wow + System suspend wow)
1 -> Enable modulated  DTIM only for System suspend wow.
      For RTPM wow, the device will stay in DTIM 1 (non-modulated DTIM)

Change-Id: Ia3a9d259d8ba1e483ea3e8e7f99f60bbc27c67af
CRs-Fixed: 2787108
2020-10-01 06:00:43 -07:00
snandini
64b8d9fa3a Release 5.2.0.204O
Release 5.2.0.204O

Change-Id: I49a29522e97e1dd9f7046c330d6f434535f384f6
CRs-Fixed: 774533
2020-10-01 03:40:58 -07:00
Amar Singhal
4992e9a67e qcacld-3.0: Populate country IE from regulatory API
Call regulatory API to get current channel list. Populate
sub-band triplets from there. Also clean-up 11d related
cfg item enable_11d.

Change-Id: Ica6dba0dee05e7d16572ec0f0c62aa6f79aa6d4f
CRs-Fixed: 2769848
2020-10-01 03:40:57 -07:00
snandini
08908493a3 Release 5.2.0.204N
Release 5.2.0.204N

Change-Id: I00b0ce42d86ee86d4d40d841a795fd265270178c
CRs-Fixed: 774533
2020-09-30 23:09:42 -07:00
Manjunathappa Prakash
1a5743d1ce qcacld-3.0: Enable CE descriptor ring reap history in perf build
Enable CE descriptor ring history in non slub_debug_on build.
This is required to debug CE ring slow reaping issue in non
slub_debug builds

Change-Id: Id2955eb79f4759784b68cbb0270a7794484bb73c
CRs-Fixed: 2786647
2020-09-30 23:09:42 -07:00
snandini
3f7430ffea Release 5.2.0.204M
Release 5.2.0.204M

Change-Id: I28d7ea6ff9447cdf5c06e521e2ba4041937f3d4c
CRs-Fixed: 774533
2020-09-30 20:40:28 -07:00
Yeshwanth Sriram Guntuka
09f25e5313 qcacld-3.0: Enable SMMU S1 unmap config flag for Kona
IOVA address returned as part of pld_smmu_map for IPA
rx ready doorbell register exceeds the IOVA range
configured in FW by Host. This is because smmu unmap
support is not enabled and due to IOVA range validation
issue in cnss SMMU map API.

Fix is to enable SMMU S1 unmap config flag to enable
SMMU unmap as part of IPA cleanup.

Change-Id: I588f3536c2eb2a9fc77bbe69c9b6a6eb02a39842
CRs-Fixed: 2784174
2020-09-30 20:40:28 -07:00
snandini
9aee1e2e4e Release 5.2.0.204L
Release 5.2.0.204L

Change-Id: If2bd441e5c7f97b012c2a462d914bedce8e3e09a
CRs-Fixed: 774533
2020-09-30 18:02:38 -07:00
Lincoln Tran
fb4122eb6c qcacld-3.0: Increase NAN response timeout
After sending disable request to FW, it needs some time to
communicate the frame to all NDP connected peers. Increase
the wait time from 1 second to 4 seconds.

Change-Id: Iae36fe007704600a9f29ac7b943ef22fba91b651
CRs-fixed: 2787069
2020-09-30 18:02:38 -07:00
Kiran Kumar Lokere
65f53c0f74 qcacld-3.0: Change the QCN IE attributes to TLV type
Use the TLV type for QCN IE attributes to fix the duplicate IE
detection and update QCN IE with new attributes.

Change-Id: Ia1be2d1754a3ed82ad3f01b68e719c504f624309
CRs-Fixed: 2760822
2020-09-30 18:02:34 -07:00
snandini
ed59a452d8 Release 5.2.0.204K
Release 5.2.0.204K

Change-Id: I35426521b1a39a7e5fafce2e4093c5cc4f15182d
CRs-Fixed: 774533
2020-09-30 11:10:21 -07:00
Bapiraju Alla
5191713c4b qcacld-3.0: Send get_station and ll_stats req in a single command
Currently ll_stats and get_station requests are sent back to back
from user space. The firmware time difference between these two commands
results in extra sleep and wakeup for Q6.

To avoid this extra Q6 sleep and wake, send both requests in a single
command from the driver if the firmware supports that operation. Cache
the get_station results in the driver until user space request reach
to the driver.

Change-Id: Ic7c6232558b9411106bf3fb88ec8d9b0b28b045d
CRs-Fixed: 2778476
2020-09-30 11:10:21 -07:00
Utkarsh Bhatnagar
7d9ab089a4 qcacld-3.0: Use pdev iterate obj list to check for existing WAPI STA
At present, WAPI security mode STA is not allowed to run in
concurerncy with any other vdev.
So, whenever a new vdev is created, policy_mgr_check_privacy_for_new_conn
is called to check the security concurrency of new connection by checking
security of exisitng vdevs and if a STA vdev with WAPI security exists
then the concurrency is not allowed and the api will return false.

In case, while performing this check, the adaptor associated with
the existing vdev is destroyed, there might be a crash as
hdd_wapi_security_sta_exist is still trying to access the security
of that vdev.

To solve this, use wlan_objmgr_pdev_iterate_obj_list with crypto info
to iterate across all the existing vdev and check the security. If
Wapi security STA exists, it will return an argument with value as true
which will be used in policy_mgr_check_privacy_for_new_conn and it will
return false as concurrency is not allowed

Change-Id: Iff811d2406f1c74cec26d457a2a682dd992710b8
CRs-Fixed: 2784406
2020-09-30 11:10:17 -07:00
Karthik Kantamneni
a1952c8ae6 qcacld-3.0: Send connect request for WMI DIAG SVC
Send connect request for WMI DIAG events over CE7.
Enable WMI DIAG over CE7 feature for QCA6750 target.

Change-Id: Iaa9e030383a3f8fea07ddccde3d260e60742b862
CRs-Fixed: 2787003
2020-09-30 11:10:13 -07:00
snandini
a8366e4375 Release 5.2.0.204J
Release 5.2.0.204J

Change-Id: I14129ad76d643b6f0d1eb9941abed7fb4923a59d
CRs-Fixed: 774533
2020-09-30 08:38:34 -07:00
Paul Zhang
bb86844661 qcacld-3.0: setting perodic tx pattern config
Setting the defaul perodic tx pattern config to 3 for Genoa platform.

Change-Id: I8211d1de9d7bc98c6151b71d50360db74960eab9
CRs-Fixed: 2773710
2020-09-30 08:38:33 -07:00
Ashish Kumar Dhanotiya
80759aa660 qcacld-3.0: Rename osif files and functions for connection manager
The naming of the osif files and functions is not correct as
these files and functions include wlan_cfg80211 as prefix
instead of osif.
Correct file name and function name should contain the component
name first, followed by feature name followed by method.

Change-Id: I26a592de71bbde0f731436acb970778c85d19226
CRs-Fixed: 2786807
2020-09-30 08:38:30 -07:00
snandini
ccc0edaa0a Release 5.2.0.204I
Release 5.2.0.204I

Change-Id: I0ff2d8fc5f37f91da62449d3436de393b74fc584
CRs-Fixed: 774533
2020-09-30 01:25:57 -07:00
Jyoti Kumari
2fc8cced81 qcacld-3.0: Cleanup unnecessary log in roaming
When vdev is null in both mlme_get_roam_state() and
mlme_is_roam_invoke_in_progress(), error log is getting printed
redundantly.

Remove prints from both function as there is no additional info.

Change-Id: Ibc96ad957d947857777dad9df9ff766e68562dae
CRs-Fixed: 2785775
2020-09-30 01:25:57 -07:00
Ashish Kumar Dhanotiya
edef44619b qcacld-3.0: Do not fill 6GHz channels for legacy command
Currently when driver receives the legacy get channel command,
it fills all the channels which includes 6GHz channels also.
This may lead to unexpected behaviour for the applications which
does not have support for the 6GHz channels.

To address above issue, do not add 6Ghz channels in the output of
the get channels command.

Change-Id: I87beea4e80906846fa5d1d1076792385d4424297
CRs-Fixed: 2782638
2020-09-30 01:25:53 -07:00
snandini
b083926978 Release 5.2.0.204H
Release 5.2.0.204H

Change-Id: I0dd43314d8912b610d067006e9a0851c85d575aa
CRs-Fixed: 774533
2020-09-29 00:56:30 -07:00
Liangwei Dong
1b088ec2f2 qcacld-3.0: Enable thermal mgmt feature for AUTO
Enable CONFIG_FW_THERMAL_THROTTLE build flag for 6390 AUTO.

Change-Id: Iea34da72ba52a034856009fa362f9a89e43cb3f5
CRs-Fixed: 2786680
2020-09-29 00:56:29 -07:00
snandini
04ca205904 Release 5.2.0.204G
Release 5.2.0.204G

Change-Id: I34e06989e129303408d4ec83c42c46b90c03f97a
CRs-Fixed: 774533
2020-09-28 22:26:30 -07:00
Wu Gao
2b824e6687 Revert "qcacld-3.0: Schedule autobmps timer for open security"
This reverts commit "Change-Id: af7e67eee58888a811e51c2ef093b7aac639f904".
Since host can't set NDP peer to auth state if test with this change.
So revert this change and raise another change for original issue.

Change-Id: I568de643bfd93611dcfa7a5b836fa67e3773ebf7
CRs-Fixed: 2780195
2020-09-28 22:26:30 -07:00
snandini
42e54c6a31 Release 5.2.0.204F
Release 5.2.0.204F

Change-Id: I93edee653c7d0d09383377dd1ec7039839f00f5e
CRs-Fixed: 774533
2020-09-28 06:07:09 -07:00
Pragaspathi Thilagaraj
ee7302ebd0 qcacld-3.0: Wait for probe response from AP in OWE transition mode
In OWE transition mode, the AP advertises one Hidden SSID and one
normal ssid and the OWE capable STA connects to the OWE supported
hidden SSID. When connecting to the hidden SSID, if the AP sends
beacon for the unicast probe request sent by driver before
anouncing join success, then the beacon NULL ssid gets updated to
the kernel. Then after successful association, while indicating
the connection successs to the kernel, the current bss is not
filled as wlan_cfg80211_get_bss() is called with the actual ssid
and not the NULL ssid.
Due to this when supplicant sends install key command for this
bss, kernel returns error and set_key always fails.

Wait for the probe response from the AP for the unicast probe
request sent before announcing join success and drop the beacon
received from the AP so that the driver
fills the proper ssid to the kernel bss entry and same ssid gets
used in association completion handler.

Change-Id: Icded0af5d45d3281ab4304bf166bdc318aa7a942
CRs-Fixed: 2782618
2020-09-28 06:07:09 -07:00
snandini
8c8068fb81 Release 5.2.0.204E
Release 5.2.0.204E

Change-Id: I92f0d23bf4f2a196966f6c0727c252b9947a7f47
CRs-Fixed: 774533
2020-09-28 00:10:59 -07:00
Ananya Gupta
9423436d12 qcacld-3.0: Disable IPA when 2nd SAP is turned on
When 2nd SAP is turned on throughput is dropping as
rps is not getting enabled on wifi bridge interface.
A bridge interface is a virtual interface created,
when 2 SAP are turned on else, there is no bridge
interface.
To fix this, Disable IPA when 2nd SAP is turned
on, so that packets are not re-routed through IPA
which is reducing throughput.

Change-Id: I250056338cec0924e97ff79d2d9e6ac513f50d66
CRs-Fixed: 2769539
2020-09-28 00:02:57 -07:00
snandini
418cbd2b45 Release 5.2.0.204D
Release 5.2.0.204D

Change-Id: I9d189d38d3309e7691c1c5edf9bbe0c25088895e
CRs-Fixed: 774533
2020-09-25 22:56:27 -07:00
Zhaoyang Liu
1d5b3d03c8 qcacld-3.0: Fix CSA process wide BW IE bandwidth issue
During channel switch for station mode, firmware reports CSA
offload event to host driver, if the beacon IE includes wide
band width IE, driver will process it and then set phy mode
into firmware. Because function lim_process_csa_wbw_ie try to
verify the segments and channel bandwidth in wrong way, it will
lead to device use bandwidth which is mismatched with AP after
channel switch. So data transaction gets failure.
Fix this issue to verify channel bandwidth by correct algorithm.

Change-Id: Ie26c3a887418dc61c0e8de041a9094aa82215098
CRs-Fixed: 2782049
2020-09-25 22:56:27 -07:00
Vulupala Shashank Reddy
589f121df7 qcacld-3.0: Do not use peer to get vdev
When we receive disassoc from peer, peer will be deleted from hash
table. If driver again receives one more disassoc from same peer
because of any reason, NULL pointer dereference will occur.

To address this do not use peer to get vdev, use pkt_capture_get_vdev
to get vdev.

CRs-Fixed: 2771670
Change-Id: I5bf7b5edff0e1c6b0b73f0c3849c897b269eef4c
2020-09-25 22:56:23 -07:00
snandini
cd60749c66 Release 5.2.0.204C
Release 5.2.0.204C

Change-Id: I7521d16a7bb96c02d31a3d8742f683139bc080fb
CRs-Fixed: 774533
2020-09-25 20:20:32 -07:00
Bapiraju Alla
28e70aac41 qcacld-3.0: Cleanup scan queue before vdev delete
Currently hdd is not clearing the scan queue before deleting vdev in
all the cases. This is causing use after free access issue.

To avoid this, cleanup scan queue before vdev delete.

Change-Id: I3e06f868904f450da781ba60887284796abd4ee9
CRs-fixed: 2784645
2020-09-25 20:20:32 -07:00
Jinwei Chen
d4f5bd413d qcacld-3.0: Support unaligned consistent memory prealloc
Support unaligned consistent memory prealloc

Change-Id: I5c4aea4991ab08519b821cb06c09e5abb9a90ef6
CRs-Fixed: 2758967
2020-09-25 20:20:28 -07:00
snandini
ad8295bc3d Release 5.2.0.204B
Release 5.2.0.204B

Change-Id: I6ac369de7856695a4812a220291f170296e02c50
CRs-Fixed: 774533
2020-09-25 15:33:14 -07:00
Yeshwanth Sriram Guntuka
7c30d8e2cd qcacld-3.0: Do RTPM get in SWLM flush timer
In runtime suspended state, tx packets cause a
runtime resume and if packets are received in
a way that tput pass count exceeds the threshold
but bytes flush and time threshold are not
reached, the flush timer is started. As part of
dp_swlm_tcl_flush_timer, iowrite can happen even
before the runtime resume is completed resulting
in a NOC error.

Fix is to do runtime_get in dp_swlm_tcl_flush_timer
before doing iowrite.

Change-Id: I83b6d8cfc7b29bc1f30fda94007b3663d6a99405
CRs-Fixed: 2783826
2020-09-25 15:33:14 -07:00