Commit Graph

290 Commits

Author SHA1 Message Date
Dustin Brown
63ef318a90 qcacld-3.0: Enable NBUF_MEMORY_DEBUG for SLUB builds
Network buffer debugging is being featurized as a separate feature from
regular memory debugging, and being controlled via the NBUF_MEMORY_DEBUG
build config flag. Enable NBUF_MEMORY_DEBUG for SLUB DEBUG builds to
retain the existing set of build time debug features.

Change-Id: Ib2ac2823ea5231508f4cca7d718ed266acd91274
CRs-Fixed: 2216804
2018-04-03 16:50:09 -07:00
Naveen Rawat
73e1ca9663 qcacld-3.0: Add control path stats header files to include path
Add Kbuild changes to include control path stats component's header
file paths.

Change-Id: I5e4efc92658fde8ee657d33265a55ae84f5f4723
CRs-Fixed: 2215999
2018-04-03 11:11:22 -07:00
Yun Park
5027b7c504 qcacld-3.0: Disable IPA offload feature
While freeing IPA CE descriptor ring during driver unload, data abort
occurs due to double free.
Disable IPA offload feature flag until completing IPA offload feature.

Change-Id: Ia54e94dc9a0a21761ac1b05b45bf9334e6ff9613
CRs-Fixed: 2211078
2018-03-30 17:00:06 -07:00
Alok Kumar
b64650c29a qcacld-3.0: Handle NUD events within driver
Currently NUD events are used by Framework to detect
the Network Reachability. Framework issues disconnection
for NUD_FAILED event.

Now, NUD events are tracked within driver to detect the
reachability and based on TxRx traffic, driver takes decision
to issue disconnection.

Change-Id: I461610c220288ff1fd718bb7bc2dd8375588505c
CRs-Fixed: 2195796
2018-03-30 02:46:29 -07:00
Dustin Brown
9b217c00ec qcacld-3.0: Define WLAN_HOST_ARCH_ARM in Kbuild
Some features depend on whether the host architecture is ARM or not.
Define WLAN_HOST_ARCH_ARM so these features are included correctly.

Change-Id: Ibd19858edf5c24841fc31d342ab448e635ae0d68
CRs-Fixed: 2215586
2018-03-30 02:46:04 -07:00
Tushnim Bhattacharyya
a2c18de55c Revert "qcacld-3.0: Refactor Kbuild to add profile support"
This reverts commit Ic9eb552c183143b4a2e0738c52b2e0c50db63a93.

Change-Id: I45f232d2ed003de5ffebb2865815ec9f06f9f775
CRs-Fixed: 2200122
2018-03-27 23:38:35 -07:00
Nirav Shah
e8ac340750 qcacld-3.0: Refactor Kbuild to add profile support
Changes to enable/disable feature based on
profiles, debug mode, interface type and
architecture in Kbuild.

Change-Id: Ic9eb552c183143b4a2e0738c52b2e0c50db63a93
CRs-Fixed: 2200122
2018-03-27 12:16:15 -07:00
Wen Gong
55f15d32f2 qcacld-3.0: Add P2P debug feature flag
Add config flag to enable / disable WLAN_FEATURE_P2P_DEBUG

Change-Id: Ibd43ebb5c0be91d3ede2110f0fa3e2868c7a6c88
CRs-Fixed: 2209865
2018-03-26 00:25:29 -07:00
Dustin Brown
0634ba3ba9 qcacld-3.0: Enable WLAN_WARN_ON_ASSERT for debug builds
QDF_ASSERT is being featurized in
I39e3ab6499210569b6ce09d77ee72f0081741989. Enable the QDF_ASSERT feature
in debug builds by default.

Change-Id: I96484e6dbebcecf17ae7877dc30906ed8fa90bd7
CRs-Fixed: 2211987
2018-03-24 02:51:16 -07:00
Yue Ma
72b09b17fc qcacld-3.0: Enable HTT_PADDR64 for LITHIUM architecture device
Enable HTT_PADDR64 to send DMA address over 32 bits to firmware.

