Commit Graph

10675 Commits

Author SHA1 Message Date
Nachiket Kukade
01becb9bf0 qcacld-3.0: Cleanup dtim configuration during suspend and resume
Currently while going to suspend, dtim parameters are not
correctly getting configured. Some other parameters to config
like the inactivity timeout are completely skipped as well.

Cleanly port the setting of dtim and other parameters during
suspend and resume.

Change-Id: Ic41a8ace3f5650e53f2dcaa416bfe241b87aa88d
CRs-Fixed: 2248160
2018-06-21 12:35:44 -07:00
Nachiket Kukade
4b7c8e03c7 qcacld-3.0: Port modulated dtim and override listen interval
Port modulated dtim and override listen interval to PMO from
WMA.

Change-Id: Id965dd8ee0fbddfa563335fd2fe225dcd20cd162
CRs-Fixed: 2252788
2018-06-21 12:35:40 -07:00
nshrivas
0368d66a73 Release 5.2.0.83U
Release 5.2.0.83U

Change-Id: I72fc847fd8372d66ffedfc9a45446759fae6ed70
CRs-Fixed: 774533
2018-06-21 08:27:10 -07:00
Wu Gao
d80927b104 qcacld-3.0: Return correct high bits of DMA addr
It returns NULL as high bits of DMA addr, which cause Rome platform
broken.

Change-Id: I893f86e6a269145654ae749bd01e7a890f4a1abb
CRs-Fixed: 2264775
2018-06-21 08:27:09 -07:00
jitiphil
ecbee58c44 qcacld-3.0: Implement API to set dpt params debugfs
Implement API to set dp trace params debugfs which
sets  proto bitmap, num of records and verbosity
in the same order. API expects exactly 3 params to be
passed in the same order.

CRs-Fixed: 2184740
Change-Id: Ia802243bbd2e9d985a58ccf913d9cfbe3d71c8a8
2018-06-21 08:27:05 -07:00
nshrivas
f56262d842 Release 5.2.0.83T
Release 5.2.0.83T

Change-Id: If24e63a6f41fef0b6bdb20cde9e2ef202fbe6f34
CRs-Fixed: 774533
2018-06-21 07:01:22 -07:00
Hanumanth Reddy Pothula
e9af116d9b qcacld-3.0: Initialize start logging object
While processing WIFI_LOGGER_START vendor command, HDD passes
uninitialized 'user_triggered' variable(member of start logging
object), to down layers, which may lead to enable packet logging,
not in the way user intended.

Make sure valid data is passed to down layers by initialize start
logging object and assigning valid data to the user_triggered variable.

Change-Id: I38ac09a6b658eefb52ab113c885ce3ab54f36535
CRs-Fixed: 2235153
2018-06-21 07:01:21 -07:00
nshrivas
275c084ea0 Release 5.2.0.83S
Release 5.2.0.83S

Change-Id: I7bf83337bf43d7b535493db7913220c2bb0f7b03
CRs-Fixed: 774533
2018-06-21 01:58:51 -07:00
Jinwei Chen
998a1a0e95 qcacld-3.0: separate HE caps per band
currently some HE capability is shared same value from
MIN value of 2G and 5G capability, separate them per band.

Change-Id: I37831b4044d4ca2deaf5015fb44227c824996136
CRs-Fixed: 2239070
2018-06-21 01:58:50 -07:00
Ashish Kumar Dhanotiya
1e20bcc70c qcacld-3.0: Vendor command support to enable/disable GTX
Add vendor command support to enable or disable GTX.
Currently there is no vendor attribute to enable/disable
GTX from vendor command. Add vendor attribute
QCA_WLAN_VENDOR_ATTR_CONFIG_GTX support through
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION vendor command
and with new wmi command WMI_VDEV_PARAM_GTX_ENABLE.

Change-Id: I8a740f9209ffd5f6438c3cfdd830ee2a76d0aa52
CRs-Fixed: 2253655
2018-06-21 01:58:47 -07:00
nshrivas
d91986c913 Release 5.2.0.83R
Release 5.2.0.83R

