커밋 그래프

10510 커밋

작성자 SHA1 메시지 날짜
Venkata Sharath Chandra Manchala
75795d61a6 qcacld-3.0: Fix for parsing raw pktlog data
Pktlog tool considers pktlog header of size 16bytes
which includes type_specific_data as one of its parameters
Remove heliumplus flag as the type specific
data parameter is needed for debugging for lithium based
products.

Change-Id: Ibc508b527d270121eb6c40663047d3b6a2b7d887
CRs-Fixed: 2253005
2018-06-13 12:30:32 -07:00
nshrivas
a8195d0919 Release 5.2.0.82J
Release 5.2.0.82J

Change-Id: I64687a85a416e0101044543910336a8acae3d388
CRs-Fixed: 774533
2018-06-11 04:45:12 -07:00
Pragaspathi Thilagaraj
b4b7aae0e1 qcacld-3.0: Fix possible NULL pointer dereference in lim_process_messages
In the function lim_process_messages, msg is received as the
argument. msg->bodyptr is accessed before checking if the msg is
NULL. This can cause a NULL pointer dereference if msg is NULL.

Moved the NULL check for the msg structure prior to accessing msg.

Change-Id: I61fc5fc65c9604bd5a82d7e226d9a4a9c30aebd2
CRs-Fixed:  2245791
2018-06-11 04:45:12 -07:00
jitiphil
2de7d6ef8e qcacld-3.0: Use of %p in htt_t2h_tx_ppdu_log_print()
Introducing integer overflow checks in htt_t2h_tx_ppdu_log_print()
contained use of %p which violates security guidelines.

Change %p to %pK.

Change-Id: I9e886e9b065ea6902aeedc3d9c25aac76a07d6de
CRs-Fixed: 2252217
2018-06-11 04:45:08 -07:00
nshrivas
bee83ddc48 Release 5.2.0.82I
Release 5.2.0.82I

Change-Id: I3268091aec71d0b9f98aa6cfe48902080aecd24e
CRs-Fixed: 774533
2018-06-11 03:03:25 -07:00
Paul Zhang
8bbbcdf465 qcacld-3.0: Retry if request_firmware returns EAGAIN
Loading driver is fail because request_firmware returns
EAGAIN when it invokes usermodehelper_read_trylock during
system suspend happens. Though system suspend is aborted,
it hasn't invoked usermodehelper_enable yet.

To resolve this issue, retry again to check whether
usermodehelper_enable has done.

Change-Id: I80f95c2194039a67adbc463a32bfc0a15e68484b
CRs-Fixed: 2251604
2018-06-11 03:03:24 -07:00
nshrivas
1687e16c01 Release 5.2.0.82H
Release 5.2.0.82H

Change-Id: I1be89d262fc10e0c9ff97ae30d9b8916f7a7406f
CRs-Fixed: 774533
2018-06-10 23:55:59 -07:00
Sourav Mohapatra
2101268ece qcacld-3.0: Add compile time check for cRegTableEntries
The maximum value of the variable cRegTableEntries is defined in
MAX_CFG_INI_ITEMS. In the scenario the value is greater than this it
may cause an overrun may occur due to the weak guard.

Turn the runtime check into compile time check to prevent such scenario.

Change-Id: I58a0d47a32d457297d3caa456fd0ca03523ed9f5
CRs-Fixed: 2232723
2018-06-10 23:55:58 -07:00
Abhishek Singh
0edeba0e83 qcacld-3.0: Avoid timeout in case of back to back connect req
In case of back to back connect req, if the 1st connect is in scan for
ssid phase, the 2nd connect req try to cleanup the 1st connect and wait
for disconnect complete variable for 5 sec. In this scenario as cleanup is
pending, the scan for ssid will fail and result in the association
failure.

But in association failure the disconnect complete variable is not
completed and thus the 2nd connect req keeps on waiting for 5 sec.

