Commit Graph

12453 Commits

Author SHA1 Message Date
Abhishek Singh
4e2676e7a3 qcacld-3.0: Cleanup the unused serialization commands
Cleanup the serialization commands that are not used now.

Change-Id: I340c52fb3180bec94508c5d5d36f43ba6efab143
CRs-Fixed: 2344570
2018-11-05 16:15:15 -08:00
Abhinav Kumar
7d6f1ac679 qcacld-3.0: ADD MLME INI items of WMM Configuration
Add the following WMM config  ini configs to MLME cfg:

1. CFG_QOS_WMM_MODE_NAME
2. CFG_QOS_WMM_80211E_ENABLED_NAME
3. CFG_QOS_WMM_UAPSD_MASK_NAME
4. CFG_QOS_IMPLICIT_SETUP_ENABLED_NAME

Change-Id: I0c6354960b49d680e3efe304ea3300059c37015c
CRs-Fixed: 2327691
2018-11-05 16:15:11 -08:00
Abhinav Kumar
2af8c12ac9 qcacld-3.0: ADD MLME INI items of WMM AC_BK
Add the following WMM BE VO ini configs to MLME cfg:
1. CFG_QOS_WMM_INFRA_DIR_AC_BK_NAME
2. CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BK_NAME
3. CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BK_NAME
4. CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BK_NAME
5. CFG_QOS_WMM_INFRA_SBA_AC_BK_NAME
6. CFG_QOS_WMM_INFRA_UAPSD_BK_SRV_INTV_NAME
7. CFG_QOS_WMM_INFRA_UAPSD_BK_SUS_INTV_NAME

Introduce the basic infra APIs related to these configs
from mlme.

Change-Id: I1f8e6f0fa1ff15eda36a20ee06772c4a1ddd9ca8
CRs-Fixed: 2327690
2018-11-05 16:15:07 -08:00
nshrivas
f20cae5f99 Release 5.2.0.104U
Release 5.2.0.104U

Change-Id: I934f67b9850982a040190491726c21ef8e62c981
CRs-Fixed: 774533
2018-11-05 14:47:52 -08:00
Sandeep Puligilla
3a1e42a31c qcacld-3.0: Disable VDEV manager
Disable vdev manager feature through Kbuild option.

Change-Id: If89029c0f428b9b6d1d053ac23170192602e0333
CRs-Fixed: 2344437
2018-11-05 14:47:52 -08:00
Jeff Johnson
5bb786041f qcacld-3.0: Remove csr_set_phy_mode()
Function csr_set_phy_mode() is not used. Since it is apparently
obsolete, remove it.

Change-Id: I742060a27e6501ee894348d2a915f50f550ef6da
CRs-Fixed: 2344316
2018-11-05 14:47:47 -08:00
Tushnim Bhattacharyya
4a0de7ac35 qcacld-3.0: Free roam_info in sme_rrm_send_scan_result
Free roam_info in sme_rrm_send_scan_result for all error cases to
avoid memory leak.

Change-Id: I9a30c0c5e349d926092a881c4e2720100836e9d1
CRs-Fixed: 2344465
2018-11-05 14:47:44 -08:00
nshrivas
ee15c8f710 Release 5.2.0.104T
Release 5.2.0.104T

Change-Id: I721cb160c665301b9666f6331cc1fd1f6021c655
CRs-Fixed: 774533
2018-11-05 12:17:56 -08:00
Bala Venkatesh
d267bf8de4 qcacld-3.0: Avoid NULL pointer access in function wma_send_bcn_buf_ll
In function wma_send_bcn_buf_ll, bcn info is filled from
wma handle by mapping the vdev id. For valid vdev id also wma_handle
could have NULL beacon info. So, check for NULL pointer before
accessing the bcn pointer.

Change-Id: I660c8231801eb28962edc364a139e7980febb71e
CRs-Fixed: 2336946
2018-11-05 12:17:56 -08:00
nshrivas
e0b4b7f183 Release 5.2.0.104S
Release 5.2.0.104S

Change-Id: I5ea2584edf006ce36c4bf89c2b6269f106f92788
CRs-Fixed: 774533
2018-11-05 10:57:38 -08:00
jiad
4afa84fe51 qcacld-3.0: Abstract BMI CE callbacks
As part of WIN BMI modularization, hif_bmi_register_callbacks
are removed from if_pci.c in qcacmn project. As a result,
MCL needs to invoke hif_bmi_register_callbacks in qcacld project.