Change-Id: I7363c099cc688444c86acc731861490377368898
CRs-Fixed: 774533
2018-06-21 00:24:23 -07:00
Qiwei Cai
3719efe9e3 qcacld-3.0: Featurize WLAN_FEATURE_LINK_LAYER_STATS
Featurize WLAN_FEATURE_LINK_LAYER_STATS to compile out
in mission mode.

Change-Id: If0f27efa3661f4b3083180690160109084c5da67
CRs-Fixed: 2255035
2018-06-21 00:24:23 -07:00
Jeff Johnson
23e5148cee qcacld-3.0: Use mac_handle_t in wlan_hdd_oemdata
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_oemdata to use the new naming.

Change-Id: I78c2a1d6b93b7357071455d3585d9b6932863d55
CRs-Fixed: 2264435
2018-06-21 00:24:19 -07:00
nshrivas
118b81e86c Release 5.2.0.83Q
Release 5.2.0.83Q

Change-Id: I2215b448832ef2fe9d0f2cbef6fbe55e3f6b9364
CRs-Fixed: 774533
2018-06-20 21:23:20 -07:00
Jeff Johnson
32833f11f6 qcacld-3.0: Use mac_handle_t in wlan_hdd_nan_datapath
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_nan_datapath to use the new naming.

Change-Id: I3f292fda33c4ab0085407cf87fcc8297e4be13f6
CRs-Fixed: 2264407
2018-06-20 21:23:20 -07:00
nshrivas
ae4e7a4878 Release 5.2.0.83P
Release 5.2.0.83P

Change-Id: I3cd2507d68a953b75dc54bb60a1e6dc9374d6f8b
CRs-Fixed: 774533
2018-06-20 16:29:25 -07:00
Jeff Johnson
b396b06864 qcacld-3.0: Use mac_handle_t in wlan_hdd_regulatory
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_regulatory to use the new naming.

Change-Id: I9626ae9722d43bae1840f95b49cd8014e87acc5c
CRs-Fixed: 2264404
2018-06-20 16:29:24 -07:00
Wen Gong
f07597e7e6 qcacld-3.0: Add recovery ability for ftm
Add recovery ability for ftm, otherwise it will fail in
cds_trigger_recovery_work

Change-Id: I425a0eadc174bc5a56e62ad3ebfb78841140abee
CRs-Fixed: 2258709
2018-06-20 16:29:21 -07:00
nshrivas
8ed8ec0d73 Release 5.2.0.83O
Release 5.2.0.83O

Change-Id: I980a75a14eda04e24b3204f5facd5bd043dd2e60
CRs-Fixed: 774533
2018-06-20 15:19:43 -07:00
Jeff Johnson
1cfebab2e7 qcacld-3.0: Use mac_handle_t in wlan_hdd_tx_rx
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_tx_rx to use the new naming.

Change-Id: I9793ded75df9c0a0347ab3d1cba5ef85065fe653
CRs-Fixed: 2264433
2018-06-20 15:19:43 -07:00
nshrivas
3725cc94fa Release 5.2.0.83N
Release 5.2.0.83N

Change-Id: Iff92b30a35a5696c52461351cd2559535ef9eee1
CRs-Fixed: 774533
2018-06-20 14:01:08 -07:00
Jiachao Wu
b8f8921958 qcacld-3.0: Using util API to check scan result
SCAN_EVENT_TYPE_DEQUEUED means this scan request have been dequeued
in fw. Driver should close this session and free related resouce if
recevie DEQUEUED.

In sap_scan_event_callback and csr_scan_callback,
those functions will return if receive DEQUEUED.Which cause memory leak.

So using util_is_scan_success to check scan result in scan callback.
And check sap resouce whether be freed when rmmod.If not clear it.

Change-Id: Iaf1f077dd7221236944d94d2b543f4df63de29fd
CRs-Fixed: 2242823
2018-06-20 14:01:08 -07:00
Jeff Johnson
17743898c4 qcacld-3.0: Use mac_handle_t in wlan_hdd_scan
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Transition
wlan_hdd_scan to use the new naming. In the case of scheduled scan
remove unnecessary testing of the handle since the scan component will
validate the actual vdev.

