Commit Graph

472 Commits

Author SHA1 Message Date
Rakshith Suresh Patkar
384a28ae48 qcacld-3.0: Add timestamp debug info in ol_tx_desc_t
Add descriptor timestamp debug info in ol_tx_desc_t and
add APIs to set these values.

Change-Id: I686fccff4268811474630dbea8369fabe82d1517
CRs-Fixed: 2333654
2018-11-10 04:02:04 -08:00
Dustin Brown
93abc2cb79 qcacld-3.0: Enable excessive logging detection
Excessive logging detection was recently added via
If83c6dfccb9d191b02a3a7166b065c0a0704f969. While we would like to enable
this feature with a maximum number of logs per second of 100, there are
still a few outstanding problem areas, like dumping stats via IOCTL.
Instead enable the feature with a max of 500 to catch egregious
regressions, and plan to decrease this to 100 or less once the problem
areas are addressed.

Change-Id: I5b880c2354ec4828e1773eeb43de43a4649d4803
CRs-Fixed: 2340011
2018-11-08 13:39:22 -08:00
Tiger Yu
24ca3362c4 qcacld-3.0: Enable the scatter-gather feature
Enable the scatter-gather feature for wlan interface, if the wlan
interface is binding to the bridge, which might enable SG & TSO feature
for the bridge and improve the TCP TX throughput much better.

Change-Id: I26101756266878f9f41c5dc2d0b5dad189b44ee1
CRs-Fixed: 2246512
2018-11-06 21:07:33 -08: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
Nirav Shah
3422e03e10 qcacld-3.0: Compile hif_main_legacy file for non-lithium architecture
Compile hif_main_legacy file for non-lithium architecture and
disable FASTPATH for lithium architecture.

Change-Id: Idd8623612c057380e9bd9704be0538923f37be08
CRs-Fixed: 2332442
2018-10-29 03:11:40 -07:00
Nirav Shah
179b986fb0 qcacld-3.0: Fix compilation issue in link layer stats featurization
Fix compilation issue in link layer stats featurization

Change-Id: I97e7fd08040d11bf5ee4acc07fd81723b5687e62
CRs-Fixed: 2317225
2018-10-25 01:37:50 -07:00
Venkata Sharath Chandra Manchala
1619b73955 qcacld-3.0: Add config parameter to compile HALhwio.h file
Add SCALE_INCLUDES CONFIG parameter to compile HALhwio.h for QCA6390
as msmhwio.h file is now deprecated.

Change-Id: I4a883101a0ba15d2ab1efcd7bde312e22099a693
CRs-Fixed: 2332023
2018-10-22 15:06:37 -07:00
Krunal Soni
e9c12f5aab qcacld-3.0: Add new INI/CFG infrastructure for Policy Manager
Policy Manager component needs to adopt a new INI/CFG
infrastructure.

Provide a new infrastructure and remove old INI/CFGs related
to policy manager component.

CRs-Fixed: 2324393
Change-Id: Ia16845c2aef3c5877b0b164fcef13fe7cd41c736
2018-10-17 14:27:36 -07:00
Yuanyuan Liu
49948f1d08 qcacld-3.0: Remove deprecated ANDROID_BUILD_TOP for new SP
ANDROID_BUILD_TOP variable is being deprecated and thus all paths are
assumed to be relative to the top directory.
However, this is causing problem when some of the paths are constructed
in the Android build system and used in the non-Android makefiles that
are usually executed NOT at the top directory but at a sub directory
using -C option. As a result, the relative path from the Android build
system become invalid in the non-Android makefiles.
In order to overcome the restriction, ANDROID_BUILD_TOP is manually
constructed when invoking the non-Android makefiles by using $$(pwd).
The non-Android makefiles are expected to construct the absolute path
by prepending ANDROID_BUILD_TOP to any path that came from the Android
build system.
Specifically, Kbuild is modified so that ANDROID_BUILD_TOP is prepended
to WLAN_ROOT and WLAN_COMMON_INC to make them absolute paths.

Change-Id: Ic34de7a2bc407153085eb3eb154d6dd71f04eedb
CRs-Fixed: 2328210
2018-10-17 02:07:03 -07:00
Qiwei Cai
dcb73b0132 qcacld-3.0: Featurize MCL only WMI APIs
Featurize MCL only WMI APIs by compiling them as a separate source.
It enables profiles/configs to selectively compile the WMI APIs
based on whether the feature is required or not.
Featurize WMI APIs and TLVs that are specific to MCL -
- DSRC
- NAN
- P2P
- PMO
- roaming
- concurrency
- STA
- Generic MCL specific WMI (STA)