Change-Id: I9260f0e648a8369495f3f26d0eb3e915505467c5
CRs-fixed: 2201824
2018-03-23 21:38:47 -07:00
Arif Hussain
02c2b63099 qcacld-3.0: Separate macros for dfs offload
Separate macros for dfs offload and non offload
to reduce the code size.

Change-Id: I909ed6502530988cc584690cb434ba2600bbccaa
CRs-Fixed: 2206653
2018-03-23 03:18:22 -07:00
Sravan Kumar Kairam
271fab287a qcacld-3.0: Move IPA stats and debug info API to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA stats and debug info  APIs to
the IPA component.

Change-Id: Ieb68a1579986c835f66c84e5e3b7aa2a4004383d
CRs-Fixed: 2177925
2018-03-21 18:57:17 -07:00
Sravan Kumar Kairam
2e7aae9fdb qcacld-3.0: Move IPA RM functionalities to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA RM APIs to the IPA component.

Change-Id: Iaff12ae3cec9ee6ff20543579692385c9a555613
CRs-Fixed: 2177925
2018-03-21 18:57:11 -07:00
Sravan Kumar Kairam
d01b445db4 qcacld-3.0: Move IPA setup and initialization to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA setup and initialization code
to the IPA component.

Change-Id: I63717eb2601c569131c6642f7330e4182e604424
CRs-Fixed: 2177925
2018-03-21 18:57:08 -07:00
Sravan Kumar Kairam
4af61cf612 qcacld-3.0: Create IPA CLD component
As part of converged driver model remove IPA from
HDD and create a new IPA CLD component. Add files for
IPA core, dispatcher and target_if. Define IPA related
public and private structures.

Change-Id: I8848331edc7dd878f9fc51ef9f5e311ad91ed70b
CRs-Fixed: 2177925
2018-03-21 18:57:03 -07:00
Abhinav Kumar
49d08a742f qcacld-3.0: Move Channel convert and frame indication logic to lim_utils.c
Move Channel convert and frame indication logic from lim_p2p.c
to lim_utils.c and remove unused timer
pMac->lim.limTimers.gLimP2pSingleShotNoaInsertTimer.

Change-Id: I71de90d5fb88462e52148a434d43ea80c41cfe36
CRs-Fixed: 2191282
2018-03-20 07:38:17 -07:00
Himanshu Agarwal
edf30dc042 qcacld-3.0: Add support for WLAN-IPA SMMU Stage 1 translation
Update WLAN-IPA datapath buffer sharing for SMMU Stage 1
translation support. When SMMU Stage 1 translation is enabled,
DMA APIs return IO virtual address(IOVA) instead of physical
address. This IOVA needs to be mapped to physical address by IPA
module before accessing them.

Change-Id: I6b24cde7b7805395053a8fd8f9afbad202e6105f
CRS-Fixed: 2072960
2018-03-19 09:34:23 -07:00
Rajeev Kumar
a6268de325 qcacld-3.0: Register fw down callback with QDF
Register fw down callback with QDF such that new UMAC
components can check if FW is down or not.

Change-Id: I86346db08ced59bb5f77c640eb7f9257cc0bb42c
CRs-Fixed: 2203498
2018-03-16 10:35:37 -07:00
Vignesh Viswanathan
45fc4b0a5e qcacld-3.0: Add makefile flag for ObjMgr Debug Enhancements
Add new CONFIG_WLAN_OBJMGR_DEBUG flag in qcacld Kbuild for ObjMgr
Debug enhancements and use the flag to enable the existing
WLAN_OBJMGR_DEBUG CFlag.

Change-Id: I295c9b6822ab0c1396368ecc719b2ba1c8c834dd
CRs-Fixed: 2184785
2018-03-15 09:32:38 -07:00
Rachit Kankane
0baf6e723f qcacld-3.0: Compile out MTRACE feature
Fix to disabled MTRACE feature