Fix is to call bus agnostic hif_register_bmi_callbacks method
in bmi_download_firmware.

Change-Id: I72febb02150cf9c672bea4949c53f1b87fa69cdf
CRs-Fixed: 2332266
2018-11-05 10:57:38 -08:00
nshrivas
39cbd468c8 Release 5.2.0.104R
Release 5.2.0.104R

Change-Id: Idb04e92c857c3ef5b40e499cb20b59f826c99d70
CRs-Fixed: 774533
2018-11-05 06:32:51 -08:00
Abhinav Kumar
e94f248f2e qcacld-3.0: ADD MLME INI items of WMM AC_BE
Add the following WMM BE VO ini configs to MLME cfg:
1. CFG_QOS_WMM_INFRA_DIR_AC_BE_NAME
2. CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_BE_NAME
3. CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_BE_NAME
4. CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_BE_NAME
5. CFG_QOS_WMM_INFRA_SBA_AC_BE_NAME
6. CFG_QOS_WMM_INFRA_UAPSD_BE_SRV_INTV_NAME
7. CFG_QOS_WMM_INFRA_UAPSD_BE_SUS_INTV_NAME

Introduce the basic infra APIs related to these configs
from mlme.

Change-Id: Ibaf06ba2df07a4805d31a4748809c44d143dd12e
CRs-Fixed: 2327689
2018-11-05 06:32:50 -08:00
Abhinav Kumar
4c8e026865 qcacld-3.0: ADD MLME INI items of WMM AC_VI
Add the following WMM AC VI ini configs to MLME cfg:

1. CFG_QOS_WMM_INFRA_DIR_AC_VI_NAME
2. CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VI_NAME
3. CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VI_NAME
4. CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VI_NAME
5. CFG_QOS_WMM_INFRA_SBA_AC_VI_NAME
6. CFG_QOS_WMM_INFRA_UAPSD_VI_SRV_INTV_NAME
7. CFG_QOS_WMM_INFRA_UAPSD_VI_SUS_INTV_NAME

Introduce the basic infra APIs related to these configs
from mlme

Change-Id: I320f49b216659937dc7f708fdbb7849ae415e249
CRs-Fixed: 2327687
2018-11-05 06:32:46 -08:00
nshrivas
4e996b018c Release 5.2.0.104Q
Release 5.2.0.104Q

Change-Id: I68b316146ed335c558cc04c9d936b1682acf86e8
CRs-Fixed: 774533
2018-11-02 12:38:58 -07:00
Kiran Kumar Lokere
eaaa3462e6 qcacld-3.0: Fix the issue with SU Tx beamformee in 20MHz mode
Correct the configuration check to enable/disable the Tx SU
beamformee setting in 20MHz mode operation.

Change-Id: I958d5319acf98931187304f2c6fe2a9aff5991b7
CRs-Fixed: 2343849
2018-11-02 12:38:57 -07:00
nshrivas
d3826022f0 Release 5.2.0.104P
Release 5.2.0.104P

Change-Id: I8f2ac5dc9ab9ce3fddec10cb26039989149228e7
CRs-Fixed: 774533
2018-11-02 10:52:59 -07:00
Abhinav Kumar
03522c2330 qcacld-3.0: Acquire wake lock timeout for rrm scan
Currently driver acquires wakelock for scans received from hdd.
But for RRM scan initiated from AP for beacon reports, the
wakelock is not acquired and if host goes to suspend while scan
is in progress,FW asserts.

Fix is to avoid the system suspend by taking the wakelock
before rrm scan start.

Change-Id: I02ddc9b5e6ba5f1782d00e34f044ace34c54d0b0
CRs-Fixed: 2331741
2018-11-02 10:52:59 -07:00
nshrivas
353cbfee9c Release 5.2.0.104O
Release 5.2.0.104O