Change-Id: I3b005b8f60491c7d27cf221b7505116e1b9c1a38
CRs-Fixed: 2333916
2018-10-16 13:40:16 -07:00
yuanl
2746f07242 qcacld-3.0: expose TSF to user space by file system on Vipertooth
Enable TSF for Adrastea arch on Vipertooth chip firstly and
expose TSF time mapping via file system

CRs-Fixed: 2320218
Change-Id: Ifda0d8035717ad21edb1a393ef32f1157ab59105
2018-10-13 15:23:10 -07:00
chenguo
5958e5ace7 qcacld-3.0: Enable AC based flow control by default
Enable QCA_AC_BASED_FLOW_CONTROL in Kbuild file for QCA6290_AX.

Change-Id: I183c75c1d7e98df230bd38e09eb67182ab6f13da
CRs-Fixed: 2323953
2018-10-09 06:12:13 -07:00
Liangwei Dong
2fce71693c qcacld-3.0: Add 11d host scan build config
Add build flags CONFIG_HOST_11D_SCAN
to enable 11d host scan.

Change-Id: I8888a5f8df7645760fa9c31fcb8a3a191da37a9c
CRs-Fixed: 2314832
2018-10-09 04:05:11 -07:00
Nirav Shah
93b3235b38 qcacld-3.0: Enable QCA_WIFI_3_0 flag based on CONFIG_WIFI_3_0_ADRASTEA
Enable QCA_WIFI_3_0 flag based on CONFIG_WIFI_3_0_ADRASTEA
and not based on CONFIG_ICNSS to enable it in Genoa.

Change-Id: I819fcbb637c4ed302cf71d32e83b113911270750
CRs-Fixed: 2317206
2018-09-25 15:33:33 -07:00
Jianmin Zhu
c2eae9c566 qcacld-3.0: MCL change after serialization enhancement
1. Set all MCL cmds as blocking cmds.
2. Rename WLAN_SER_CMD_STOP_BSS to WLAN_SER_CMD_VDEV_STOP_BSS.
3. Add new binary files and remove old binary files in Kbuild.
4. Disable CONFIG_SERIALIZATION_V1 in Kbuild, switch to new
   serialization code.

Change-Id: I46f876e4cbc31881ca0559e4705cddf4a26a46c1
CRs-Fixed: 2315411
2018-09-20 13:10:34 -07:00
Nirav Shah
af1260fb4d qcacld-3.0: CE services separation for legacy and lithium architecture
CE service file includes APIs for both legacy and lithium architecture.
Legacy service APIs compiled for lithium architecture.
Separate the CE services into legacy and srng and selectively compile
required files.

Change-Id: Iad6b6c7cef7520e1e7b74da83805290eddcbabf6
CRs-Fixed: 2304556
2018-09-17 21:29:08 -07:00
Harprit Chhabada
6c641bada4 qcacld-3.0: Populate crypto params
Translate the legacy auth type to crypto auth type.
Set the crypto auth type under vdev object.
Use APIs to translate NL param type to crypto
param type from common.

Change-Id: I7073d35fe1724d37467bf970cf6bac7bc40045d1
CRs-Fixed: 2285045
2018-09-17 12:39:02 -07:00
Rakshith Suresh Patkar
d9f4e610c6 qcacld-3.0: Enable wbuff module
wbuff is a module which maintains a pre-allocated pool of
skbs for each registered module and allocates skbs when
requested.

Change-Id: Ia4d13479d8a1342227a2ecbaf29cc7a89bc5e30b
CRs-Fixed: 2313446
2018-09-14 23:14:48 -07:00
Abhishek Singh
ed19748fcd qcacld-3.0: Add kbuild changes for VDEV SM
-Add VDEV MLME header file location to make file.
-Add VDEV manager compilation macros to config file.

Change-Id: Id5b4e1154aad0027ef91401fc4c900fcfd7a78a9
CRs-Fixed: 2309139
2018-09-14 08:16:32 -07:00
Harprit Chhabada
e8155d3e50 qcacld-3.0: Enable EXTSCAN based on converged extscan component
Enable EXTSCAN based on converged cfg component and remove
legacy codes.