Change-Id: I400933feecc54b46bd9aebdbc2cb5440c882112b
CRs-Fixed: 2189869
2018-03-15 08:04:44 -07:00
Dustin Brown
92def29b24 qcacld-3.0: Enable level-specific logging wrappers
Change Ie062ada403f8a31aebcde691396987ad9e5352b5 introduced level-
specific logging wrappers to support compiling out entire levels of
logging messages. Enable these logging wrappers in the build config.

Change-Id: Ia866d28d1581f2baa69967a9c342da5a5432ef62
CRs-Fixed: 2205917
2018-03-15 08:04:42 -07:00
Sravan Kumar Kairam
b9484f304d qcacld-3.0: Add IPA QDF abstraction file to Kbuild
For IPA enum QDF abstraction add qdf ipa file to Kbuild.

Change-Id: Ib8c46badff3667ed1755eadd1cd13a3e8b78890c
CRs-Fixed: 2201474
2018-03-14 22:34:03 -07:00
Manikandan Mohan
04459b9cf8 qcacld-3.0: Fix errors of multi driver compilation
Qcacld supports multiple driver modules instance generation with
different file names and Kbuild options. Fix driver load time and
compilation errors on this feature.

Change-Id: Ib405e6c475bace31933a28dc64082f2b6c046da9
CRs-fixed: 2197749
2018-03-14 15:53:05 -07:00
Jeff Johnson
01bc774c7b qcacld-3.0: Remove -DUSE_NEW_TDLS_PEER_CALLBACKS
Change "qcacmn: Remove obsolete TDLS peer callback interface"
(Change-Id I32bb1f633b1dd1514aa6e4c3fdea044b3bca0009 in project
qca-wifi-host-cmn) has complete removed the old TDLS peer callbacks;
the new callbacks are the only ones supported.  Therefore remove the
usage of USE_NEW_TDLS_PEER_CALLBACKS which was previously being used
to select the new callbacks.

Change-Id: I6b82b563e060727dfd02bfea40e4439ea09d7f75
CRs-Fixed: 2200994
2018-03-12 19:27:37 -07:00
Jeff Johnson
1d40f5b3f9 qcacld-3.0: Use new TDLS peer callback interface
Change "qcacmn: Introduce new versions of TDLS peer callbacks"
(Change-Id Id4ea23266b0f3e1480b645c5afce6c17585ccb46 in project
qca-wifi-host-cmn) introduced a new interface which removed an unused
parameter and changed obsolete naming. Update qcacld-3.0 to use this
new interface.

Change-Id: I5c4684ac0a62f314da26f92ece2c9a9874d63634
CRs-Fixed: 2200993
2018-03-12 09:35:24 -07:00
Rachit Kankane
b103562c27 qcacld-3.0: Add HTC Credit History Feature flag
Add compilation flag to compile out HTC credit History
feature cleanly from the cld-3.2 driver binary.

Change-Id: I5f5e73e430d282c99d3077fb82ed1cb8eb79715a
CRs-Fixed: 2190545
2018-03-08 18:46:38 -08:00
Nirav Shah
459bebf99a qcacld-3.0: Featurize EPPING Feature
Featurize EPPING Feature to compile out
in mission mode.

Change-Id: I55a4820f0cbbac80861904a9f05721cc513e1d0c
CRs-Fixed: 2198846
2018-03-07 03:55:28 -08:00
Dustin Brown
f1d278041b qcacld-3.0: Add wlan_pmo_apf.[ch]
Add files to house PMO logic for the Android Packet Filter (APF).

Change-Id: I30e40b1dc761261511d8a37e5720a4f5c737b36c
CRs-Fixed: 2198745
2018-03-05 21:43:43 -08:00
Nirav Shah
eb017befbd qcacld-3.0: Add support for QCA9379 on x86 platform
Add support for QCA9379 chip on x86 platform for
USB and SDIO attach.

Change-Id: I2de81794cd16521097ffa6956a18b4b0fe981d36
CRs-Fixed: 2196757
2018-02-28 05:29:39 -08:00
Rajeev Kumar
64de4544a2 qcacld-3.0: Kbuild changes to compile qdf_util.c
Add Kbuild changes to compile qdf_util.c

