Commit Graph

14056 Commits

Author SHA1 Message Date
nshrivas
0adef8fc0c Release 5.2.0.106V
Release 5.2.0.106V

Change-Id: I33fe0e9dacd2bf067df8267cf3ff7e11d4cad8d2
CRs-Fixed: 774533
2018-11-15 23:26:10 -08:00
Jeff Johnson
33ec1982cb qcacld-3.0: Refactor WE_SET_DEBUG_LOG ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the WE_SET_DEBUG_LOG ioctl handling into a separate
function.

Change-Id: I38b10ebef241cf202d17557293851af3b8af36ec
CRs-Fixed: 2350067
2018-11-15 23:26:10 -08:00
Jeff Johnson
0e07ca1d66 qcacld-3.0: Refactor WE_MCC_CONFIG_* ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the WE_MCC_CONFIG_LATENCY and WE_MCC_CONFIG_QUOTA ioctl
handling into separate functions.

Change-Id: I3396b436d221871d3c22d838af1fbdfd229c7d66
CRs-Fixed: 2350066
2018-11-15 23:26:06 -08:00
nshrivas
bdc38531c4 Release 5.2.0.106U
Release 5.2.0.106U

Change-Id: I0f9467ebfc8d160b55b0a68f62bd40af6bcc0afb
CRs-Fixed: 774533
2018-11-15 22:00:20 -08:00
Tiger Yu
287056c463 qcacld-3.0: Enable scatter gather feature for msm8996 platform
Enable the scatter gather feature for msm8996 platform to improve
the TCP TX throughput.

Change-Id: I634f48baf2f1f57aa89030acab37ada798ce7d2c
CRs-Fixed: 2344092
2018-11-15 22:00:19 -08:00
nshrivas
b537c64ac7 Release 5.2.0.106T
Release 5.2.0.106T

Change-Id: I60c724d68a074fd5243ba23db761cda62cf077a2
CRs-Fixed: 774533
2018-11-15 18:48:59 -08:00
Dustin Brown
5a26dae6d0 qcacld-3.0: Don't stop transition in ssr shutdown
During sub-system recovery, the platform driver invokes the wlan's
shutdown and reinit callbacks. Reinit is called regardless of the result
of shutdown. Currently, the SSR transition is aborted in shutdown in the
event of a failure. This results in a panic during reinit, which expects
to be protected by that transition. Regardless of the result of
shutdown, do not stop the SSR transition such that the entire recovery
process is properly protected.

Change-Id: I3685920de5a7d47f6334bf4d8389cb267a46fac2
CRs-Fixed: 2350868
2018-11-15 18:48:59 -08:00
nshrivas
ff2d5ca1b8 Release 5.2.0.106S
Release 5.2.0.106S

Change-Id: I91547ea9de4fc8c58a96dbd7578abdd49b0ac61f
CRs-Fixed: 774533
2018-11-15 17:19:26 -08:00
gaurank kathpalia
5f6919b0f4 qcacld-3.0: Skip ACS based on hw mode and STA's channel
If the STA is already present, and a SAP has to come up,
return the STA channel as the best channel, and skip ACS,
if the Hw_mode is set according to the STA channel
Eg:- STA on channel 1, and hw_mode is 11B, or 11G.
Also the driver doesnt check the DFS master mode, and
includes the DFS channels in the ACS scan list, which
may result in SAP bringup on a DFS channel

Check the conc_channel, and acs_policy ini, and return the
best channel as the STA channel.
Also exclude the DFS channels from the ACS scan list if
DFS master mode is disabled.

Change-Id: I70951d7b51b620db8cda7ed771d5c36a7571a125
CRs-Fixed: 2340965
2018-11-15 17:19:26 -08:00
Jeff Johnson
b460dd7685 qcacld-3.0: Replace hHal in sme_api
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sme_api.

Change-Id: Idd66679290567e9ed27b5c7e1a5401f36229d9a7
CRs-Fixed: 2349571
2018-11-15 17:19:21 -08:00
Jeff Johnson
fe8aa4ffe8 qcacld-3.0: Replace hHal in sme_ft_api
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sme_ft_api.

Change-Id: I5e41d0767b97bf698dbb14834f2080bd82577035
CRs-Fixed: 2349570
2018-11-15 17:19:18 -08:00
Jeff Johnson
d32f3622dc qcacld-3.0: Replace hHal in sme_qos
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sme_qos.

Change-Id: I067ec7d921888cc8f743561810f9163bb4ea9008
CRs-Fixed: 2349569
2018-11-15 17:19:14 -08:00
nshrivas
21702429c8 Release 5.2.0.106R
Release 5.2.0.106R