Change-Id: Ia4af89c6a898a936c89c6f3f155609a9c3d98541
CRs-Fixed: 2302197
2018-09-12 17:56:55 -07:00
Sravan Kumar Kairam
87cd08e6c2 qcacld-3.0: Add flag for protected dp peer access
Add compiler preprocessor directive to enable DP peer
protected access mechanism in Kbuild for lithium dp.

Change-Id: I3808369b4c0ef678d448b7536fd29dee8748e9ba
CRs-Fixed: 2309393
2018-09-12 15:55:52 -07:00
Sandeep Puligilla
b7beb478db qcacld-3.0: Add legacy VDEV manager callbacks
Add legacy VDEV manager callbacks framework.

Change-Id: I8529a54382b3ffdecd25e54a97fc69d6a6a68177
CRs-Fixed: 2312724
2018-09-12 07:08:13 -07:00
Sourav Mohapatra
113685f379 qcacld-3.0: Add support for FW Offload component
This is for adding support for FW offload component. It is responsible
to offload all the ini params that are needed by the firmware. To have
this component, the new files added are

components/fw_offload/dispatcher/inc/cfg_fwol.h
components/fw_offload/dispatcher/inc/wlan_fwol_ucfg_api.h
components/fw_offload/dispatcher/src/wlan_fwol_ucfg_api.c
components/fw_offload/core/inc/wlan_fw_offload_main.h
components/fw_offload/core/src/wlan_fw_offload_main.c
components/fw_offload/dispatcher/inc/wlan_fw_offload_public_struct.h

The fw_offload_main.h is to take care of the public APIs for the
component. The corresponding .c file implements the init/deinit of
the component. The fw_offload_public_struct.h is to define the public
structures needed. The ucfg files are for the APIs that can be called
from other components. The cfg_fwol stores the INIs and CFGs.

Change-Id: I4405b87e6dec15aa94146f8ec550078c3d03b1e6
CRs-Fixed: 2307837
2018-09-12 02:19:15 -07:00
Dustin Brown
b0c53a848e qcacld-3.0: Limit cherry-picked change Ids to 50
The change Ids of the most recent cherry-picked git commits are appended
to the build tag. In some cases, we have seen build tags containing
thousands of change Ids. To avoid this, limit the number of change Ids
to 50. This should be sufficient to know if some recent change is in the
build or not, without including an unbounded number of change Ids in the
build tag.

Change-Id: I3713cb8e095730ced44d88f7d05a92c2dc77f8b0
CRs-Fixed: 2311431
2018-09-11 18:27:11 -07:00
Rajeev Kumar
4a8d264d94 qcacld-3.0: Enable QDF lock stats feature in debug build
Enable QDF lock stats debug feature in defconfig builds to detect
spin lock abuse in driver and fix it.

Change-Id: I264120d1ca722bac871173f2268737a943c2f5e0
CRs-Fixed: 2311639
2018-09-11 18:27:07 -07:00
Kiran Kumar Lokere
1f96b4af34 qcacld-3.0: Add support for 11ax draft3.0 spec
Add support for 11ax draft3.0 spec.

Change-Id: I272d9f4ec6b3a2a23ad708265dd0afaf289c1b95
CRs-Fixed: 2294255
2018-09-11 16:41:57 -07:00
Ashish Kumar Dhanotiya
2af7f56cd4 qcacld-3.0: Enable mtrace logging
Enable the mtrace logging by adding CONFIG_ENABLE_MTRACE
flag in Kbuild and defconfig file.

Change-Id: I832ab008dc4b7eb7e3124382ebe395cb01464a20
CRs-Fixed: 2311833
2018-09-11 12:01:32 -07:00
Qiwei Cai
ba95ce632f qcacld-3.0: Featurize BUILD_DIAG_VERSION
Featurize BUILD_DIAG_VERSION to compile out to save memory.

Change-Id: Ib6b6c8d197556a9457e600dd5e802f7e50f6242d
CRs-Fixed: 2301487
2018-09-11 08:44:03 -07:00
Rachit Kankane
b57ea618f2 qcacld-3.0: Allocate DFS buffers dynamically
Disable WLAN_DFS_STATIC_MEM_ALLOC for Genoa

