Commit gráf

12487 Commit-ok

Szerző SHA1 Üzenet Dátum
gaurank kathpalia
f95ae68380 qcacld-3.0: Remove the pdev level antenna mode
If the new feature of per vdev antenna mode is enabled, there
is no need of per pdev level antenna mode, as it may happen that
one vdev configures its antennas as 2, and the other vdev configures
its antennas as 1, which could lead to change of pdev level antenna
mode, by a vdev level command.

Fix is to keep the antenna mode only if the feature is not enabled.

Change-Id: I67011a5b88f8750cab22d76b1bf6d8ccc1f5375d
CRs-Fixed: 2347495
2018-11-16 05:09:16 -08:00
gaurank kathpalia
1281b30098 qcacld-3.0: Refactor nss update API
Refactor the code to a new API, and
inform the TDLS module about the new
nss change.

Change-Id: Ic478bed0634ba1f862d844994a0836a23eda3f56
CRs-Fixed: 2347496
2018-11-16 05:09:11 -08:00
gaurank kathpalia
db87c0d648 qcacld-3.0: Update dynamic config with user config
After the command to update the user params is sent to FW
update the dynamic config with user config.

Change-Id: I31ac19a86f68d9c2f8f4ce71f88eb12eb2d9b2f0
CRs-Fixed: 2347497
2018-11-16 05:09:07 -08:00
gaurank kathpalia
5836acff3e qcacld-3.0: Send the vdev ini params before vdev start
For fw to store the dynamic config, the host needs to send
the vdev params to fw before vdev start.

Send the vdev ini params to the fw before vdev start.

Change-Id: I83a93481bae8452eb47f9a14d1978e8d8dd02f03
CRs-Fixed: 2347498
2018-11-16 05:09:03 -08:00
gaurank kathpalia
748c7274d3 qcacld-3.0: Send vdev nss params to fw
Infra to send vdev nss chain user params to the fw.

Change-Id: I907ffe0906712b328e276527412530225c23b68e
CRs-Fixed: 2347499
2018-11-16 05:08:58 -08:00
gaurank kathpalia
7cb6a32f47 qcacld-3.0: Add support for dynamic chains update in set antenna mode ioctl
Populate and verify the num of chains params sent by
the user and then send it to the fw.

Change-Id: I9a4870913ce9484d1a5dc5fddcade72bdafb6116
CRs-Fixed: 2347501
2018-11-16 05:08:54 -08:00
gaurank kathpalia
2b32de0c58 qcacld-3.0: Validate nss configuration from user
Validate the nss set by the user and then
send the user config to the firmware

Change-Id: Ia1292e428e0c5b30ff0b96f2387ea29ceec9c97c
CRs-Fixed: 2347502
2018-11-16 05:08:50 -08:00
gaurank kathpalia
78af193878 qcacld-3.0: Populate the ini and dynamic params
Populate the ini and dynamic params from the mlme
component and store them to the respective
vdev component in mlme priv obj during vdev create.

Change-Id: Ic80526e51ba97c24b5340843fc97406a6ba4c7ef
CRs-Fixed: 2347504
2018-11-16 05:08:46 -08:00
gaurank kathpalia
6c9d1c3e70 qcacld-3.0: Populate ini params in mlme_cfg
Populate the ini params from ini file and store them
in mlme_cfg structure.

Change-Id: I3eb8e60e26deeb24228d9b8a24bb957478344492
CRs-Fixed: 2347505
2018-11-16 05:08:42 -08:00
gaurank kathpalia
5fcefa93b0 qcacld-3.0: Populate the per vdev chain capability in hdd context
Populate the feature capability from wmi to hdd config

Change-Id: I8931da53fb50229b405a2b7c1802a6d15a35781b
CRs-Fixed: 2347619
2018-11-16 05:08:38 -08:00
gaurank kathpalia
899ffa1ab1 qcacld-3.0: Add new ini file for chainmask feature
Add New inis for nss, chains, and disable_diversity
values.