Change-Id: Ia8ec4c651e98d714c52115dea627012a260d76fc
CRs-Fixed: 774533
2018-11-15 15:18:15 -08:00
Jeff Johnson
c0203e218a qcacld-3.0: Replace hHal in wlan_qct_sys
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in wlan_qct_sys.

Change-Id: I4f5b7c46ae56140d0a2456f9ba48fdcf54d9262b
CRs-Fixed: 2349568
2018-11-15 15:18:14 -08:00
Jeff Johnson
419348b1bc qcacld-3.0: Replace hHal in sap_module
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sap_module.

Change-Id: I5422b4a7e1a464a8f870cea33069c47401c73bac
CRs-Fixed: 2349566
2018-11-15 15:18:10 -08:00
Jeff Johnson
793e5a9163 qcacld-3.0: Replace hHal in sap_api_link_cntl
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sap_api_link_cntl.

Change-Id: I1248b01c4da617c307bc7262e32c32e069491d1c
CRs-Fixed: 2349565
2018-11-15 15:18:05 -08:00
Jeff Johnson
19681ce028 qcacld-3.0: Replace hHal in sap_fsm
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of hHal with mac_handle
in sap_fsm.

Change-Id: I478b21a0e060b86c05025f3f8b1d46e196d7e93f
CRs-Fixed: 2349564
2018-11-15 15:18:01 -08:00
nshrivas
ed18801089 Release 5.2.0.106Q
Release 5.2.0.106Q

Change-Id: I94589f4cdf1da79057327c71350fe2267bdfdb1a
CRs-Fixed: 774533
2018-11-15 10:08:24 -08:00
Abhinav Kumar
9b4f4ba969 Revert "qcacld-3.0: Acquire wake lock timeout for rrm scan"
FW does not assert when wow is enabled in presence of active
scans. Only requirement is to abort the scans while suspending.
So holding wakelock till scan is complete may introduce power
side effects.

Aborting the scan while suspending is already taken care by
the CR-2343385.

Fix is to revert the
Change Id: I02ddc9b5e6ba5f1782d00e34f044ace34c54d0b0 and
cleanup the channel list from rrm context in case of failure
of rrm scan req.

Change-Id: I844210a6a11f1d882bf42340b80b386856d9b87b
CRs-Fixed: 2349857
2018-11-15 10:08:24 -08:00
Bala Venkatesh
87107dd933 qcacmn: Avoid redefination of tdls_add_oper enum
Enums tdls_add_oper and TdlsAddOper are same. Instead redefining
use the same enum across different files.

Change-Id: Ibb71b0f80e156e4bd3a345a56c7b4d99ce770ef7
CRs-Fixed: 2349643
2018-11-15 08:20:47 -08:00
nshrivas
b6a147a2af Release 5.2.0.106P
Release 5.2.0.106P

Change-Id: Id5c5e9ecd0dd0919ff2172df144a6549a90d8ab5
CRs-Fixed: 774533
2018-11-15 08:20:30 -08:00
Bala Venkatesh
4a72b06fc9 qcacld-3.0: Avoid redefination of tdls_add_oper enum
Enums tdls_add_oper and TdlsAddOper are same. Instead redefining
use the same enum across different files.

Change-Id: Ibb71b0f80e156e4bd3a345a56c7b4d99ce770ef7
CRs-Fixed: 2349616
2018-11-15 08:20:30 -08:00
Ashish Kumar Dhanotiya
c90aaa122d qcacld-3.0: memset mac_context on mac close
on mac_close, current global mac_context is not getting memset
to zero, so when new mac_open occures this global mac_context
contains the previous configuration which leads to undefined
behaviour.
Initially during load time, driver type is set as production in
global mac context, on change of the con_mod to FTM, this driver
type is chnaged to MFG, now again if the con_mode is changed to
MISSION mode or MONITOR mode this driver type should be updated
to production, but since during mac_close, mac_ctx is not memset
to zero, this driver type is not getting updated and having the
previous value as MFG, because of this in pe mc process handler,
message is not getting processed leading to mem leak at stop
modules.

Change-Id: I342ad5c9bd4b710c668d8121f41f5ffd98d2c221
CRs-Fixed: 2349670
2018-11-15 08:20:25 -08:00
Arif Hussain
ca0fbb7d93 qcacld-3.0: Fix memory leak issue in csr_roam_issue_ft_preauth_req()
Make sure to free BSS descriptor buffer in case of failure to
send message. In failure case only message body buffer is freed.