Change-Id: I94bfaa13512c1287ff02f890348d44034b8d106e
CRs-Fixed: 2195161
2018-02-26 12:08:25 -08:00
Mahesh Kumar Kalikot Veetil
48af32b8a2 qcacld-3.0: Fix the incremental compilation
BUILD_TAG changes in each build, which makes all files to recompile.
Notify build system that BULD_TAG is only used in wlan_hdd_main.c. This
reduces the recompile time significantly.

Change-Id: I40952e75eeb951ce8a693c8130dbc55a4a92eff5
CRs-Fixed: 2195100
2018-02-25 21:08:40 -08:00
Yun Park
84c0cebe87 qcacld-3.0: Add IPA WDI Unified API support
Support for WDI2 in the Unified IPA WDI APIs.

Change-Id: Ife42a6a96ce80070de51f994e29ded252b3dd980
CRs-Fixed: 2183498
2018-02-15 09:20:27 -08:00
Dustin Brown
911057b1ad qcacld-3.0: Add qdf_file and qdf_parse to Kbuild
Include the recently added qdf_file and qdf_parse files to the Kbuild.

Change-Id: Ibe0dd7f2338196aefd93c6550ec2a808b5249cf2
CRs-Fixed: 2184476
2018-02-10 07:14:47 -08:00
Dustin Brown
59877b01ef qcacld-3.0: Add qdf_str to Kbuild
Include the recently added qdf_str files to the Kbuild.

Change-Id: Id6753691e950ac06114de95d71068f45c48003a5
CRs-Fixed: 2184473
2018-02-10 07:14:44 -08:00
Dustin Brown
c1034df950 qcacld-3.0: Disable PANIC_ON_BUG for end user builds
PANIC_ON_BUG is currently enabled for all WLAN builds. While a customer
can, and should, disable PANIC_ON_BUG for end user builds, this can be
easily overlooked. Disable PANIC_ON_BUG by default on pure performance
builds, to avoid accidentally crashing end user devices. Customers can
opt-in to PANIC_ON_BUG as needed for validation on performance builds.

Change-Id: I79371206b20b978f4e61954c2f49bbb7b07ba95e
CRs-Fixed: 2186099
2018-02-09 11:33:11 -08:00
Sandeep Puligilla
019a1bd120 qcacld-3.0: changes to support spectral genl
HDD changes to support general netlink sockets for
spectral scan feature.

Change-Id: Ie8f262ef77b42c69ac5e25e9a2d0cc099b66b1dd
CRs-Fixed: 2183863
2018-02-09 09:20:49 -08:00
Paul Zhang
a05a025bcf qcacld-3.0: use driver database for reg no-offload
Currently driver created reg database instead of
db.txt for reg no-offload case.

Change-Id: Ia7853679532ad7536d34b4a4040feffb8566e907
CRs-Fixed: 2174245
2018-02-08 21:37:25 -08:00
Arunk Khandavalli
a6305a33b6 qcacld-3.0: Converge on Initial Host-FW handshake
Initial changes for the init deinit convergence wherein
service ready, extended service ready and init cmd are
converged.

Change-Id: I1c1fd50f51362f4f09561c259961e6761429fcd0
CRs-Fixed: 2178590
2018-02-03 15:10:39 -08:00
Zhang Qian
47e22cefc3 qcacld-3.0: Add UCFG APIs and public structures for OCB
Add UCFG interface and public structures for OCB feature.

CRs-Fixed: 2177578
Change-Id: Id74df706e658568a0f50a8d953eca3993451f41a
2018-01-29 23:40:32 -08:00
Dustin Brown
70960c9476 qcacld-3.0: Add qdf_types.c to Kbuild
A new, OS agnostic qdf_types.c file has been added. Include it in the
Kbuild.