Change-Id: Ida50a54654029c8851eb5c93541d7530feac446c
CRs-Fixed: 774533
2018-11-02 09:30:50 -07:00
Bala Venkatesh
4183779454 qcacld-3.0: Reset auth_failure_timeout in pe_delete_session
auth_failure_timeout is updated as part of
lim_check_and_announce_join_success for p2p client with NOA.
And the default value is stored in pe_session->defaultAuthFailureTimeout
After receiving the auth resp or in case of auth failure the
auth_failure_timeout is reset to default value. But there is any other
failure and pe session is deleted then the auth_failure_timeout is
not reset. And p2p cli connection will use the wrong auth timeout.
And can result in connection delay's if GO doesn't send the auth response.

Reset the auth_failure_timeout to defalut as part of pe_delete_session.
And decrease the max value to 5000ms.

Change-Id: I374bf45279f086127ef062b83a06049c895c4675
CRs-Fixed: 2343832
2018-11-02 09:30:49 -07:00
nshrivas
d0592c7926 Release 5.2.0.104N
Release 5.2.0.104N

Change-Id: I72d5c444b9a816452eb975513bb79e122f203e6d
CRs-Fixed: 774533
2018-11-02 06:32:47 -07:00
Sravan Kumar Kairam
887e89ebe0 qcacld-3.0: Log TX net queue state for tx timeout
Currently in case of net tx timeout there is no information
which net tx queue is paused. So log the information of all
net tx queue state in case of tx timeout.

Change-Id: I0b92bd98ad68afcaba9b0f3babb135466bdfa503
CRs-Fixed: 2335572
2018-11-02 01:55:29 -07:00
nshrivas
13402e185c Release 5.2.0.104M
Release 5.2.0.104M

Change-Id: I1111396867fb233b632d7aab07451a9c5afe5224
CRs-Fixed: 774533
2018-11-01 23:03:53 -07:00
Krunal Soni
457ec247dd qcacld-3.0: Enable Shadow register V2 in defconfig build
All the changes related to Shadow register V2 are added to
defconfig build for lithium platform.

Kickstart them by enabling CONFIG_SHADOW_V2 in config.

CRs-Fixed: 2343779
Change-Id: I07c93b5d43edc5010e501ab06cc7050a6e8c9c7f
2018-11-01 23:03:52 -07:00
nshrivas
6a45a2c250 Release 5.2.0.104L
Release 5.2.0.104L

Change-Id: I85763e7862d9ccf2d18e75bc90f3668830e2546a
CRs-Fixed: 774533
2018-11-01 21:18:05 -07:00
Jeff Johnson
1a05fda843 qcacld-3.0: Refactor WE_SET_GTX_* 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_GTX_* ioctl handling into separate functions.

Change-Id: I8303aaaa8009e568684a9a54dbfd92ea98b3df5e
CRs-Fixed: 2343555
2018-11-01 21:18:04 -07:00
Dustin Brown
db2df2e3d9 qcacld-3.0: Move psoc destroy to hdd_context_destroy
Ida2b81eef0ebbfba2749ca89b63980201830a5e2 moved psoc create into
hdd_context_create(), however the destroy path remained as it was. This
caused a regression in the error path where the psoc was not cleaned up
in all cases. Move the psoc destroy into hdd_context_destroy to maintain
symmetry and avoid leaking the psoc under error conditions.

Change-Id: I3b16c9ea37dcf3e3b0ef262894aead5ff4fac59c
CRs-Fixed: 2342955
2018-11-01 21:18:00 -07:00
nshrivas
97dd4e13f5 Release 5.2.0.104K
Release 5.2.0.104K

Change-Id: I988fba4ee82d022bee91b9ac1803817957f4a485
CRs-Fixed: 774533
2018-11-01 17:24:03 -07:00
Arif Hussain
6e4d14adf7 qcacld-3.0: dfs: Remove zero cac files from build
Remove zero cac files from build

Change-Id: Ic1864a4d02e17458e9b2620e675b59c1b9066ced
CRs-Fixed: 2343692
2018-11-01 17:24:02 -07:00
nshrivas
d6f83affad Release 5.2.0.104J
Release 5.2.0.104J

Change-Id: I8e0615aa1741fed9eda2af0ade26ffae4a295a0f
CRs-Fixed: 774533
2018-11-01 15:38:19 -07:00
Kiran Kumar Lokere
9159af6963 qcacld-3.0: Fix the issue with SU Tx beamformer cfg setting
There are two cfg setting parameters defined for SU Tx beamformer
and improperly updated the cfg settings hence the Tx beamformer
capability advertised as unsupported always.
Remove the redundant setting for SU Tx beamformer and update the cfg
with correct values.