Change-Id: I68d2be133bd6d18c97ad5211b0d6f95f4ad28652
CRs-Fixed: 2264397
2018-06-20 14:01:05 -07:00
nshrivas
b2ab8dfaa7 Release 5.2.0.83M
Release 5.2.0.83M

Change-Id: I76ba0793d63ee35c2c265758ace0d39cd7668905
CRs-Fixed: 774533
2018-06-20 12:53:07 -07:00
Nachiket Kukade
177b5b06c4 qcacld-3.0: Add support for Android Packet Filter v3
Android Packet Filter 3.0 requires the framework to be able
to read and write into the APF work memory in the Firmware.
It also requires to be able to enable or disable the
interpreter.

Add support for the new read/write/enable/disable operations.

Change-Id: Ic72243b918f4a8385a92b803a1ca3c5305423b52
CRs-Fixed: 2184969
2018-06-20 11:32:39 -07:00
nshrivas
e9a5d5b891 Release 5.2.0.83L
Release 5.2.0.83L

Change-Id: I4318448c1f50beca4d95da6401ec1868ed7f9bbf
CRs-Fixed: 774533
2018-06-20 04:05:44 -07:00
Nirav Shah
87dca29f5a qcacld-3.0: Handle HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE command
Add support for HTT_T2H_MSG_TYPE_FLOW_POOL_RESIZE
command from firmware to resize flow pool and call appropriate
function to handle it.

Change-Id: I7d2ca6ed459383ec5c456b15a71290264d5d2408
CRs-Fixed: 2261265
2018-06-20 04:05:44 -07:00
Jeff Johnson
e84581b383 qcacld-3.0: pmo: Replace tSirRetStatus with QDF_STATUS
The tSirRetStatus definitions are obsolete, so replace them with
QDF_STATUS definitions in the pmo component.

Change-Id: Ia23e1d0eed5a88b0cb1caf4feebd535d36ca2690
CRs-Fixed: 2261705
2018-06-20 04:05:40 -07:00
Sravan Kumar Kairam
ce792eb7f6 qcacld-3.0: Clean up IPA interface when SAP stop bss fails
In case of rmmod if stop bss fails SAP IPA interface is not
deleted. So again at next driver load IPA will be holding the
stale IPA header and new IPA header will not be added at IPA
interface creation. In this change clean IPA interface when SAP
stop bss fails.

Change-Id: I3a1bf891752308ba1a29d6768f24880d8514d5bf
CRs-Fixed: 2224307
2018-06-20 04:05:36 -07:00
Sandeep Puligilla
fc2181bcb6 qcacld-3.0: Fix Set key reorder
Host is processing unicast set key and broadcast
set key requests out of order and plumbing keys
in same order to firmware. This is due to posting
the requests with priority to scheduler thread.

Removed posting message with priority from
API csr_send_mb_set_context_req_msg().

This change partially reverts
commit I31e346da6662ab56f268f94260ed0f169b8f182b

Change-Id: I8705a25bcb2884c4dbc2555e6a58d1bb6987f736
CRs-Fixed: 2260805
2018-06-20 04:05:33 -07:00
Pragaspathi Thilagaraj
f65cffe88c qcacld-3.0: Fix mem leak during reset passpoint list wma command
The function sme_reset_passpoint_list, posts the wma message
WMA_RESET_PASSPOINT_LIST_REQ. This message is freed at the
sme_reset_passpoint_list in case of failure. But for the success
case, the req_msg is not freed at wma_mc_process_msg. This
results in mem_leak in case of success case.

Free the req_msg at wma_mc_process_msg after returning from the
call wma_reset_passpoint_network_list.

