Commit Graph

11 Commits

Author SHA1 Message Date
David Oladunjoye
bee501dcb7 qcacmn: Return error when unpermitted character is parsed in ini
Currently, when an unpermitted character is added to ini, driver
flags as an unknown config item and continues parsing. This could
be an issue. Change is to return error when invalid character is
parsed in ini.

Change-Id: I0249d187f0e05a31dd256d5de56798a575903e5b
CRs-Fixed: 3354669
2023-01-17 05:30:11 -08:00
Jeff Johnson
9a15a4b294 qcacmn: cfg: Fix misspellings
Fix misspellings in cfg/...

Change-Id: Ib1c1aa1a37071d472a83b9d4d1585b9c6e081224
CRs-Fixed: 3304681
2022-10-08 12:16:04 -07:00
Surya Prakash Raajen
edf9fd0441 qcacmn: Add support for section parsing in ini
Add support for section parsing in ini, such that we could
read specific section of the file and update the ini values
instead of redundant values or updating the same in the
scripts based on the config

Change-Id: Ibdb08a04d709746c04c3e7c47ee3bb4a7ce85346
CRs-Fixed: 3107545
2022-02-16 10:26:33 -08:00
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
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
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
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
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
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