Change-Id: I422179ae87ab5c561f0356bcab4585fbdc53c0bd
CRs-Fixed: 2343090
2018-11-01 15:38:18 -07:00
Ashish Kumar Dhanotiya
6784b5042b qcacld-3.0: Release Interface MAC addresses gracefully
Currently if any interface comes up on any of the MAC address
from the driver's default MAC address list and if this MAC is
changed dynamically, now if this interface is deleted, it will
not be able to release this MAC address as this newly
configured MAC doesn't match with any of the MAC from the
driver's default MAC addresses and driver is not able to
release this MAC cosidering it as invalid MAC, because of
this corresponding MAC interface mask bit is also not getting
reset and will never get reset, indicating corresponding MAC
is not available for use. If MAC addresses are changed for all
the interfaces which initially comes up on driver's default
MAC address and later these interfaces are deleted, driver
will not be able to add any of new interfaces even there is
no active interface currently in the driver.

To resolve this issue add one more MAC address list for dynamic
addresses cache all the dynamic address changes in this list,
while releasing the MAC on interface delete, release the MAC
from this dynamic list and reset the corresponding interface
mask bit.

Change-Id: I9b6448dced2d3af75625a5c862d2913c33f9983c
CRs-Fixed: 2328304
2018-11-01 15:38:14 -07:00
nshrivas
d37095395b Release 5.2.0.104I
Release 5.2.0.104I

Change-Id: I539008431558b1a9bda7e0b6bb5de5225cf740af
CRs-Fixed: 774533
2018-11-01 09:17:41 -07:00
chenguo
7130396803 qcacld-3.0: Reinitialize PM objects for monitor mode
Function hdd_override_all_ps is only used for monitor mode. In
this function, unexpected PM objects will cause initialization
malfunction. Move these PM objects setting after vdev creation.

CRs-Fixed: 2338261
Change-Id: I0d0e7b1bc4ec0853a274bdea8db2bbe3a3dbe885
2018-11-01 09:17:40 -07:00
nshrivas
219f442c44 Release 5.2.0.104H
Release 5.2.0.104H

Change-Id: I28deb33495765fc0f42d2ae62a63e22c3f3b6fa1
CRs-Fixed: 774533
2018-11-01 07:40:43 -07:00
Abhishek Singh
ec7e31a70a qcacld-3.0: Do not register SAP as requestor again after reinit
During SSR the sap context is reinitialized and it request for
scan request id again deleting the older request id from scan module
this can lead to situation where the scan requestor list is filled by
SAP request id's and thus next request for request id will return 0.

Now during de init when it try to delete the requestor id 0 it delete
the 0th entry which is for CFG. Now if again SAP register the request
id it will get the 0th index which was freed and thus when CFG
requests a scan the sap callback is called instead of CFG leading to
NULL pointer access.

Fix this by not registering for request id again after SSR for SAP.

Change-Id: Ibc8ad0700b602a9c3d2769d979303499df8d6605
CRs-Fixed: 2341133
2018-11-01 07:40:42 -07:00
nshrivas
4892289f62 Release 5.2.0.104G
Release 5.2.0.104G

Change-Id: I39d611c7f0952e616788ba4e9a4cba419246d6e6
CRs-Fixed: 774533
2018-11-01 05:42:07 -07:00
jitiphil
377bcc1227 qcacld-3.0: Add legacy DP CFG items and APIs
Add the basic infra for legacy DP CFG items and the APIs
to be used from other components.

Change-Id: If7ad0e02c65e04ea13a308e680c9ba3b3d84ae25
CRs-Fixed: 2324099
2018-11-01 05:42:07 -07:00
nshrivas
ce205098f5 Release 5.2.0.104F
Release 5.2.0.104F

Change-Id: I26eaff5b645eea2b54eea713306ca6636c904c17
CRs-Fixed: 774533
2018-11-01 04:20:16 -07:00
Abhishek Singh
8d11564b56 qcacld-3.0: Fix memory leak of sap_ctx->channelList
In sap_deinit_ctx() the check to free sap_ctx->channelList is after
sap_ctx is memset to 0 and thus sap_ctx->channelList will always be
NULL and memory will never get freed.