Change-Id: Ie035c9f327dccbe4c2cc10f2354d1b23c7890675
CRs-Fixed: 2312050
2018-09-10 23:51:47 -07:00
Qiwei Cai
36bd9ded7b qcacld-3.0: Disable CCX for genoa to save memory
Disable feature CONFIG_QCOM_ESE (CCX) in genoa
config file to save memory.

Change-Id: I2a00be3f9baf976a132f5aaa051e0e7b0935f50c
CRs-Fixed: 2307614
2018-09-10 04:25:21 -07:00
Jianmin Zhu
c78aa31570 qcacld-3.0: Add flag of using enhancements to serialization or not
Enhancements to serialization:
Permit cmd of different vdev can execute concurrently etc.

Change-Id: I6e30f6f73067fd93a7c1f44d4e8310e8557a6a68
CRs-Fixed: 2308582
2018-09-08 07:37:55 -07:00
Rajeev Kumar Sirasanagandla
4f20b67e7a qcacld-3.0: Add debugfs support for roam scan stats
Add debugfs entry to get last five roam scan stats info which includes
old bssid, new bssid, roaming candidates etc., for STA interface.

Change-Id: Ied66beb270d97b6e17a6116c1be0e82783094519
CRs-Fixed: 2203885
2018-09-07 04:43:53 -07:00
Dustin Brown
099048b780 qcacld-3.0: Enable scheduler history for SLUB builds
Enable the scheduler history when compiling SLUB debug builds.

Change-Id: If06f9076bcb01fe5dbb3fd4d031fc87b7e883425
CRs-Fixed: 2307251
2018-09-06 18:56:00 -07:00
Rajeev Kumar Sirasanagandla
85f8b02175 qcacld-3.0: Add debugfs support for offload info
Add debugfs entry to get offload info (mc addr list, arp, ns etc.,)
for STA interface.

Change-Id: I8bf4491929b5ef04ed5ce19f4b0030945f0eb0c0
CRs-Fixed: 2203786
2018-09-06 08:54:37 -07:00
Rajeev Kumar Sirasanagandla
4c8edc0e69 qcacld-3.0: Add debugfs support for connect info
Add debugfs entry to get connect info (bssid, ssid, freq etc.,)
for STA interface.

Change-Id: Id5c350dbb4ca9b9f6b203459adee59b2d5e94f67
CRs-Fixed: 2203654
2018-09-06 08:54:34 -07:00
Rajeev Kumar Sirasanagandla
197d417733 qcacld-3.0: Add debugfs framework support for CSR
Add debugfs framework support to get connect, scan,
roam scan statistics and offload info from debugfs.

Change-Id: I86bdd7e449488d2bcda1b2eaaeb07aac7465770b
CRs-Fixed: 2203626
2018-09-06 08:54:31 -07:00
Rachit Kankane
026e77a99d qcacld-3.0: Featurize P2P Listen Offload
P2P Listen offload is not a requirement for Genoa, hence featurize
P2P listen offload code to save memory foot-print for Genoa.

Change-Id: If50c784bb4cd6daac513a0654364e78cd636c9d3
CRs-Fixed: 2304554
2018-09-06 01:41:49 -07:00
Vignesh Viswanathan
a0921c424e qcacld-3.0: Fix naming conventions for MLME APIs and files
Fixed the naming conventions of APIs and files for MLME component.
Internal MLME component only APIs are in wlan_mlme_main.h/c files
under core.
APIs exposed to other components are in wlan_mlme_api.h/c files
under dispatcher.
APIs exposed to HDD are in wlan_mlme_ucfg_api.h/c files
under dispatcher.
mlme_init/deinit, mlme_psoc_open/close are called from HDD,
so made that as ucfg APIs.

Change-Id: I049008ceaa86ca52acd3ad9a02f903a732117d1f
CRs-Fixed: 2309276
2018-09-05 09:49:58 -07:00
Rachit Kankane
ee1735c905 qcacld-3.0: Featurize RMC
Featurize RMC and disable for Genoa

Change-Id: I66b17622c89dd5736f152c4cd9506ce2706b4604
CRs-Fixed: 2304269
2018-09-05 00:17:52 -07:00
Rachit Kankane
f6834c4b4c qcacld-3.0: Featurize Dynamic Voltage Config
Host provides INI way to control voltage configs, featurizing the
same for Genoa.