Change-Id: I1919ed25d98808fad47f455820b760d96d18f4b2
CRs-Fixed: 2332101
2018-11-15 08:20:19 -08:00
Linux Build Service Account
bf24591576 Merge NAN Component files from branch 'wlan-cmn.driver.lnx.2.0' into wlan-cld3.driver.lnx.2.0 2018-11-15 19:16:12 +05:30
Linux Build Service Account
eefcfdd514 Merge NAN related Target IF files from branch 'wlan-cmn.driver.lnx.2.0' into wlan-cld3.driver.lnx.2.0 2018-11-15 19:15:04 +05:30
Linux Build Service Account
ad165d63a7 Merge NAN related OS IF files from branch 'wlan-cmn.driver.lnx.2.0' into wlan-cld3.driver.lnx.2.0 2018-11-15 19:13:26 +05:30
Linux Build Service Account
4e044cf9f5 qcacld-3.0: Merge NAN component files from CMN into CLD
NAN component is not needed in the CMN repo. To reduce the
unnecessary lines of code, merge the NAN component files
from CMN into CLD with updated copyrights. Subsequently
remove these files from the CMN repo.

Merge NAN component files from CMN into CLD.

Change-Id: I63c2fb90ea517496946ea45a66bdf290af9d5a7c
2018-11-15 19:12:32 +05:30
Linux Build Service Account
bc04268a27 qcacld-3.0: Merge NAN related OS IF files into CLD
NAN component is not needed in the CMN repo. To reduce the
unnecessary lines of code, merge the NAN related OS IF files
from CMN into CLD. Subsequently remove these files from the
CMN repo.

Merge NAN related OS IF files from CMN into CLD.

Change-Id: Iba5c367549f135800c6f36a7066829393d62e92b
2018-11-15 19:11:56 +05:30
nshrivas
57630b746b Release 5.2.0.106O
Release 5.2.0.106O

Change-Id: Iabcece5261e72421664cb834f0df4d6d87b34025
CRs-Fixed: 774533
2018-11-15 05:11:04 -08:00
Manjunathappa Prakash
ce8109df27 qcacld-3.0: Rate limit IPA callback API failure logs
Excessive failure log due driver is in transition state. This
is coming from stats callback function, rate limiting the logs.

Change-Id: Idcd5304c492fa538614ac45d4c7bb3a601f23bcc
CRs-Fixed: 2347721
2018-11-15 05:11:03 -08:00
Linux Build Service Account
9c774fa650 qcacld-3.0: Merge NAN related Target IF files into CLD
NAN component is not needed in the CMN repo. To reduce the
unnecessary lines of code, merge the NAN related Target IF
files from CMN into CLD. Subsequently remove these files
from the CMN repo.

Merge NAN related Target IF files from CMN into CLD.

Change-Id: I02475f1e1a3a90280bb9da0f131ba34bb189f5b3
2018-11-15 17:16:52 +05:30
nshrivas
0a5ab8a3a4 Release 5.2.0.106N
Release 5.2.0.106N

Change-Id: I3ca920e9156a3e8661e4b791b80764a3e641c3d3
CRs-Fixed: 774533
2018-11-15 03:38:19 -08:00
jitiphil
4e3bef4621 qcacld-3.0: disable pktlog as part of stop modules
Pktlog is not disabled as part of stop procedure. If
the DUT was booted up with WLAN turned off, the modules
will be loaded and after a timer expires they are
unloaded. At this point if WLAN was turned on, the start
procedure will try to enable pktlog and find that it
is already enabled, and will not send indication to
firmware.

Ensure pktlog is called as part of stop procedure.

Change-Id: If17fb597cabed59ef5a3220ba7e536820a940eaf
CRs-Fixed: 2349956
2018-11-15 03:38:19 -08:00
Min Liu
6cca937c9c qcacmn: Use vdev instead of pdev as parameter
For the case that there is leakage of vdev due to incorrect reference
count usage, and another vdev for the adapter is created, get ref of
vdev by mac address might get the incorrect vdev object since both vdevs
will have the same mac address and the leak one will be first matched
since it is created first.

To address this issue, use vdev pointer in adapter instead of pdev as
input parameter of related functions.

Change-Id: I855497358b5dabf3fc5c0f71a859dd7cae1b450a
CRs-Fixed: 2312155
2018-11-15 01:38:30 -08:00
nshrivas
bc0c8bf21e Release 5.2.0.106M
Release 5.2.0.106M

Change-Id: I260799bc613b69ac4c301bc3d3df629627bac095
CRs-Fixed: 774533
2018-11-15 01:38:16 -08:00
Min Liu
8c5d99e012 qcacld-3.0: Get vdev from adapter directly
For the case that there is leakage of vdev, get ref of vdev by mac address
might get the incorrect vdev object. Get vdev from adapter directly.

Add help function to get vdev reference counted before use it.

Change-Id: I7d4ad1a2b7031f2877adb19bc15f690616e87c74
CRs-Fixed: 2312152
2018-11-15 01:38:16 -08:00
nshrivas
281eeafb6a Release 5.2.0.106L
Release 5.2.0.106L