To fix this complete the disconnect complete variable in association
failure, if reason is scan for ssid failure and hdd disconnect is pending.

Change-Id: Ibc0cfb72d04442e82847dd624ede15eda340b766
CRs-Fixed: 2256376
2018-06-10 23:55:54 -07:00
nshrivas
f00251b320 Release 5.2.0.82G
Release 5.2.0.82G

Change-Id: I83f1f8cb323823321997e38381318e8e5f49f6d4
CRs-Fixed: 774533
2018-06-10 16:39:17 -07:00
Jeff Johnson
21b678d640 qcacld-3.0: Introduce mac_handle_t
Currently tHalHandle is used as the opaque handle for the primary data
structure within the protocol stack. This name is an anachronism given
that the HAL layer was moved to firmware many generations ago. In
addition the name does not conform to the Linux Kernel naming
convention.

To address these issues introduce a new identifier, mac_handle_t, to
be used as the opaque handle. Keep tHalHandle as a typedef to
mac_handle_t until such time that all references have been replaced.

In addition introduce a new set of conversion functions, MAC_CONTEXT()
and MAC_HANDLE(), to be used to convert between these two kinds of
references.

Change-Id: I9d0d7d109621237f29d66f7b06c5b63c38f63fb2
CRs-Fixed: 2257659
2018-06-10 10:47:39 -07:00
nshrivas
c1b00aa228 Release 5.2.0.82F
Release 5.2.0.82F

Change-Id: I76dedfcd65a1f2e073acce418ef90992f3897280
CRs-Fixed: 774533
2018-06-09 09:11:15 -07:00
Vignesh Viswanathan
b58161cf1f qcacld-3.0: Fix 11k offload support check in wma_send_offload_11k_params
In function wma_send_offload_11k_params, check to support 11k offload
in FW fails due to usage of older WMI_SERVICE_EXT_IS_ENABLED leading
to 11k offload params not sent to FW.

Add changes to use wmi_service_enabled instead of
WMI_SERVICE_EXT_IS_ENABLED in wma_send_offload_11k_params.

Change-Id: Ic71043f448d74066a234ae1cb9513a1580011abd
CRs-Fixed: 2255255
2018-06-09 09:11:14 -07:00
Will Huang
0724417fbf qcacld-3.0: Update max_vdev_count to psoc objmgr
Currently max_intf_count which report from target only update to hdd
layer, but there might be a race condition if don't update to objmgr:
There are already max_intf_count vdev created, one of the vdev is
closing by supplicant, vdev is logically deleted and referenced by
other function and waiting for cleaning. The interface count of hdd
layer is already decreased to accept opening new adapter, but the
vdev_id which derived from objmgr vdev is still occupied so the new
vdev have to choose max_intf_count as vdev_id, which makes target
assert.

Update max_vdev_count to psoc objmgr in hdd_update_tgt_cfg()

Change-Id: Ifff0b79cfb4645bb466a22da2d7d07040eee2bd0
CRs-Fixed: 2241098
2018-06-09 09:11:11 -07:00
nshrivas
eb92e54035 Release 5.2.0.82E
Release 5.2.0.82E

Change-Id: I63632268378ba86450aa08b2b991f7d3f0d35afb
CRs-Fixed: 774533
2018-06-09 00:09:17 -07:00
Nirav Shah
99f4994cfd qcacld-3.0: Pass WLAN_ROOT value for make clean
Pass WLAN_ROOT value for make clean operation
on non-msm platforms.

Change-Id: Ib431143f7fdd6e220864fba77e79a40fc1347881
CRs-Fixed: 2255926
2018-06-09 00:09:16 -07:00
nshrivas
52702d9e36 Release 5.2.0.82D
Release 5.2.0.82D

Change-Id: I836d50b8ca40741efe9a41baf2f256fe8353e5f2
CRs-Fixed: 774533
2018-06-08 22:59:36 -07:00
Rajeev Kumar
4471f1b106 qcacld-3.0: Add magic string for WLAN WD timeouts
To speed up auto triage add magic string whenever driver detects
OPs watchdog timeout.