Change-Id: Ib4b427a8acc2d531ac9d6e8f92a30205163ec0ba
CRs-Fixed: 2259237
2018-06-20 04:05:28 -07:00
Jeff Johnson
3639a6415b qcacld-3.0: Fix rrm_close() param
Currently sme_close() passes a tHalHandle to rrm_close(), but a
tpAniSirGlobal is expected. This currently compiles OK because
tHalHandle is defined to be a void pointer, but this will be changed
in the future so correct the call to pass the correct parameter.

Change-Id: I51e19f9699ba8fe6db2318a59284b0fcc9185a6d
CRs-Fixed: 2262688
2018-06-20 04:05:25 -07:00
Ryan Hsu
d0327d53d7 qcacld-3.0: Add SSR callbacks
As CDS is not usable by WIN, add callbacks that are registered
in QDF and correct the module dependencies.

Also rearrange the header file inclusion, due to in cmn project,
the qdf_self_recovery_callback() is moved from qdf_event.h to
qdf_platform.h.

Change-Id: I6d03a1a8df01df4c67a933a11d86147384b656fd
CRs-fixed: 2263625
2018-06-20 04:05:21 -07:00
Sravan Kumar Kairam
b5870bb811 qcacld-3.0: Dynamic SMMU map/unmap only when IPA enabled
IPA SMMU mapping for RX buffers is needed only when IPA offload
and IPA pipes are enabled. Currently in STA only case where IPA
is not enabled SMMU map/unmap is done for RX buffers. So enable
SMMU mapping only when IPA pipes are enabled.

Change-Id: I88db2cc8606bdf4586644a7ffccd0415f85c8241
CRs-Fixed: 2213795
2018-06-20 04:05:17 -07:00
Yeshwanth Sriram Guntuka
a00bca1118 qcacld-3.0: Fix possible OOB access in lim_process_disassoc_frame
Reason code is extracted from frame data without validating
the frame len which could result in out of bound access.

Fix is to validate frame len before extracting reason
code from frame data.

Change-Id: I00795a806abcae903dd0daa019aeab990aedc3a7
CRs-Fixed: 2253984
2018-06-20 04:05:13 -07:00
nshrivas
25a3e21df3 Release 5.2.0.83K
Release 5.2.0.83K

Change-Id: I5ee426a78584f29b44910f47f3272e6ef2333833
CRs-Fixed: 774533
2018-06-20 02:30:45 -07:00
Jeff Johnson
4e998e3f04 qcacld-3.0: Remove obsolete wlan_hdd_latency_opt()
Change "qcacld-3.0: Add ARP debug stats" (Change-Id
Idce70799bd3698dc8a8ecd8cfc8ef7d9bf1f5764) removed the only use of
wlan_hdd_latency_opt(), so remove this now obsolete function.

Change-Id: I27a3157072847e313fe8379abd2de4ec76cfef57
CRs-Fixed: 2263616
2018-06-20 02:30:45 -07:00
Jeff Johnson
0a6de649a1 qcacld-3.0: Use mac_handle_t in wlan_hdd_he
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_he to use the new naming.

Change-Id: Id0ee15548a2bb78258afd9381bad6b4834e0e47c
CRs-Fixed: 2262588
2018-06-20 02:30:12 -07:00
Jeff Johnson
ad278e62c3 qcacld-3.0: Use mac_handle_t in wlan_hdd_tsf
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_tsf to use the new naming.

Change-Id: I180e9a6347e5bccea41f9c14612d888711aa6485
CRs-Fixed: 2262587
2018-06-20 02:30:09 -07:00
Jeff Johnson
8b941e074c qcacld-3.0: Use mac_handle_t in wlan_hdd_debugfs
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_debugfs to use the new naming.

Change-Id: I762d1f9520c94beafc912f9b6e3720531af0eeea
CRs-Fixed: 2262586
2018-06-20 02:30:05 -07:00
Jeff Johnson
8915329a78 qcacld-3.0: Use mac_handle_t in wlan_hdd_lpass
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_lpass to use the new naming.