Change-Id: Ia58d84eb2e2a67ead189a51d2a0b98230513f8f9
CRs-Fixed: 2304125
2018-09-05 00:17:45 -07:00
Rachit Kankane
0cf4d4feb1 qcacld-3.0: Featurize WLAN_FEATURE_PACKET_FILTERING
Featurize packet filter properly, as this feature was partially featurized.

Change-Id: Ib4b0e94ab2b9847f824220e2cd4efc2cee6fae8d
CRs-Fixed: 2304233
2018-09-04 13:45:49 -07:00
Venkata Sharath Chandra Manchala
c06175de57 qcacld-3.0: Remove HAL files from compilation
1. Remove hal_rx.c from compiling as the API's are
   now mapped target specific.
2. Remove hal_wbm.c from compiling as it is renamed
   as hal_wbm.h and included as part of header files.

Change-Id: I5316014fdc35b2b22a11fd8ba9197508fbf23003
CRs-Fixed: 2305011
2018-09-04 11:53:29 -07:00
Arif Hussain
8d07434552 qcacld-3.0: Add WLAN_DFS_STATIC_MEM_ALLOC flag
Add WLAN_DFS_STATIC_MEM_ALLOC flag to use statically
allocated memory for dfs objects.

Change-Id: I73bfaead4da29a2e4a75cc667470f2255e453b12
CRs-Fixed: 2304928
2018-08-30 17:48:43 -07:00
Ryan Hsu
6e9db0b728 qcacld-3.0: add support to remove the ftm from configuration
Phase 1, after ftm componentization, we could now support to remove
the ftm related components when FTM is disable from the build
configuration.

Size changes: after removing the ftm related binaries, we could save
15KB from module size.

Change-Id: Ib363f1d6204b07947a46f32673c4f8ad6fb3dbd3
CRs-fixed: 2258441
2018-08-29 14:02:49 -07:00
Mohit Khanna
7032200a77 qcacld-3.0: Support for DP RX Threads
Add support for DP RX Threads as a part of the FR. Multiple RX threads
can be enabled from the ini. The code is added in a new DP module
outside of the cmn project.

Change-Id: Ief6ee955f13c5e527986307371b8e45677cb9700
CRs-Fixed: 2256446
2018-08-24 18:35:32 -07:00
Kai Liu
aa88d2f9c2 qcacld-3.0: Define macro WLAN_SYSFS for feature sysfs interface
Disable this feature for MOBILE_ROUTER product, since some MOBILE_ROUTER
platform will attach two wlan cards with separate wlan driver,
during second driver loading process, it will report a warning of
"cannot create duplicate filename" as node with same name has been
created after first driver was loaded.

Change-Id: I9e06439b3a6dacdf4eb5ae87898338ab1eeb8b16
CRs-Fixed: 2295391
2018-08-22 07:46:43 -07:00
Vignesh Viswanathan
21c58cb8c3 qcacld-3.0: Add MLME CFG items and APIs
Add the basic infra for MLME CFG items and the APIs to be used from
other components.

Change-Id: I39654de8f7266089d574b85437a19e8d21f91249
CRs-Fixed: 2293825
2018-08-20 05:29:46 -07:00
Pragaspathi Thilagaraj
ab5cc6ec92 qcacld-3.0: Enable compile time flag WLAN_OBJMGR_REF_ID_DEBUG
Ref id debug support adds an array of atomic_t to peer object
which significantly increases peer object size. Move this debug
support under the compile time flag WLAN_OBJMGR_REF_ID_DEBUG to
save memory.

Enable the compile time flag WLAN_OBJMGR_REF_ID_DEBUG for mcl.

Change-Id: Ie618bd049270d23def6ca37542f1e2948b6d32b5
CRs-Fixed: 2297976
2018-08-17 16:13:09 -07:00
Varun Reddy Yeturu
29044cd4d7 qcacld-3.0: Enable Crypto component
Make changes to the Kbuild and config files to
enable and compile crypto common component

Change-Id: Ie16acd71d7794aa8ffaf6e48596bc6f46294a1df
CRs-Fixed: 2294394
2018-08-17 04:40:08 -07:00
Qiwei Cai
50a2108ab3 qcacld-3.0: Allocate g_dph_node_array dynamically
Allocate g_dph_node_array dynamically to reduce build size.

Change-Id: Iffd9c2e205f9ee6b5365ab2e326198677fa57de2
CRs-Fixed: 2290501
2018-08-15 01:17:38 -07:00