Change-Id: I837d64f58d3c2386b43ee3cdcc095f7833954c12
CRs-Fixed: 2347385
2018-11-16 05:08:34 -08:00
Nirav Shah
7c8c171e05 qcacld-3.0: Remove unnecessary prints from data path
1. Remove error prints for qdf_mem_malloc APIs.
2. Remove unnecessary __func__ from data path prints.

Change-Id: I6c4b110f626d84da055821c5f210a3d000b6ff15
CRs-Fixed: 2317315
2018-11-16 05:08:30 -08:00
nshrivas
e7860df2b8 Release 5.2.0.106X
Release 5.2.0.106X

Change-Id: I0ffb7c8d8dc6f902b069fca8001a91e8eb4ef4b4
CRs-Fixed: 774533
2018-11-16 02:39:23 -08:00
Abhishek Singh
0ba1e8f90e qcacld-3.0: Fix serialization command list full issue
In __wlan_hdd_cfg80211_del_station while disconnecting all the
connected stations, driver send both disassoc and deauth and wait
for disconnect to complete for the STA. Once disconnect is completed
for the 1st STA, it continue to disconnect the next STA.

Now as both disassoc and deauth were queued and both of them set the
wait event resulting in wait event set twice for a disconnect
indication. This result in wait completion for the next STA disconnect
as well. This lead dynamo effect and multiple STA disassoc and deauth
commands are added in the serialization queue filling it up.

Fix this by sending only deauth STA req and removing the duplicate
disassoc STA req. Thus the next command will be queued only when
disconnect is completed for 1st STA.

Change-Id: I4ae6c578a3177a2a6ff75e6e75606e8c5e2f81a0
CRs-Fixed: 2350557
2018-11-16 02:39:22 -08:00
nshrivas
c5367d1c35 Release 5.2.0.106W
Release 5.2.0.106W

Change-Id: I3afa5374dc1b78073c643755ffb101cc0d3fd4b1
CRs-Fixed: 774533
2018-11-16 01:04:02 -08:00
Jeff Johnson
deab857b1b qcacld-3.0: Change hdd_we_set_11d_state() signature
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 update hdd_we_set_11d_state() to conform with a consistent
int()(adapter, value) signature.

Change-Id: I96a7424630ffc9fd3a8713d980fe6efad4a7be05
CRs-Fixed: 2350071
2018-11-16 01:04:02 -08:00
Jeff Johnson
b43ec12eb5 qcacld-3.0: Refactor WE_SET_MODULATED_DTIM 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_MODULATED_DTIM ioctl handling into a separate
function.

Change-Id: I81701e1c54e62deb01468bb16a940ae823014d04
CRs-Fixed: 2350072
2018-11-16 01:03:57 -08:00
Jeff Johnson
74696bbda0 qcacld-3.0: Refactor WE_SET_11AX_RATE 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_11AX_RATE ioctl handling into a separate
function with a consistent int()(adapter, value) signature.

Change-Id: Iaaba30073d59f96faddcb9f9baaabc60b8e58ee5
CRs-Fixed: 2350070
2018-11-16 01:03:53 -08:00
Jeff Johnson
d3f1efd8fa qcacld-3.0: Refactor WE_SET_CONC_SYSTEM_PREF 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_CONC_SYSTEM_PREF ioctl handling into a
separate function.

Change-Id: I89a0037902935d7ebf3c5ba3064ff9469d025c13
CRs-Fixed: 2350069
2018-11-16 01:03:49 -08:00
Jeff Johnson
e50951c939 qcacld-3.0: Refactor WE_SET_SCAN_DISABLE 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_SCAN_DISABLE ioctl handling into a separate
function.

Change-Id: I412098141c3d4664c24ef40d10d0372051b19b6b
CRs-Fixed: 2350068
2018-11-16 01:03:45 -08:00
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
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
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
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
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