Change-Id: I2e8dad86b5056f30e82f7dfe9ebc0b4f24672310
CRs-Fixed: 2257331
2018-06-08 22:59:35 -07:00
Rajeev Kumar
617aadd2a2 qcacld-3.0: Enable PNO feature in FW feature config
Enable PNO feature in FW feature config such that WiFi
kernel space driver can return proper PNO feature capability
to user space.

Change-Id: I1360050aab0224b109ee9b3912d1aa428f5a5ed7
CRs-Fixed: 2249491
2018-06-08 22:59:32 -07:00
Rajeev Kumar
85ffc26c54 qcacld-3.0: Disable MAWC feature in config file
Disable MAWC features in HDD config file.

Change-Id: I0cbe8857a7be1c7e12ffdfab7d5683034e1981c8
CRs-Fixed: 2252904
2018-06-08 22:59:29 -07:00
nshrivas
38205382a4 Release 5.2.0.82C
Release 5.2.0.82C

Change-Id: Id1ce69a5ef784c1b25781e079ea31538ff4637d3
CRs-Fixed: 774533
2018-06-08 21:34:48 -07:00
Nachiket Kukade
107f639cce qcacld-3.0: Change wow event API's to accept wow event types
Current ucfg API's that disables wow events accept a u32 bitmap
variable. A pointer to that variable is passed to core API where
it assumes it as a u32 array of 4 bytes. This will lead to out of
bound memory access.

Change wow enable/disable API's to accept wow event type as the
parameter.

Change-Id: I220aaddfea62ab96f121014d0d65a1406988c946
CRs-Fixed: 2233108
2018-06-08 21:34:47 -07:00
nshrivas
acfc426b2e Release 5.2.0.82B
Release 5.2.0.82B

Change-Id: I739aae3788db357f405a7374f25ec245e7e368a3
CRs-Fixed: 774533
2018-06-08 20:14:06 -07:00
Alok Kumar
d27a9ed4f7 qcacld-3.0: Fix race vdev down and tx_desc->vdev access
ol_tx_update_connectivity_stats() in tx completion
path updates connectivity stats referenced from tx_desc.
In cases when vdev has gone down and tx completion are received
leads to NULL vdev access. So, add check before accessing vdev.

Change-Id: I402d740ab3ecd923aa1b632bd0c59447599c17df
CRs-Fixed: 2225053
2018-06-08 20:14:06 -07:00
Manjunathappa Prakash
7c985c7995 qcacld-3.0: Fix race vdev down and tx_desc->vdev access
ol_tx_update_arp_stats() in tx completion path updates the per vdev
arp statistics. vdev is referenced from tx_desc.
In cases when vdev has gone down and tx completion are received leads
to NULL vdev access. So clear reference to vdev inside tx_descs when
vdev goes down.

Change-Id: Ic8c854b42ece41489f71e1374e5e72580308e9fe
CRs-Fixed: 2215312
2018-06-08 20:14:03 -07:00
Zhu Jianmin
4bf615e184 qcacld-3.0: Fix reassoc issue for Passpoint TC5.2.a
After DUT connected AP,  run on CLI: iwpriv wlan0 reassoc,
QDF_BUG(0) in driver on Rome.

When reassoc to current connected AP, LFR2 and LFR3 have
different design.
Helium supports LFR3, send WMI_ROAM_INVOKE_CMDID to F/W to
trigger offload roaming.
Rome only supports LFR2, Send vdev start cmd to F/W while
vdev already started first, then send reassoc frame.

Passpoint TC5.2a need reassoc to current connected AP.

Change-Id: Ic0e2c945c6978835f39ec1746f625a0c52f643a7
CRs-Fixed: 2232538
2018-06-08 20:14:00 -07:00
Ryan Hsu
338cc11b96 qcacld-3.0: remove the unnecessary stats reset operation
In the case of invalid iface_ctx, the stats reset operation is not
needed, so removed it.

