Commit Graph

20 Commits

Author SHA1 Message Date
Paul Zhang
c1b915da06 qcacmn: use debugfs to show ini configs
Create new interface ucfg_cfg_ini_config_print/cfg_ini_config_print
to save the ini configs to buffer.

Change-Id: I7bc80d56d3a806a53c299d1347d4a656a6856248
CRs-Fixed: 2579558
2019-12-27 03:26:11 -08:00
Akshay Kosigi
eec6db94bd qcacmn: Remove void pointer usage for ctrl psoc
Make change to remove usage of void pointers for
ctrl psoc in DP and instead use a opaque pointer
struct cdp_ctrl_objmgr_psoc.

Change-Id: I9fac21db1156378fc10b95cf10517afa4364da00
CRs-Fixed: 2484411
2019-07-27 13:42:49 -07:00
Vivek
7047d0d1a5 qcacmn: Replace WIN/MCL from macro names
There are macro defined differenly for WIN and MCL
to pick up default INI value either for WIN or MCL.

The macro name uses WIN and MCL and also enabling the
right macro is controlled by CONFIG_MCL.

Replace the macro with CONFIG_AP_PLATFORM.

Change-Id: Ib5663532d45534cce1715ef06447116e2654e709
CRs-Fixed: 2484959
2019-07-10 07:24:26 -07:00
Sandeep Puligilla
41696b3a10 qcacmn: Enable CFG INI/NON INI Logging
Enable CFG INI/NON INI logging

CRs-Fixed: 2425069
Change-Id: I21cbcc5f88cc0099dc593113f1d346e188d70f58
2019-04-15 22:26:42 -07:00
Harprit Chhabada
67817953c1 qcacmn: Remove range validation check for Boolean type
BOOLEAN is native c type so external range validation
is not needed.

Change-Id: I38f72938ffb282a42ea175a11435c629ea3d9194
CRs-Fixed: 2410988
2019-03-21 05:12:11 -07:00
Sandhya Mahadevan
1d893d85b3 qcacmn: Fix compilation error when WLAN_SUPPORT_GREEN_AP is disabled
Problem & Solution: WLAN_SUPPORT_GREEN_AP is enabled by default.
cfg_green_ap_params.h file gets included only when this flag is enabled.
So, in case of setting WLAN_SUPPORT_GREEN_AP=0, this file need not be
included to avoid compilation errors.

Change-Id: Id42be740268291c46621198a9c90c5d629a92386
2019-02-27 09:56:00 -08:00
Shashikala Prabhu
7eb2d08e3b qcacmn: Add INI support to disable spectral feature
Add INI support to disable spectral feature and do not process the spectral
user commands if spectral feature is  disabled.

Change-Id: Id353131675454652d59fd5d5f8fd3d732a07b777
Acked-by: Shashikala Prabhu <pshashik@codeaurora.org>
CRs-Fixed: 2343947
2018-12-27 13:28:00 -08:00
Kiran Kumar Lokere
40d7624678 qcacmn: Fix the min and max values for boolean cfg item
Correct the MIN and MAX values for Boolean CFG item.

Change-Id: I0b4eb8b293d5517036fc5691b4c3657a811d9bdf
CRs-Fixed: 2357920
2018-12-21 02:40:52 -08:00
Wu Gao
e416a99c8a qcacmn: Add API to check the value is in range of bool type
Since there is user case to check the input value is in range of bool
type, add API to support it.

Change-Id: I03b225210768506e53ca60a0dd71af58e4f142a9
CRs-Fixed: 2350740
2018-11-16 13:34:49 -08:00
gaurank kathpalia
4d51e9bb73 qcacmn: Add green ap params
Add green AP params in green ap ctx
in respect to CFG convergence

Change-Id: I7a0b1352cb76464a82d727852f9a0df101d8ec4c
CRs-Fixed: 2322125
2018-10-16 04:35:04 -07:00
Harprit Chhabada
20ffac7774 qcacmn: Add CFG/INI items to extscan component
Add following extscan CFG items to common ext scan component

1.CFG_EXTSCAN_PASSIVE_MAX_CHANNEL_TIME
2.CFG_EXTSCAN_PASSIVE_MIN_CHANNEL_TIME
3.CFG_EXTSCAN_ACTIVE_MAX_CHANNEL_TIME
4.CFG_EXTSCAN_ACTIVE_MIN_CHANNEL_TIME
5.CFG_EXTSCAN_ALLOWED