Change-Id: I8d0b47bfd6973fb1ca3122f46dca8512422d7e33
CRs-Fixed: 2176464
2018-01-22 15:39:26 -08:00
Padma, Santhosh Kumar
07eb80bf87 qcacld-3.0: Add support for SAE AKM suites
Add support for SAE AKM suites in CSR and also add support for
SAE in HDD. Also, add CONFIG_WLAN_FEATURE_SAE flag to enable/disable
SAE in Kbuild. When this is enabled, WLAN_FEATURE_SAE is used as a
feature flag for SAE.

Change-Id: I6254991afa0fd048d4f0b6f435ff630f1db04077
CRs-Fixed: 2029357
2018-01-19 03:54:43 -08:00
Ryan Hsu
c8b27a4352 qcacld-3.0: Move FTM cmd/event handle to common code
- replace the ftm command/event handle with common interfaces
- remove the event register from wma
- reconfigure the target_if_handle for FTM mode
- separate change will be raised to cleanup legacy code

Change-Id: If8e2dfc4c6bb400406be5d0d3fa53422db5c6fb5
CRs-fixed: 2162168
2018-01-16 18:29:44 -08:00
Himanshu Agarwal
b229a14b67 qcacld-3.0: Add support for Green AP UMAC componentization
Add support for Green AP UMAC componentization.

Change-Id: I4e41ee6c5dfd055c273096c56de4fa253727b429
CRs-Fixed: 2166756
2018-01-12 12:20:09 -08:00
Nachiket Kukade
98f562ab2a qcacld-3.0: Skeleton for DISA component
Create a skeleton for the DISA component. This is a CLD
component. Add files for disa core, dispatcher and
target_if. Define DISA related public structures and
objmgr objects. Add API's as stubs.

Change-Id: I63b32a0e7da0283d091815aaccea6b8703f5184c
CRs-Fixed: 2159579
2018-01-09 13:39:53 -08:00
Sandeep Puligilla
00d2a1f2c6 qcacld-3.0: Add HDD support to spectral scan
Add HDD support to spectral scan vendor commands

Change-Id: Ie58fabfca07077fd1b886eeb63c1a9361030035f
CRs-Fixed: 2165256
2017-12-29 05:28:28 -08:00
Hanumanth Reddy Pothula
07e5f99716 qcacld-3.0: Remove FW memory dump feature
qcacld-2.0 to qcacld-3.0 propagation

FW memory dump feature is no longer used. Hence remove FW memory
dump feature code changes.

Change-Id: Ida655f83630c369df746e7c0c9d61a8fee2932a2
CRs-Fixed: 2140261
2017-12-28 11:54:10 +05:30
Sandeep Puligilla
342d2a6bfc qcacld-3.0: Kbuild changes to enable spectral scan
Add Kbuild changes to build the spectral scan files

Change-Id: Ieeccb322a34ca27642016fec3dc0d7232c7dcf59
CRs-Fixed: 2163445
2017-12-26 17:26:57 -08:00
Amar Singhal
0928b19abe qcacld-3.0: Add sysfs interface for retrieving version information
User-space needs sysfs interface for retrieving version
information for both firmware and driver. Add this new
sysfs interface.

Change-Id: I666aff1868f4d1d954773fae1ae85c1ebd0fdc87
CRs-Fixed: 2153885
2017-12-20 02:26:54 -08:00
Yuanyuan Liu
f45ab3def3 qcacld-3.0: Config driver flags properly when no QMI support
Enable CONFIG_BYPASS_QMI and disable ADRASTEA_SHADOW_REGISTERS when
there's no QMI support in kernel, as shadow registers are configured
by WLAN FW and the configurations are passed through QMI framework.

CRs-Fixed: 2159269
Change-Id: Iaf5b82e37f3983fc18edbcf093b3ebf74d576f71
2017-12-16 01:26:56 -08:00
Srinivas Girigowda
c7a1b0ad16 qcacld-3.0: Remove object files from qca-wifi-host-cmn folder
make clean is not removing the object files in
qca-wifi-host-cmn folder.

CRs-Fixed: 2151813
Change-Id: I56904cdf2154d6bd80aea7fd1bba8d28bd5fe21d
2017-12-12 15:56:38 -08:00