Change-Id: I48b4b42717451e1ccbfc9753147e65d35ff78df4
CRs-fixed: 2254683
2018-06-08 20:13:57 -07:00
nshrivas
70a7220e37 Release 5.2.0.82A
Release 5.2.0.82A

Change-Id: I618d1c9564f8845bc2de396219c4f6c4ec9a3811
CRs-Fixed: 774533
2018-06-08 19:00:04 -07:00
Nirav Shah
8ba94a5d59 qcacld-3.0: Enable size optimization compiler flag for genoa
Enable size optimization compiler flag for genoa

Change-Id: Ibda9f6baf07077b0fcc6ae4d7bd6c148252cc82b
CRs-Fixed: 2255923
2018-06-08 19:00:03 -07:00
Nirav Shah
997e083b0f qcacld-3.0: Configure log buffer size from Kbuild
Configure log buffer size from Kbuild.

Change-Id: If84653ea8f5ef2a94cc006b1c62ac468de2e408a
CRs-Fixed: 2255920
2018-06-08 19:00:00 -07:00
Nirav Shah
a72db1d340 qcacld-3.0: Kbuild: Cleanly featurize data path debug flags
Define separate configuration options for the various data path
debug features and use those options to set the associated
ccflags macros.

Change-Id: Ia410557bb9fa22731d83b46e61f394b14781d61f
CRs-Fixed: 2255915
2018-06-08 18:59:56 -07:00
Nirav Shah
91daea9427 qcacld-3.0: Remove duplicate config for ATH_11AC_TXCOMPACT
Remove duplicate config for ATH_11AC_TXCOMPACT feature.

Change-Id: I1a264c61d69f28feeae1bc2db496468456ae60f2
CRs-Fixed: 2255912
2018-06-08 18:59:53 -07:00
Nirav Shah
78136b7181 qcacld-3.0: Add config file for genoa perf build
Add config file for genoa perf build

Change-Id: I4f96a86e30942306cf5f8b7f1d94a15d1e2b5a7c
CRs-Fixed: 2255909
2018-06-08 18:59:50 -07:00
nshrivas
00b6a259bb Release 5.2.0.82
Release 5.2.0.82

Change-Id: I9078f4254c75d256be3e31788a60231fa8a1eb70
CRs-Fixed: 774533
2018-06-08 15:18:54 -07:00
Jeff Johnson
22256fe28a qcacld-3.0: Fix sme_get_status_for_candidate() prototype
The hal param to sme_get_status_for_candidate() is incorrectly typed
to be a pointer to a tHalHandle when it should just be a tHalHandle,
so fix it.

Change-Id: I8799c334de58e196c1fcef2889fef4d9931b91f4
CRs-Fixed: 2255549
2018-06-08 14:26:28 -07:00
Jeff Johnson
d4c61de889 qcacld-3.0: Fix csr_get_parsed_bss_description_ies() context param
Currently csr_get_parsed_bss_description_ies() takes a tHalHandle
context param.  However CSR is an internal module, and hence it should
be using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalhandle, so update the API.

Change-Id: Id10bc9165f942b75ee1bd0e2e9b046ea484976e7
CRs-Fixed: 2255547
2018-06-08 14:26:28 -07:00
Jeff Johnson
57d8ee8f23 qcacld-3.0: Fix csr_parse_bss_description_ies() context param
Currently csr_parse_bss_description_ies() takes a tHalHandle context
param.  However CSR is an internal module, and hence it should be
using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalhandle, so update the API.

Change-Id: Iabb093ac924340b0a6bfa5185d0b9d5fcc440c91
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
ed463e155c qcacld-3.0: Fix csr_rates_is_dot11_rate_supported() context param
Currently csr_rates_is_dot11_rate_supported() takes a tHalHandle
context param.  However CSR is an internal module, and hence it should
be using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalhandle, so update the API.