Also there is no need to reset scan_vdev_del_in_progress after vdev
is deleted in firmware as there still can be the race when scan is
processed. scan_vdev_del_in_progress will be deleted with obj_mgr
vdev so no need to reset it.

Change-Id: Ie5f133d4db48485434436e67ce1643d8e1e04106
CRs-Fixed: 2342039
2018-11-01 04:20:16 -07:00
nshrivas
b322f913bc Release 5.2.0.104E
Release 5.2.0.104E

Change-Id: I7f9ad0c42f5ea9106a58abdc12bcd494f47fee4f
CRs-Fixed: 774533
2018-10-31 23:04:24 -07:00
Jeff Johnson
d0477f2b7a qcacld-3.0: Refactor WE_PPS_* processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of all of the WE_PPS_* sub-ioctls
has a complexity greater than 1, so refactor that logic into separate
functions to help reduce the complexity of __iw_setint_getnone().

Change-Id: I2abde9c5e300302c7948049027d2db88c893211a
CRs-Fixed: 2341123
2018-10-31 23:04:23 -07:00
nshrivas
e890acc0a7 Release 5.2.0.104D
Release 5.2.0.104D

Change-Id: I04ad27b4d8a8cf21fe70ae52acc643029079e666
CRs-Fixed: 774533
2018-10-31 19:20:37 -07:00
Harprit Chhabada
bd027a00e8 qcacld-3.0: Initialize the ACS cfg items in MLME
Initialize the following ACS cfg items:
1.CFG_ACS_WITH_MORE_PARAM_NAME
2.CFG_AUTO_CHANNEL_SELECT_WEIGHT
3.CFG_USER_AUTO_CHANNEL_SELECTION
4.CFG_USER_ACS_DFS_LTE
5.CFG_EXTERNAL_ACS_POLICY

Change-Id: I9500964076b29ba4f067ee25dffa019327cce901
CRs-Fixed: 2342046
2018-10-31 19:20:37 -07:00
nshrivas
5da0012aeb Release 5.2.0.104C
Release 5.2.0.104C

Change-Id: I9ee71438b0ec536153000f7e630c879d7db0e256
CRs-Fixed: 774533
2018-10-31 16:28:11 -07:00
Abhishek Singh
254d551576 qcacld-3.0: Fix mem leak in join and reassoc req
If event posting to VDEV state machine fails, the memory allocated
in lim join and reassoc req is not freed, leading to mem leak.

Fix this by freeing the memory in failure cases.

Change-Id: I3769684e6ad64341b73dd6f6343adc8c0d26d04c
CRs-Fixed: 2342487
2018-10-31 16:28:11 -07:00
nshrivas
e903e91e63 Release 5.2.0.104B
Release 5.2.0.104B

Change-Id: I45fadf4e36b00aa3b7fa129ffbe7517016f4853a
CRs-Fixed: 774533
2018-10-31 15:00:17 -07:00
Rajeev Kumar Sirasanagandla
e5787e2440 qcacld-3.0: Handle failure of self peer remove in SSR
When SSR is in progress, when trying to remove self peer, if
wma_remove_peer() is failed then wma_vdev_detach() doesn't send del sta
response and wma_self_peer_remove() can still proceed to start vdev
hold request timer. This can lead to skip of vdev reference count
release by wma acquired during vdev attach.

To address this, release vdev reference count when self peer remove is
failed and when del self sta request is timed-out.

Change-Id: I2703261a848983b10798cb8ec74d1cec5a393ce5
CRs-Fixed: 2342453
2018-10-31 15:00:17 -07:00
Jinwei Chen
c163f9ed3e qcacld-3.0: modify WAPI initial PN value
Currently Napier FW WAPI TX/RX initial PN logic is fit for WIN
host, modify MCL host to align with WIN so that WAPI can work.

Change-Id: I0b49a25e75d1e9c4856daf8648d6561486005ba9
CRs-Fixed: 2323152
2018-10-31 15:00:12 -07:00
nshrivas
8501e50fbb Release 5.2.0.104A
Release 5.2.0.104A

Change-Id: Ifb1e762f9ab8dc7b6c371fd7f83d872be6540de9
CRs-Fixed: 774533
2018-10-31 13:21:15 -07:00