Commit Graph

12453 Commits

Author SHA1 Message Date
Bala Venkatesh
46e2903f11 qcacld-3.0: Refactor SAP CFG items
Refactor SAP CFG items gMaxLIModulatedDTIM,
gCountryCodePriority, gSapPreferredChanLocation.

Change-Id: I52a1b3f782c440b12a2f2dcf82d9dad6cf6e76e0
CRs-Fixed: 2351237
2018-11-17 08:00:20 -08:00
nshrivas
14450a0aa5 Release 5.2.0.107
Release 5.2.0.107

Change-Id: I3195b0dc4fd72217d691ceb62eaaa0e670f845f2
CRs-Fixed: 774533
2018-11-16 23:22:55 -08:00
Jeff Johnson
7730fbbd64 qcacld-3.0: Replace halHandle in sap_ch_select
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 halHandle with
mac_handle in sap_ch_select.

Change-Id: I4306005fb2677b1892272e2176e8cc73cb927d29
CRs-Fixed: 2351894
2018-11-16 14:55:36 -08:00
nshrivas
677ca1e763 Release 5.2.0.106Z
Release 5.2.0.106Z

Change-Id: Ie0dd476b5877d6e60653aff471ae70c73d6e7a18
CRs-Fixed: 774533
2018-11-16 09:24:12 -08:00
Jeff Johnson
3ba2732a20 qcacld-3.0: Use vtable in __iw_setint_getnone()
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). A prior set of changes has refactored all of
the individual sub-ioctl handling into separate functions with a
consistent signature. Now convert __iw_setint_getnone() to use a
vtable as the last step of refactoring.

Change-Id: I7f9d5442083a58b9f36e3bb874748d0d5068bc12
CRs-Fixed: 2350073
2018-11-16 09:24:11 -08:00
Sriram Madhvapathi
8a697c8d65 qcacld-3.0: Don't wait for dload-complete for wmi_service_mgmt_tx_wmi
In High Latency interfaces, do not wait for download complete when
management over wmi service is enabled.

Change-Id: I7e1e175fdf5b4c836c504a7a816be4f98d4451a0
CRs-Fixed: 2341451
2018-11-16 09:24:07 -08:00
nshrivas
321ac56671 Release 5.2.0.106Y
Release 5.2.0.106Y

Change-Id: Ice811b113a437f7d19fc733ed1977b89c4a4f986
CRs-Fixed: 774533
2018-11-16 05:10:02 -08:00
wadesong
3777915910 qcacld-3.0: Add missing CFG INI comment text - wave 2
1) Some CFG INI options' comment text are missing.
   Add them so automation script can parse and retrieve the
   correct comment text.
2) Fix some discrepancies in existing CFG INI comments.
3) Delete some INI items that are not used any more.

Change-Id: Ia2fc4fab70f78e99d14fd1f7f2b4248e6484ee32
CRs-Fixed: 2350612
2018-11-16 05:10:01 -08:00
gaurank kathpalia
2fc3b89d0b qcacld-3.0: Fill nss chain params from legacy structure
Fill the cmn nss chains structure from the mlme
nss chain params structure and send to fw

Change-Id: I573b0df20be31af536107f0585e7fa825dc2b6b3
CRs-Fixed: 2349823
2018-11-16 05:09:56 -08:00
gaurank kathpalia
651abcd134 qcacld-3.0: Legacy vdev type nss inis cleanup
With the introduction of new 32 bit ini for per vdev
nss and chains, the legacy inis are no longer required.

Cleanup the legacy inis of per vdev nss for both the
bands.

Change-Id: Ia4c8301062457a15a9bda49dca4a4a36a4372f88
CRs-Fixed: 2349204
2018-11-16 05:09:50 -08:00
gaurank kathpalia
991e2fa092 qcacld-3.0: Store the nss, chain config in vdev priv obj
Store the ini and dynamic configurations in the
respective vdev's mlme priv obj.

Change-Id: Ib7a90937799a188dd729c91e7ee248d3287951c5
CRs-Fixed: 2349201
2018-11-16 05:09:45 -08:00
gaurank kathpalia
24ed0f4056 qcacld-3.0: Infra for mlme_priv_obj with VDEV_SM enable/disable
Define two different mlme priv obj structures
based upon the flag CONFIG_VDEV_SM, for the
support of dynamic nss, chains update.

Change-Id: I00f39eb82973da86233ddfc8bdcc94b6ca8a439a
CRs-Fixed: 2349200
2018-11-16 05:09:40 -08:00
gaurank kathpalia
b414bce3b7 qcacld-3.0: Add prefix NSS_CHAINS to band info
Add prefix NSS_CHAINS to band info to remove duplicate band
info in driver, and minor code cleanup.

Change-Id: I3a8446af6b6c272cfcb19583540e2384f64e3a1a
CRs-Fixed: 2347624
2018-11-16 05:09:35 -08:00
gaurank kathpalia
6982d47826 qcacld-3.0: Accept the dynamic command only in started state
Accept the command to change the dynamic params like nss
and chains only when the vdev is in connected state for
STA/P2P-CLI, and in start state in case of SAP/P2P-GO.

Change-Id: Id4d2e3c4ac6745e25c7005af0b3c95e3e1db4533
CRs-Fixed: 2347488
2018-11-16 05:09:30 -08:00
gaurank kathpalia
ad98049f34 qcacld-3.0: Populate the ini nss, chains value in IEs
For the FW to configure the roaming module to roam either in
1x1, or 2x2 mode, the driver needs to configure the correct
MCS according to the ini params in respective vdev.

Populate the correct MCS values in MCS set of HT, and VHT.

Change-Id: Idfe595d5653ad52455d661f34e58a1502b9e3745
CRs-Fixed: 2347493
2018-11-16 05:09:25 -08:00
gaurank kathpalia
2472fb942e qcacld-3.0: Get the current chains in drv_cmd_get_antenna_mode
In the API drv_cmd_get_antenna_mode, the driver gets the
hdd_ctx->current_antenna_mode, which is pdev level, but
with the new feature of per vdev antenna mode, return the
num of chains for that particular vdev.

Change-Id: Ia8180592c34a29a7593943fc5e10c781682aac56
CRs-Fixed: 2347494
2018-11-16 05:09:20 -08:00
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