Change-Id: I9349e152b4818862f7ac406f7a8f96d78c4c1782
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
ad4e805d34 qcacld-3.0: Fix csr_is_security_match() context param
Currently csr_is_security_match() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: Ibaf8273ad45a7019d19f8793e2bfc35032221c8d
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
c27696290d qcacld-3.0: Fix csr_retrieve_wapi_ie() context param
Currently csr_retrieve_wapi_ie() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I0dca1d6b64e3ef3698439277d05611d7051926c2
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
c8f9b6789b qcacld-3.0: Fix csr_retrieve_rsn_ie() context param
Currently csr_retrieve_rsn_ie() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: Ie410ef70ed38c569f1203f59a4fc8ce4ee30400d
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
515b3ec473 qcacld-3.0: Fix csr_is_ssid_equal() context param
Currently csr_is_ssid_equal() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I3db1f07166f90de28c8ac8a6fb31480578b04caa
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
17c7fbf755 qcacld-3.0: Fix csr_retrieve_wpa_ie() context param
Currently csr_retrieve_wpa_ie() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: Ia2a7bb81a1bf4254ad5f557bcc77d71d36495bb8
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
a6a191a2d7 qcacld-3.0: Fix csr_construct_wpa_ie() context param
Currently csr_construct_wpa_ie() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: Id690878208d1e5ca97adfce94a61629a8788ede2
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
079c002f0f qcacld-3.0: Fix csr_construct_rsn_ie() context param
Currently csr_construct_rsn_ie() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I812709f7c149788d04151ac0b2bf2d79527131b4
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
b7de91b47c qcacld-3.0: Fix csr_get11h_power_constraint() context param
Currently csr_get11h_power_constraint() takes a tHalHandle context
param.  However CSR is an internal module, and hence it should be
using the "real" context pointer type tpAniSirGlobal instead of the
opaque reference tHalhandle, so update the API.

Change-Id: Ic7f622b8633726a03ace11951c6e53b7e0936beb
CRs-Fixed: 2255547
2018-06-08 14:26:27 -07:00
Jeff Johnson
9fbc233881 qcacld-3.0: Fix csr_get_rts_thresh() context param
Currently csr_get_rts_thresh() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I94d370739cd616b17eea922825417d5e9ab4bd3d
CRs-Fixed: 2255547
2018-06-08 14:26:26 -07:00
Jeff Johnson
cb2193a50d qcacld-3.0: Fix csr_get_frag_thresh() context param
Currently csr_get_frag_thresh() takes a tHalHandle context param.
However CSR is an internal module, and hence it should be using the
"real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I69ae6f07dd12cf79659c5e4c461fba1c7fa8ff46
CRs-Fixed: 2255547
2018-06-08 14:26:26 -07:00
Jeff Johnson
12ec010ffe qcacld-3.0: Fix csr_get_qo_s_from_bss_desc() context param
Currently csr_get_qo_s_from_bss_desc() takes a tHalHandle context
param. However CSR is an internal module, and hence it should be using
the "real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API. In addition change "qo_s" to
"qos" to fix the typo in the name.

Change-Id: Ib5f53d55737138c708d47e79a68a2b1344dff5d2
CRs-Fixed: 2255547
2018-06-08 14:26:26 -07:00
Jeff Johnson
6e46f6d116 qcacld-3.0: Fix csr_roam_issue_ft_preauth_req() context param
Currently csr_roam_issue_ft_preauth_req() takes a tHalHandle context
param. However CSR is an internal module, and hence it should be using
the "real" context pointer type tpAniSirGlobal instead of the opaque
reference tHalhandle, so update the API.

Change-Id: I7d521ba558a64c87af72a6ce2d27eae93d1a633d
CRs-Fixed: 2255547
2018-06-08 14:26:26 -07:00