Change-Id: I5b0c88c47beb1449949efe522cc6d9d178be6278
CRs-Fixed: 774533
2018-11-14 22:06:11 -08:00
Jeff Johnson
274a1d6063 qcacld-3.0: Refactor WE_SET_CHANNEL ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the WE_SET_CHANNEL ioctl handling into a separate
function.

Change-Id: I66a8e9902b8b2a1ab2df0088630dc9a4923fbabd
CRs-Fixed: 2350065
2018-11-14 22:06:10 -08:00
jiad
15fb83796a qcacld-3.0: Fix WDI 1.0 MCC TX SMMU unmap
For WDI 1.0 MCC TX, wlan driver is involved for TX and skb is
provided from IPA driver. With SMMU enabled, dma_addr is of
IPA domain. In such case, wlan driver needs to do DMA map
itself. After doing DMA map, an offset of frag_header
and ipa_header is added to the iova and skb->cb is updated
with the new iova. After TX completion, skb DMA unmap is done
but with the iova of the above offset included, which leads to
unmapped iova error.

Fix is to recalculate the iova and update skb->cb with new iova,
which has frag_header and ipa_header length removed.

Change-Id: I7d04e9b01fbd973601ee9e4e74c6bf4dd3d0f7bb
CRs-Fixed: 2338049
2018-11-14 22:06:05 -08:00
nshrivas
8055beccd8 Release 5.2.0.106K
Release 5.2.0.106K

Change-Id: I2fd79eab47fe9ff82a2e9ac5fcfbf3f173b7f3d7
CRs-Fixed: 774533
2018-11-14 20:30:06 -08:00
Abhishek Singh
cdd3d4c1d1 qcacld-3.0: Use objmgr API to get 1st vdev from pdev
If Vdev id is not present driver tries to get vdev with vdev id 0
from pdev. Vdev with vdev_id 0 might not be present on pdev so use
objmgr API wlan_objmgr_pdev_get_first_vdev to get the first vdev.

Change-Id: I2ae0d6056709339a8167582ec327269aa84c93f4
CRs-Fixed: 2349702
2018-11-14 20:30:06 -08:00
nshrivas
a1d56ead93 Release 5.2.0.106J
Release 5.2.0.106J

Change-Id: I278ce6afc13c44761abb4e6211775a470993a46a
CRs-Fixed: 774533
2018-11-14 18:51:41 -08:00
wadesong
5cea9124a5 qcacld-3.0: Add missing CFG INI comment text - wave 1
Some CFG INI options' comment text are missing.

Add them so automation script can parse and retrieve the
correct comment text.

Change-Id: I4f79b075244c18490c52bc9a178d36c47db43878
CRs-Fixed: 2348307
2018-11-14 18:51:40 -08:00
nshrivas
7cb027d4ac Release 5.2.0.106I
Release 5.2.0.106I

Change-Id: Idb8a454febc7412a272eb417873d19a566308cd3
CRs-Fixed: 774533
2018-11-14 13:47:15 -08:00
Kai Liu
eabb1df217 qcacld-3.0: Release bus clock and bandwidth when module stop
Wlan should release bus clock and bandwidth when module stop,
otherwise when system enter into X0 shutdown, voted clock is still on.

Change-Id: I735cbed1289b17ab2fbc81e35043f1f663a60473
CRs-Fixed: 2341653
2018-11-14 13:47:15 -08:00
Karthik Kantamneni
9180c75d61 qcacld-3.0: Add RTT related CFG item
ADD RTT MAC randomization CFG item based on converged cfg component

Change-Id: I0e1203fc3b3cdab8d9f331c90092b460a02f0fbf
CRs-Fixed: 2349709
2018-11-14 13:47:11 -08:00
nshrivas
3c4fb6e9be Release 5.2.0.106H
Release 5.2.0.106H

Change-Id: Ic05c8bb8974514d5d2369d3cd87219c02553eaf9
CRs-Fixed: 774533
2018-11-14 10:40:52 -08:00
Alok Kumar
2fad644d65 qcacld-3.0: Add vendor event to update TCP paramenter
Currently, TCP params are configured through cnss-daemon.

Add vendor event to configure TCP params through Wi-Fi HAL.

Change-Id: I5ca3e33a8b15b5d499f771098ce8a3c58e4bb850
CRs-Fixed: 2349253
2018-11-14 10:40:52 -08:00
nshrivas
e265432489 Release 5.2.0.106G
Release 5.2.0.106G

Change-Id: Ib3185d7b6bea94f7eca86797144db9507701f2c5
CRs-Fixed: 774533
2018-11-13 21:11:50 -08:00