Change-Id: Id5ffe841fa4d81a07756c7e9f9d9873d2ba921cb
CRs-Fixed: 2262585
2018-06-20 02:30:02 -07:00
Arif Hussain
fc23618216 qcacld-3.0: Fix information leak in lim_process_auth_shared_system_algo()
cds_rand_get_bytes() fail may cause random kernel stack info to
use as challenge text which is an information leak. To avoid this
use send auth failure with status code REFUSED_TEMPORARILY
(try again later) when random number generation fail.

Change-Id: If1238343e0c911c7e1ead8b5de62c0315a701017
CRs-Fixed: 2248569
2018-06-20 02:29:58 -07:00
nshrivas
65a5d53923 Release 5.2.0.83J
Release 5.2.0.83J

Change-Id: I73a2485aaa87f44b85bd7af112e881aa97073405
CRs-Fixed: 774533
2018-06-20 00:42:47 -07:00
Varun Reddy Yeturu
d33033f7d0 qcacld-3.0: Kbuild changes for TWT
Add the compilation flags for TWT feature to Kbuild.
Based on the compilation flag, include the source
files for compilation and also include the header
files path.

Change-Id: I45991b3c9e49e2aa0ff51a2650fde69ea447bf15
CRs-Fixed: 2238302
2018-06-20 00:42:47 -07:00
Varun Reddy Yeturu
3c9f89cfbf qcacld-3.0: Process TWT enable complete event
Process the TWT enable complete event sent by the
firmware after enabling TWT.
Set the appropriate state for TWT so that it can
be used later to check if TWT is enabled or not
in the target.

Change-Id: I924387d6afc2bf80efec0fce36ea907c6932dcda
CRs-Fixed: 2238302
2018-06-20 00:42:44 -07:00
Varun Reddy Yeturu
4b54ec80bb qcacld-3.0: Update target capabilities for TWT
Read the target service capabilities for TWT requestor
and TWT responder and update them in the driver.

Change-Id: I78879eb8ff4bf47eabd81cd8d07459b810fb7d7e
CRs-Fixed: 2238302
2018-06-20 00:42:40 -07:00
Varun Reddy Yeturu
1b4cbb5065 qcacld-3.0: Send ENABLE_TWT command to the target
Send the WMI_TWT_ENABLE_CMDID command to the target if the target
supports any one mode out of requestor, responder or broadcast mode.

Change-Id: I7ab21fff89e7c88bf951b333d7a923857f2123d6
CRs-Fixed: 2238302
2018-06-20 00:42:37 -07:00
Varun Reddy Yeturu
e93d2460b1 qcacld-3.0: Enable or Disable TWT services in WNI CFG
Introduce new WNI items for TWT as follows:
WNI_CFG_TWT_REQUESTOR
WNI_CFG_TWT_RESPONDER
WNI_CFG_BCAST_TWT

Based on the INI configuration and target support, enable
or disable the TWT services in the WNI CFG database.

Change-Id: Id1b239e53f30f00220e0cefb541fc641a898e712
CRs-Fixed: 2238302
2018-06-20 00:42:33 -07:00
Varun Reddy Yeturu
96285a2c96 qcacld-3.0: Introduce TWT INI items
Introduce the below configuration items for
Target Wake Time feature.
enable_twt: Enable/Disable the TWT feature using this configuration
item.
twt_congestion_timeout: This ini is used to configure the target wake
time congestion timeout value in the units of milliseconds.STA uses this
timer to continuously monitor channel congestion levels to decide
whether to start or stop TWT.

Change-Id: I225b63e4f21357d57d28a9aa7e9ae1cd8c4c694f
CRs-Fixed: 2238302
2018-06-20 00:42:30 -07:00
Zhu Jianmin
72d32dedba qcacld-3.0: ini parameter to allow STA+SAP SCC on LTE coex channel
When Force SCC and STA+SAP SCC on LTE coex channel are enabled:
   1. When STA on LTE coex channel, start SAP, select STA
      channel.
   2. When SAP on, connect STA on LTE coex channel, then switch
      SAP channel to STA channel.

Change-Id: I3f3972df43318473342d42012be3a57b8baad965
CRs-Fixed: 2235704
2018-06-20 00:42:26 -07:00