Change-Id: Ib4e1acc2d1535f91a8dc084305cdf01f5d7f57f1
CRs-Fixed: 2292754
2018-09-12 17:57:22 -07:00
Vivek
126db5db3f qcacmn: Add INI support for Lithium DP configuration items
The current Lithium DP configuration items are hard
code and cannot be configured for different values
without rebuilding the driver

Add the INI configurability option for the Lithium
DP config parameters

Change-Id: I30012903ccb0654bdff706beff80655313aca289
CRs-Fixed: 2246404
2018-07-30 02:53:39 -07:00
Arif Hussain
f0e87032dc qcacmn: Use CONFIG_MCL flag to define MCL_OR_WIN_VALUE
Use CONFIG_MCL flag to separate MCL vs WIN version of
MCL_OR_WIN_VALUE macro.

Change-Id: Id14200ceb261eb10f9582ebefd75e06a4fe9f17f
CRs-Fixed: 2283692
2018-07-27 09:09:56 -07:00
Nirav Shah
87668f872b qcacmn: Add compilation flag for enter/exit macros
Map all enter/exit log macros to enter/exit QDF TRACE macro
to provide option to compile out enter/exit logs if required

Change-Id: I913ef0fb2486fde6b2ec4dfe8465884ca4d66ce4
CRs-Fixed: 2274857
2018-07-25 09:40:54 -07:00
Vivek
2a331374b8 qcacmn: Add cfg API to parse additional files
Add cfg API's to parse different global
and psoc INI files, but store to the same
global or psoc store as required.

Change-Id: I588f47bc61094640ddfe4b29712ca978908f2844
CRs-Fixed: 2278934
2018-07-19 21:33:11 -07:00
Sandeep Puligilla
ba6526d5a5 qcacmn: Add CFG/INI items to scan component
Add following scan CFG items to common scan component

1.CFG_ACTIVE_MAX_CHANNEL_TIME:Max active dwell time
2.CFG_PASSIVE_MAX_CHANNEL_TIME:Max passive dwell time

Change-Id: I3aeed28a404984812ebbc56f2a8d28e7e9ab7de2
CRs-Fixed: 2277105
2018-07-17 22:44:24 -07:00
Dustin Brown
46a32752de qcacmn: Fix cfg_in_range for non-ini values
Currently, the macro type and the "is an ini" value information are
clubbed to together in the cfg component. This lead to not being able to
use the macro type with non-ini configuration values. Split macro type
and "is an ini" value information in the cfg component so that
cfg_in_range can be used with non-ini configuration values.

Change-Id: If63f222cf21a45f0d7d3809f1be845ecc2b2cd65
CRs-Fixed: 2278656
2018-07-17 20:11:36 -07:00
Vignesh Viswanathan
eec5a3331e qcacmn: Fix cfg_in_range macro for different CFG Types
Due to some inconsistency in defining definition of cfg_##mtype##_in_range
and the mtype of the CFG_INI_xxx definitions, usage of cfg_in_range
was causing compilation issues.

Fix the cfg_in_range related macros with correct mtypes

Change-Id: I239a5f8735e5f2d7807b4947e36a655f58f26210
CRs-Fixed: 2278335
2018-07-14 05:00:10 -07:00
Dustin Brown
950ceeeb80 qcacmn: Add configuration component implementation
Add the implementation for the new configuration component.

Change-Id: If94e9b4015a7c43674112925206b54a33bd3e340
CRs-Fixed: 2196022
2018-03-20 20:02:22 -07:00
Dustin Brown
00e22124e6 qcacmn: Add configuration component header files
Add header files for the new converged configuration component.

cfg_dispatcher.h: Contains dispatcher lifecycle handlers
cfg_define.h: Tools for components to define new configuration metadata
cfg_ucfg.h: Contains APIs for consuming configuration at runtime
cfg_converged.h: Contains a collection of configuration metadata from
	all the converged components

Change-Id: Ief5d3e33dca1bc5f8dba47d9e0c03a97ad1b371f
CRs-Fixed: 2196017
2018-03-20 20:02:20 -07:00