]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wilink8-wlan/18xx-ti-utils.git/log
wilink8-wlan/18xx-ti-utils.git
11 years agowlconf: set default HT mode to SISO40 R8.xx_Build-150 R8.xx_Build-151 R8.xx_Build-152 R8.xx_Build-153 R8.xx_Build-154 R8.xx_Build-155 R8.xx_Build-156 R8.xx_Build-157 R8.xx_Build-158 R8.xx_Build-159 R8.xx_Build-160 R8.xx_Build-162 R8.xx_Build-163 R8.xx_Build-164 R8.xx_Build-165 R8.xx_Build-166
Yair Shapira [Mon, 19 Nov 2012 15:58:32 +0000 (17:58 +0200)]
wlconf: set default HT mode to SISO40

Updated:
    default.conf
    example.conf
    wl18xx-conf-default.bin

This alignes with driver commit fdc4baaa4a193032

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: Update metafiles according to latest official INIs R8.xx_Build-145 R8.xx_Build-146 R8.xx_Build-147 R8.xx_Build-148 R8.xx_Build-149 ol_r8.a5.05
Yair Shapira [Thu, 15 Nov 2012 15:54:10 +0000 (17:54 +0200)]
wlconf: Update metafiles according to latest official INIs

Updated:
default.conf
example.conf
example.ini
wl18xx-conf-default.bin

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf/ini: update ini files to HDK1.8
Ido Reis [Thu, 15 Nov 2012 14:28:31 +0000 (16:28 +0200)]
wlconf/ini: update ini files to HDK1.8

Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: change INI files and deault values R8.xx_Build-121 R8.xx_Build-122 R8.xx_Build-123 R8.xx_Build-124 R8.xx_Build-125 R8.xx_Build-126 R8.xx_Build-127 R8.xx_Build-128 R8.xx_Build-129 R8.xx_Build-130 R8.xx_Build-131 R8.xx_Build-132 R8.xx_Build-133 R8.xx_Build-134 R8.xx_Build-135 R8.xx_Build-137 R8.xx_Build-138 R8.xx_Build-139 R8.xx_Build-140 R8.xx_Build-141 R8.xx_Build-142 R8.xx_Build-143 R8.xx_Build-144 ol_r8.a5.02 ol_r8.a5.03 ol_r8.a5.04
Yair Shapira [Tue, 30 Oct 2012 13:53:46 +0000 (15:53 +0200)]
wlconf: change INI files and deault values

Offical INI files were modified to the latest. The changes are in
TX power level values:

TxPower_level_MaxPower      = 18
TxPower_level_MedPower      = 12
TxPower_level_LowPower      = 08

TxPower_level_MaxPower_2nd  = 14
TxPower_level_MedPower_2nd  = 0A
TxPower_level_LowPower_2nd  = 05

Meta files were updated accordingly:
    default.conf
    example.conf
    example.ini
    wl18xx-conf-default.bin

This change aligns with driver change: commit debefd66f5ff

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agocalibrator: add support for plt fem-detect/chip-awake power modes R8.xx_Build-114 R8.xx_Build-115 R8.xx_Build-116 R8.xx_Build-117 R8.xx_Build-118 R8.xx_Build-119 R8.xx_Build-120
Yair Shapira [Mon, 22 Oct 2012 07:52:40 +0000 (09:52 +0200)]
calibrator: add support for plt fem-detect/chip-awake power modes

fem-detect power mode works on wl6/7 and returns the fem radio type.
This is the basis for calibrator auto-fem logic where the decision
on fem type to use is done in calibrator itself and not the driver.

auto-fem logic will be added later on.

chip-awake mode turns the chip on and perform sdio initialization
and ELP wakeup. This mode is used for RTTT sdio bridging.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: increase scan dwell times if no activity R8.xx_Build-101 R8.xx_Build-109 R8.xx_Build-110 R8.xx_Build-111 R8.xx_Build-112 ol_r8.a5.01
Ido Reis [Sun, 21 Oct 2012 18:25:21 +0000 (20:25 +0200)]
wlconf: increase scan dwell times if no activity

Allow configuration of longer dwell times in case there no active
interface (i.e. no STA associated or AP up).

update min/max dwell times, and add two additinal wlcore:
min_dwell_time_active_conc, max_dwell_time_active_conc.

The new values are:
25000/50000 for normal dwell times.
7500/30000 for conc mode.

alignment to driver commit 255ee520a7657f95e4f62c0503fea8fa616fe54c.

Signed-off-by: Ido Reis <idor@ti.com>
11 years agowlconf: update default fw logger conf to uart/cont R8.xx_Build-100 R8.xx_Build-91 R8.xx_Build-92 R8.xx_Build-93 R8.xx_Build-94 R8.xx_Build-95 R8.xx_Build-96 R8.xx_Build-97 R8.xx_Build-98 R8.xx_Build-99 ol_r8.a4.05
Ido Reis [Mon, 15 Oct 2012 09:36:24 +0000 (11:36 +0200)]
wlconf: update default fw logger conf to uart/cont

update the fw logger mode to continuous, and output to dbgpins (uart).
alignment to driver commit 846b680dff951054029dab40452d492f0980db36.

Signed-off-by: Ido Reis <idor@ti.com>
11 years agowl_logproxy: update to the latest version R8.xx_Build-85 R8.xx_Build-86 R8.xx_Build-87 R8.xx_Build-89 R8.xx_Build-90 ol_r8.a4.04
Igal Chernobelsky [Thu, 11 Oct 2012 13:33:11 +0000 (15:33 +0200)]
wl_logproxy: update to the latest version

This version is based on FW logger which log record
len was removed (starting from FW 8.4.0.0.22)

Signed-off-by: Igal Chernobelsky <igalc@ti.com>
11 years agowlconf: Add support for 2nd set of mac/phy TxPower params R8.xx_Build-79 R8.xx_Build-80 R8.xx_Build-81 R8.xx_Build-82 R8.xx_Build-83 R8.xx_Build-84
Yair Shapira [Tue, 9 Oct 2012 14:22:01 +0000 (16:22 +0200)]
wlconf: Add support for 2nd set of mac/phy TxPower params

First set (low, medium and high TX power values) is used
for STA-HP BG role. The 2nd set is used for other roles.

New official INI files were updated to include new values

Meta files were updated accordingly:
conf.h
dictionary.txt
struct.bin
default.conf
wl18xx-conf-default.bin

Example file were updated:
example.conf
example.ini

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: add support for slow/fast link treasholds R8.xx_Build-70 R8.xx_Build-71 R8.xx_Build-72 R8.xx_Build-73 R8.xx_Build-74 R8.xx_Build-76 R8.xx_Build-78
Ido Reis [Wed, 3 Oct 2012 14:52:53 +0000 (16:52 +0200)]
wlconf: add support for slow/fast link treasholds

updated due to driver commit 986380e (wlcore: improved Tx scheduling
algorithm), which modified the wlcore base struct.

In addition of updating conf.h, the following files were regenerated:
struct.bin
default.conf
example.conf
wl18xx-cond-default.bin

Signed-off-by: Ido Reis <idor@ti.com>
11 years agocalibrator: Adding FW version validation R8.xx_Build-10 R8.xx_Build-12 R8.xx_Build-13 R8.xx_Build-15 R8.xx_Build-16 R8.xx_Build-17 R8.xx_Build-18 R8.xx_Build-20 R8.xx_Build-21 R8.xx_Build-22 R8.xx_Build-23 R8.xx_Build-24 R8.xx_Build-25 R8.xx_Build-27 R8.xx_Build-28 R8.xx_Build-32 R8.xx_Build-34 R8.xx_Build-35 R8.xx_Build-36 R8.xx_Build-37 R8.xx_Build-38 R8.xx_Build-39 R8.xx_Build-40 R8.xx_Build-41 R8.xx_Build-42 R8.xx_Build-43 R8.xx_Build-44 R8.xx_Build-45 R8.xx_Build-46 R8.xx_Build-48 R8.xx_Build-49 R8.xx_Build-50 R8.xx_Build-51 R8.xx_Build-52 R8.xx_Build-53 R8.xx_Build-54 R8.xx_Build-55 R8.xx_Build-56 R8.xx_Build-57 R8.xx_Build-58 R8.xx_Build-59 R8.xx_Build-6 R8.xx_Build-60 R8.xx_Build-61 R8.xx_Build-62 R8.xx_Build-63 R8.xx_Build-64 R8.xx_Build-65 R8.xx_Build-66 R8.xx_Build-67 R8.xx_Build-68 R8.xx_Build-69 R8.xx_Build-7 R8.xx_Build-8 R8.xx_Build-9 ol_r8.a4.01 ol_r8.a4.02 ol_r8.a4.03 r8.a3.09-build_49 r8.a3.09-build_50 r8.a3.09-build_51
Arthur Tiv [Thu, 30 Aug 2012 04:51:58 +0000 (04:51 +0000)]
calibrator: Adding FW version validation

 Adding FW version validation for last 4 new command.

Signed-off-by: Arthur Tiv <arthur.tiv@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agocalibrator: Adding README updates
Arthur Tiv [Wed, 15 Aug 2012 15:48:09 +0000 (15:48 +0000)]
calibrator: Adding README updates

Adding description of the new command to the README text file.
Adding updated version number.

Signed-off-by: Arthur Tiv <arthur.tiv@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agocalibrator: Add read/write PHY reg
Arthur Tiv [Wed, 15 Aug 2012 15:48:08 +0000 (15:48 +0000)]
calibrator: Add read/write PHY reg

Adding read PHY register command.
Adding write PHY register command.

Signed-off-by: Arthur Tiv <arthur.tiv@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agocalibrator: Adding two more set antenna cmds
Arthur Tiv [Wed, 15 Aug 2012 15:48:07 +0000 (15:48 +0000)]
calibrator: Adding two more set antenna cmds

There are two set antenna commands: for the 2.4 GHz and 5GHz.
The previous set antenna command is removed.

Signed-off-by: Arthur Tiv <arthur.tiv@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: Update wl18xx (phy) conf parameters
Yair Shapira [Thu, 30 Aug 2012 11:46:13 +0000 (14:46 +0300)]
wlconf: Update wl18xx (phy) conf parameters

Updated per changes in phy conf structure and default values.

Meta files regenerated accordingly.

This fix also includes new official INI files and

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: Updated default conf to HP_SISO R8.xx_Build-2 R8.xx_Build-3 R8.xx_Build-4 R8.xx_Build-5 ol_r8.a3.14 r8.a3.09-build_37 r8.a3.09-build_38 r8.a3.09-build_39 r8.a3.09-build_41 r8.a3.09-build_42 r8.a3.09-build_43 r8.a3.09-build_44 r8.a3.09-build_45 r8.a3.09-build_47 r8.a3.09-build_48
Yair Shapira [Wed, 15 Aug 2012 13:58:27 +0000 (16:58 +0300)]
wlconf: Updated default conf to HP_SISO

Updated default conf to HP_SISO - siso40 for rdl1_rdl3

default.conf,
example.conf and
wl18xx-conf-default.bin

were updated accordingly.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: add support for recovery setting conf ol_r8.a3.12-jb ol_r8.a3.13-jb r8.a3.09-build_35 r8.a3.09-build_36
Yair Shapira [Wed, 8 Aug 2012 14:02:27 +0000 (17:02 +0300)]
wlconf: add support for recovery setting conf

add support for recovery settings conf including bug_on_recovery
and no_recovery options. This aligns with latest kernel change.

In addition to updating conf.h, the following files were regenerated:
struct.bin
default.conf
example.conf
wl18xx-cond-default.bin

Also tests were updated in accordance to the change and a small error
in wlconf_unit_test.xlsx was fixed.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: change default core.ht.rx_ba_win_size ol_r8.a3.11 ol_r8.a3.11_jb r8.a3.09-build_28 r8.a3.09-build_29 r8.a3.09-build_30
Yair Shapira [Sun, 5 Aug 2012 15:06:12 +0000 (18:06 +0300)]
wlconf: change default core.ht.rx_ba_win_size

change default core.ht.rx_ba_win_size to 32 (0x20).
Update default.conf, example.conf and wl18xx-conf-default.bin

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: update wlconf_unit_test.xlsx to latest ol_r8.a3.10 r8.a3.09-build_23 r8.a3.09-build_24 r8.a3.09-build_25 r8.a3.09-build_27
Yair Shapira [Tue, 31 Jul 2012 12:29:58 +0000 (15:29 +0300)]
wlconf: update wlconf_unit_test.xlsx to latest

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf : update HP SISO tx power in ini file r8.a3.09-build_22
Yair Shapira [Mon, 30 Jul 2012 15:09:59 +0000 (18:09 +0300)]
wlconf : update HP SISO tx power in ini file

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: fix a bug in -b option
Yair Shapira [Mon, 30 Jul 2012 14:25:56 +0000 (17:25 +0300)]
wlconf: fix a bug in -b option

This option allows to read another struct.bin file. The bug
was that the file was not read even when passed in -b

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: update unit test plan
Yair Shapira [Mon, 30 Jul 2012 12:09:18 +0000 (15:09 +0300)]
wlconf: update unit test plan

update wlconf unit test plan including tests folder

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agoini: update files with tx power levels ol_r8.a3.08 ol_r8.a3.09 r8.a3.08-build_12 r8.a3.08-build_13 r8.a3.08-build_14 r8.a3.08-build_16 r8.a3.08-build_18 r8.a3.09-build_19 r8.a3.09-build_20 r8.a3.09-build_21
Ido Reis [Wed, 18 Jul 2012 11:46:57 +0000 (14:46 +0300)]
ini: update files with tx power levels

11 years agoini: update siso INI files r8.a3.05-build_8 r8.a3.08-build_10 r8.a3.08-build_11
Ido Reis [Tue, 17 Jul 2012 16:16:39 +0000 (19:16 +0300)]
ini: update siso INI files

11 years agowlconf: add WLCONF_DIR define to set metafiles dir
Yair Shapira [Mon, 16 Jul 2012 15:07:27 +0000 (18:07 +0300)]
wlconf: add WLCONF_DIR define to set metafiles dir

WLCONF_DIR can be defined to set the target metafiles directory.
This dir contains the files: struct.bin, default.conf, example.conf
dictionary.txt, wl18xx-conf-default.bin.

In case of Android build this is defined as "/system/etc/wifi/wlconf/"
This allows running wlconf from every folder.

If not define then "" (current directory) is used (i.e. native Linux)

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: struct arrays and other minor fixes
Yair Shapira [Mon, 16 Jul 2012 12:26:39 +0000 (15:26 +0300)]
wlconf: struct arrays and other minor fixes

Modify conf.h to unwrap arrays of structs, i.e.
    /* struct conf_tx_ac_category ac_conf[4]; */
    struct conf_tx_ac_category ac_conf0;
    struct conf_tx_ac_category ac_conf1;
    struct conf_tx_ac_category ac_conf2;
    struct conf_tx_ac_category ac_conf3;
This is an interim solution until it will be handled automatically
by wlconf (i.e. generate such struct.bin from regular conf.h)

Add updated conf files: default.conf, example.conf
Add regenerated meta files: struct.bin, wl18xx-conf-defaults.bin

Fix CRC calc to treat char and unsigned - this aligns between
ubuntu and android

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: update ini files for pg2 ol_r8.a3.07 r8.a3.05-build_6 r8.a3.05-build_7
Ido Reis [Wed, 11 Jul 2012 16:35:30 +0000 (19:35 +0300)]
wlconf: update ini files for pg2

Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: regenerated wl18xx-conf-default.bin ol_r8.a3.05 ol_r8.a3.06 r8.a3.05-build_1 r8.a3.05-build_3 r8.a3.05-build_4 r8.a3.05-build_5
Yair Shapira [Sun, 8 Jul 2012 16:58:08 +0000 (19:58 +0300)]
wlconf: regenerated wl18xx-conf-default.bin

file is regenerated from debugfs conf file and in addition
wlconf -X -o ... is used to fix its checksum.

This provides a temporary solution for a problem that exist when
generating with -D option:  values that are array of structs
(i.e. ac_conf) are not written correctly - only first element is
written and the others contain unknown information.

This is an known issue and limitation with current wlconf
implementation.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: remove padding from ht struct ol_r8.a3.04
Yair Shapira [Thu, 5 Jul 2012 15:24:23 +0000 (18:24 +0300)]
wlconf: remove padding from ht struct

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: changes to enable wl18xx-conf.bin in android
Yair Shapira [Thu, 5 Jul 2012 13:05:04 +0000 (16:05 +0300)]
wlconf: changes to enable wl18xx-conf.bin in android

changes to enable wl18xx-conf.bin in android

changes include:
----------------
- Add new wl18xx.ht.mode param to be used instead of module params
- Add updated conf files: default.conf, example.conf
- Add regenerated meta files: struct.bin, wl18xx-conf-defaults.bin
- Add latest version of official_inis, including fixes to Board_Type
  values

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: modified conf.h version numbers to reflect latest
Yair Shapira [Thu, 28 Jun 2012 10:05:07 +0000 (13:05 +0300)]
wlconf: modified conf.h version numbers to reflect latest

modified version numbers (WLCORE_CONF_VERSION, WL18XX_CONF_VERSION)
to reflect latest driver changes.

Generated new struct.bin and wl18xx-conf-default.bin

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: update structures to mc_internal changes ol_r8.a3.03
Yair Shapira [Wed, 27 Jun 2012 11:21:08 +0000 (14:21 +0300)]
wlconf: update structures to mc_internal changes

updated conf.h to include mc_internal field changes.

local subversion changed to 3 (WL18XX_CONF_VERSION 0x00020003).

regenerated relevant config files: struct.bin, default.conf, example.conf
and wl18xx-conf-default.bin.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowl_logproxy: updated to latest version r5.1.01-build_12 r5.1.01-build_13 r5.1.01-build_14 r5.1.01-build_15
Yair Shapira [Tue, 26 Jun 2012 15:25:38 +0000 (18:25 +0300)]
wl_logproxy: updated to latest version

wl_logproxy was updated to latest ane greatest version.
thanks to Gil Barak.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: copy configuration files to android
Yair Shapira [Tue, 26 Jun 2012 15:22:47 +0000 (18:22 +0300)]
wlconf: copy configuration files to android

all relevant configuration and ini files are now copied to:
/system/etc/wifi/wlconf
/system/etc/wifi/wlconf/official_inis

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: add sta_sleep_auth field in conf.h
Yair Shapira [Tue, 26 Jun 2012 15:16:19 +0000 (18:16 +0300)]
wlconf: add sta_sleep_auth field in conf.h

conf.h was modified to reflect driver conf.h changes and now includes
sta_sleep_auth field.

default.conf and example.conf were modified to include this field

a new struct.bin was generated from conf.h
a new wl18xx-conf-defaults.bin was generated from default.conf

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: add -D option to recreate default configuration bin file
Yair Shapira [Tue, 26 Jun 2012 15:09:48 +0000 (18:09 +0300)]
wlconf: add -D option to recreate default configuration bin file

Add -D option to recreate default configuration bin file (wl18xx-conf-default.bin)
This is used in case we update conf.h structures and we need to recreate
defaults.

default.conf text file was added and is the base for creating the bin file

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: write/read struct.bin is now platform independent
Yair Shapira [Tue, 26 Jun 2012 14:57:33 +0000 (17:57 +0300)]
wlconf: write/read struct.bin is now platform independent

struct.bin contain different elements that are int32. wlconf
was using int and size_t to write and read these elements from
struct.bin.

This is problematic because int and size_t are platform dependent,
i.e. in ubuntu 64bit size_t is defined as uint64.

wlconf was changed to use int32 when reading and writing and convert
to/from int, size_t, etc...

Now wlconf works ok on ubuntu x86-64, Android, Linux-Arm, etc...

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: Fix parsing of comments
Yair Shapira [Tue, 26 Jun 2012 14:42:11 +0000 (17:42 +0300)]
wlconf: Fix parsing of comments

When parsing conf.h wlconf uses regular expression to find and remove
comments.

There was a bug in the regular expression that caused the Android
version to remove also non-comments lines.

For example:
------------
After start of comment (/*) the following was used to skip non end-of-comment:
([^*]|[^*][^/])*

This is buggy because we want to skip anything  not ([*][/]))*
but (not ([*][/])) doesn't translate to [^*][^/] (de-morgan ;-))
It does translate to
[^*] or ([*] but not [^/])

So the correct skipping expression is:
([^*]|[*][^/])*

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
11 years agowlconf: better Android getline implementation ol_r8.a3.01 ol_r8.a3.02 r5.1.01-build_10 r5.1.01-build_11 r8.a2.07-build_140 r8.a2.07-build_141 r8.a2.07-build_146 r8.a2.08-candidate
Yair Shapira [Mon, 18 Jun 2012 13:22:06 +0000 (16:22 +0300)]
wlconf: better Android getline implementation

a better getline implementation using fgetln that is semantically
equivalent to GNU getline

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agoUpdate firmwares: single role : X.3.10.2.115, multi role : X.5.7.0.27 ol_r5.1.03 r5.1.01-build_5 r5.1.01-build_8 r8.a2.07-build_136 r8.a2.07-build_139
Assaf Azulay [Sun, 17 Jun 2012 14:32:52 +0000 (17:32 +0300)]
Update firmwares: single role : X.3.10.2.115, multi role : X.5.7.0.27

    - Add support in new logger over SDIO.
    - Completely disable the PHY CLOCK GATE feature to prevent
future PHY access exceptions during power-down.

Signed-off-by: Assaf Azulay <assaf@ti.com>
11 years agoPorting the wlconf file for Android r5.1.01-build_2 r5.1.01-build_3
Pradeep Gurumath [Fri, 15 Jun 2012 15:52:49 +0000 (10:52 -0500)]
Porting the wlconf file for Android

Avoid freeing the buffer returned by fgetln() in case of Android

Signed-off-by: Pradeep Gurumath <pradeepgurumath@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agoupdating the multi role FW due to template bug
Assaf Azulay [Fri, 15 Jun 2012 12:14:46 +0000 (15:14 +0300)]
updating the multi role FW due to template bug

Signed-off-by: Assaf Azulay <assaf@ti.com>
11 years agoUpdate wl6/7 FW versions : single role X.3.10.2.114 multi role: X.5.7.0.26
Assaf Azulay [Fri, 15 Jun 2012 06:43:33 +0000 (09:43 +0300)]
Update wl6/7 FW versions : single role X.3.10.2.114 multi role: X.5.7.0.26

Single Role Firmware
===================
6.3.8.1.111/ 7.3.8.1.111
    - fix for invalid 11n incoming beacons we set the duration for HT mixed
Mode.
    - Bug Fix Mcs00111501 Wi-Fi Wpsv2 Aput 4.2.13:The Aput Connected When
Overlapped Pbc Sessions.
               Fixed several issues in generic_ie_parser and anded support
for pbc in probe response
              1. In function FindAttribute fixed an issue where the while
 was stopped after one iteration.
              2. In function FindAttribute fixed an issue where the pointer
 was increased only by attribute  payload length without
 the header length.
              3. Added support for IE that uses BIG Endian.
              4. Added function that search and indicates whether the PBC
was pressed the probe response WSC IE
                 and we use that function to decide if to raise the probe
to the host or drop it.
   - fix Security Padding (Under a compliation flag ,FW_SECURITY_PADDING
- Default = Disabled!!!!) : Move Security Padding handler from Host
 to FW. FW will be in charge for adding the security padding for
 each data packet according to security type.
   - Bug Fix MCS00111964 - Schedule scan: Detecting of AP with suitable SSID
, but not suitable privacy causes recovery during scheduled scan.
   - Bug fix MCS00112154 (SUT): QuattroL HP-FEM; 2.4GHz; HW_WD_EXPIRE FW
PC=0x21de2 during Connection on CH 11.
        On HP FEM reduce Rx gain level for LTE better coexistence
   - Bug Fix MCS00112566 - WiFi Direct: Recovery occurs after successful
group formation.
        PowerSaveModule_ExitPowerSaveByClient() - function callback points
to null!

6.3.9.2.112/ 7.3.9.2.112
    - Added two more Probe Request types for application scan (one shot),
and changed the
              Older Probe Request templates to Connection scan (sched scan)
 probes. also changed
              the probe to be regular and role aware and role protected.
    - Enabling connection scan while STA is connected.
              The whole connection scan process was wrapped with enter/exit
power save.
              A client (POWER_SAVE_CONN_SCAN_CLIENT_ID) for the connection
scan was added to the PS module. PS module is now responsible
 of launching the connection scan process by invoking
ProcessConnectionScanEnterPSCB after entering PS success.

6.3.10.2.113/ 7.3.10.2.113
    - IPv6 Feature offloading -
              added functionality to Fw for Auto response to Neighbour
Solicitaion frames.

6.3.10.2.114/ 7.3.10.2.114
    - During opening a tx ba seesion, if the recipient returns addba response
with winSize smaller than we requested, we don't update it properly
upon the TBC_Init.
    - rx_streaming.c: Go over all the TIDs (8) instead of
RX_STRAMING_NUM_OF_TID_SUPPORTED (4). Also send the TID instead of
the TIDindex.
    - Bug Fix MCS00113136 - WiFi TGn APUT 4.2.31: The APUT doesn't turn on
the HT non-member protection bit
    - Bug Fix MCS00110974 - APUT : Beacon stops while UDP RX traffic - Wrong
AIFSN calculation.
    - Bug Fix for TC5.2.2 - PM bit was set in the probe request.

Multi Role Firmware
===================

6.5.6.0.24 / 7.5.6.0.24
    -  Universal scan feature

6.5.7.0.25 / 7.5.7.0.25
    - Enabling connection scan while STA is connected.
        The whole connection scan process was wrapped with enter/exit
power save.
        A client (POWER_SAVE_CONN_SCAN_CLIENT_ID) for the connection
can was added to the PS module. PS module is now responsible
of launching the connection scan process by invoking
processConnectionScanEnterPSCB after entering PS success.
    - Align the IPv6 APIs with the Host. IPv6 offload is not supported in
MR FW. FW will return CMD_STATUS_SUCCESS.

6.5.7.0.26 / 7.5.7.0.26
    - During opening a tx ba seesion, if the recipient returns addba response
 with winSize smaller than we requested, we don't update it properly
upon the TBC_Init.
    - Bug Fix MCS00112495:BSS preamble: worng duration.
        We didn't configure correctly the immediate response rate.
We need to used FW format of rates and not the HW format.
    - Wrong calculation of the MPDU size. This is because the FwCtrl of the
fw-generated was not initialized.
    - Bug Fix MCS00111964: Schedule scan: Detecting of AP with suitable SSID,
but not suitable privacy causes recovery during scheduled scan.
    - fix for invalid 11n incoming beacons we set the duration for HT mixed Mode.
    - Bug Fix MCS00102599 FW - R5 MR: ""keep alive"" frames are NOT sent.
    - The auto ARP address3 was not set correctly in TxEngine_PrepTemplateHeader.
Instead it is set in arpFltr_dequeueResponseFrameInfo.
    - Bug Fix MCS00110974 - APUT : Beacon stops while UDP RX traffic - Wrong
AIFSN calculation.
    - Bug Fix for TC5.2.2 - PM bit was set in the probe request

Signed-off-by: Assaf Azulay <assaf@ti.com>
11 years agocalibrator: rename HP TQS ini files and copy to system/etc/wifi r5.1-2012-06-14-2
Yair Shapira [Thu, 14 Jun 2012 13:12:24 +0000 (16:12 +0300)]
calibrator: rename HP TQS ini files and copy to system/etc/wifi

HP TQS ini files were renamed to be in the same naming style as
the other FEM ini files including file's mode

Andorid.mk was moodifed to copy the new files to:
/system/etc/wifi/ini_files

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years ago update wl6/7 singel role FW to X.3.9.2.112
Assaf Azulay [Thu, 14 Jun 2012 10:05:04 +0000 (13:05 +0300)]
 update wl6/7 singel role FW to X.3.9.2.112

Signed-off-by: Assaf Azulay <assaf@ti.com>
11 years agocalibrator: HP_FEM, add new ini files for TQS HP FEM r5.1-2012-06-14
Yair Shapira [Thu, 14 Jun 2012 08:37:02 +0000 (11:37 +0300)]
calibrator: HP_FEM, add new ini files for TQS HP FEM

Add new ini files for TQS HP FEM type (type=2) for radio 127x
and 128x

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, add support for optional ini file parameters
Yair Shapira [Thu, 14 Jun 2012 08:37:01 +0000 (11:37 +0300)]
calibrator: HP_FEM, add support for optional ini file parameters

In current implementation, parsing of ini files expect a certain amount
of parameters/values to exist for each params section. This prevents
optional params - in other words all params must exist

The new ini files for HP FEM has some optional params - i.e. SRF
params do not exist

In order to support this the parsing now checks if we started a new
params section even if we didn't finish the previous one. This in fact
allows for optional params

A log is now printed out to indicate this situation to the user

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, add support for new FEMs in nvs file
Yair Shapira [Thu, 14 Jun 2012 08:37:00 +0000 (11:37 +0300)]
calibrator: HP_FEM, add support for new FEMs in nvs file

nvs file is now fully supported with new FEM types (2 and 3)
including all relevant calibrator commands, error checkings and
printouts.

While FEM manuf can be 0,1,2,3 the FEM radio params are always
stored in one of two entries: 0,1 (all FEM except 1 are stored
in entry 0).

Auto FEM detection support is still done by driver, therefore
it is still limited to FEM types 0 and 1.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, add parsing for FEM_2 and FEM3
Yair Shapira [Thu, 14 Jun 2012 08:36:59 +0000 (11:36 +0300)]
calibrator: HP_FEM, add parsing for FEM_2 and FEM3

Increase number of FEM types to 4 and Add parsing routines for
FEM_2 (SKW) and FEM_3(HP) including all relevant type changes.

This is only done in the parsing level. Calibrator still only
supports FEM_0 and FEM_2 (small change in nvs.c to ensure this)

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, Change order of parsing function
Yair Shapira [Thu, 14 Jun 2012 08:36:58 +0000 (11:36 +0300)]
calibrator: HP_FEM, Change order of parsing function

Change the order of FEMx parsing functions to be consistent for
all FEM types. Also changed order accordingly in find_section
routine. This will also make reviewing of new FEM types easier
(if they use the same consistency rule)

Order of functions is now:
=========================

2.4G band routines
------------------
parse_fem0_band2_prms
parse_fem0_band2_prms_128x

parse_fem1_band2_prms
parse_fem1_band2_prms_128x
...
...
5G band routines
----------------
parse_fem0_band5_prms
parse_fem0_band5_prms_128x

parse_fem1_band5_prms
parse_fem1_band5_prms_128x
...
...

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, Fix logs and printouts
Yair Shapira [Thu, 14 Jun 2012 08:36:57 +0000 (11:36 +0300)]
calibrator: HP_FEM, Fix logs and printouts

Fix a typo in calibration log of radio_status
Change printout of FEM to print both manufacturer and index
(as they might be different - i.e. for FEM types 2 and 3)

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agocalibrator: HP_FEM, separate ini structure from nvs_ini structure
Yair Shapira [Thu, 14 Jun 2012 08:36:56 +0000 (11:36 +0300)]
calibrator: HP_FEM, separate ini structure from nvs_ini structure

This is done as preperation for supporting new FEM types, i.e.
HP_FEM (type 3) and SKW(type 2) that will be added soon.
nvs writing of ini params was modified to use new nvs_ini struct

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: Add getline macro in case of Android r8.a2.07
Yair Shapira [Thu, 7 Jun 2012 14:01:44 +0000 (17:01 +0300)]
wlconf: Add getline macro in case of Android

Android stdio.h is missing the getline() function. Added getline
macro to main.c based on bionic stdio.h fgetln function

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Ido Reis <idor@ti.com>
11 years agoupdate README with wl18xx_plt set_tx_power description
Ido Reis [Thu, 7 Jun 2012 08:48:22 +0000 (11:48 +0300)]
update README with wl18xx_plt set_tx_power description

Signed-off-by: Ido Reis <idor@ti.com>
11 years agowlconf: move some definitions to new wlconf.h
Luciano Coelho [Fri, 1 Jun 2012 22:11:42 +0000 (01:11 +0300)]
wlconf: move some definitions to new wlconf.h

Some of the definitions belong in a header file.  Create a new
wlconf.h file and move some of the structure and macro definitions to
it.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: use get_value() to print the structs and clean-up
Luciano Coelho [Fri, 1 Jun 2012 09:12:07 +0000 (12:12 +0300)]
wlconf: use get_value() to print the structs and clean-up

Reuse the get_value() function to print the entire structure tree
(without data) and add a test case to cover it.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: remove dump option and allow get to print the root
Luciano Coelho [Fri, 1 Jun 2012 08:27:26 +0000 (11:27 +0300)]
wlconf: remove dump option and allow get to print the root

Instead of treating the dump case separately, change the get function
so that it can also print out the entire tree, starting from the root
structure.  Remove --dump option.

Add a test case to make sure reading, writing back and reading again
works fine.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: update example.conf to contain all possible elements
Luciano Coelho [Fri, 1 Jun 2012 07:37:56 +0000 (10:37 +0300)]
wlconf: update example.conf to contain all possible elements

Update the example.conf file so that it now contains all the default
values that are in the wl18xx-conf-default.bin file.  These are all
the values currently used by the driver.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: don't dump by default
Luciano Coelho [Fri, 1 Jun 2012 07:31:40 +0000 (10:31 +0300)]
wlconf: don't dump by default

Using the dump command as a default may be confusing.  Just print the
usage instead.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: refactor print_element() to support structures
Luciano Coelho [Fri, 1 Jun 2012 07:23:10 +0000 (10:23 +0300)]
wlconf: refactor print_element() to support structures

In order to get entire structures with the --get command, the
print_element() function has been refactored so that it can print
structures as well.

Add unit tests to verify different variations of the the get command.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add support for arrays in INI files
Luciano Coelho [Thu, 31 May 2012 16:01:49 +0000 (19:01 +0300)]
wlconf: add support for arrays in INI files

Implement support for setting full arrays from INI files.  The tool
now accepts space-separated values for array elements.

Update the valid test case and add more test cases to verify that too
big and too small arrays or too long array strings generate errors.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: fix memory leak in translate_ini()
Luciano Coelho [Thu, 31 May 2012 15:08:39 +0000 (18:08 +0300)]
wlconf: fix memory leak in translate_ini()

We were not freeing the translated_str string in this function nor
checking that the string could be allocated.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add support for arrays in text configuration files
Luciano Coelho [Thu, 31 May 2012 15:02:35 +0000 (18:02 +0300)]
wlconf: add support for arrays in text configuration files

Implement support for setting full arrays from text configuration
files.  The tool now accepts comma-separated values for array
elements.

Update the valid test case and add two more test cases to verify that
too big and too small arrays generate errors.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: remove CR and LF from the text file regexes
Luciano Coelho [Thu, 31 May 2012 14:12:16 +0000 (17:12 +0300)]
wlconf: remove CR and LF from the text file regexes

We don't support multiline values in the text configuration,
dictionary and INI file formats.  Remove the \r and \n from the
relevant regular expressions.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: fix print_data code to support arrays properly
Luciano Coelho [Thu, 31 May 2012 14:07:13 +0000 (17:07 +0300)]
wlconf: fix print_data code to support arrays properly

Previously only u32 arrays were printed.  Now we also print arrays of
other sizes and produce a cleaner output, in a single-line for
compatibility with the .conf file format.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add a directory with the official INI files
Luciano Coelho [Thu, 31 May 2012 13:53:05 +0000 (16:53 +0300)]
wlconf: add a directory with the official INI files

Create a new directory official_inis to contain the official INI files
distributed by TI and populate it with the current ones.  Clean up the
example.ini file to avoid windowsisms like non-ansi characters and
CRLFs.

Additionally, use a symbolic link for test-3.3.ini instead of using a
copy.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: merge parse_ini() and parse_text_conf() into a single function
Luciano Coelho [Thu, 31 May 2012 13:41:32 +0000 (16:41 +0300)]
wlconf: merge parse_ini() and parse_text_conf() into a single function

These two functions were doing basically the same thing, with the
difference that the INI version was doing a translation into the
internal conf format and using a different regex.  To avoid lots of
duplicate code, we can pass the file type and let the function decide
what to do.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: implement parsing of INI files in TI's existing format
Luciano Coelho [Thu, 31 May 2012 12:35:47 +0000 (15:35 +0300)]
wlconf: implement parsing of INI files in TI's existing format

Add a new command to read the contents of an INI file and set the
specified values into the output binary.  A new dictionary.txt file is
used in the translation of flat INI element names to internal
structured element names.

Add unit tests to cover some of the INI file reading cases.  Update
README file and add an example.ini file based on a real-life example.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: refactor text configuration file parsing
Luciano Coelho [Thu, 31 May 2012 07:40:37 +0000 (10:40 +0300)]
wlconf: refactor text configuration file parsing

Refactor the text configuration file parsing to treat lines one by
one.  Additionally, add code to ignore comments, improve error
reporting and update test case 2.1 to test these new features.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: rename parse-ini to parse-text-conf to avoid confusion
Luciano Coelho [Thu, 31 May 2012 06:36:54 +0000 (09:36 +0300)]
wlconf: rename parse-ini to parse-text-conf to avoid confusion

We are required to parse previously specified INI files which have a
different format than the one we have defined.  Those files are
already called INI files, so let's call ours text configuration files.

Rename the option to parse them from --parse-ini to --parse-text-conf
and change the short option from -I to -C.  Add a few test cases for
this feature and rename the example.ini file to example.conf.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add cscope matches in .gitignore
Luciano Coelho [Thu, 31 May 2012 06:33:51 +0000 (09:33 +0300)]
wlconf: add cscope matches in .gitignore

For those of us who use cscope, add cscope files to .gitignore so
they're not considered part of the repository.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: small fix for Android.mk (SQUASH) ol_r8.a2.06 r8.a2.04 r8.a2.05 r8.a2.06
Ido Reis [Wed, 30 May 2012 09:33:06 +0000 (12:33 +0300)]
wlconf: small fix for Android.mk (SQUASH)

include wlcof build from the project root

Signed-off-by: Ido Reis <idor@ti.com>
11 years agowlconf: add -X option to ignore checksum from conf binary
Luciano Coelho [Tue, 29 May 2012 20:12:16 +0000 (23:12 +0300)]
wlconf: add -X option to ignore checksum from conf binary

The driver doesn't write the correct checksum to the debugfs conf
structure yet, so when we update the structure, we need to manually
add the checksum for the tool to work.  This commit adds a -X option
that causes the tool to ignore the checksum value so the actual
checksum can be set (or any other command can be executed).

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: small fix for Android.mk
Arik Nemtsov [Tue, 29 May 2012 20:01:37 +0000 (23:01 +0300)]
wlconf: small fix for Android.mk

crc32.c was missing from the build

Signed-off-by: Arik Nemtsov <arik@wizery.com>
11 years agowlconf: update structs to version 0x00010002
Luciano Coelho [Tue, 29 May 2012 16:56:10 +0000 (19:56 +0300)]
wlconf: update structs to version 0x00010002

There are some new parameters in the phy structure required by the
driver.  Update the conf.h, struct.bin and wl18xx-conf-default.bin
accordingly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: tests: add checksum test cases
Luciano Coelho [Tue, 29 May 2012 13:21:37 +0000 (16:21 +0300)]
wlconf: tests: add checksum test cases

Add a couple of checksum test cases and their respective helper
binaries.  Additionally add version check test case.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add binary configuration checksum checker
Luciano Coelho [Tue, 29 May 2012 13:20:29 +0000 (16:20 +0300)]
wlconf: add binary configuration checksum checker

Add code to check and write the CRC32 checksum of the configuration
binary files.  Report an error if the checksum is invalid when reading
the binary file.  Update the wl18xx-conf-default.bin file accordingly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add initial unit test cases
Luciano Coelho [Tue, 29 May 2012 09:06:38 +0000 (12:06 +0300)]
wlconf: add initial unit test cases

Add a new directory to contain the test cases description and helper
files.  Add a couple of initial testcases about magic number checking.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: values in the set functions should be unsigned
Luciano Coelho [Tue, 29 May 2012 07:23:01 +0000 (10:23 +0300)]
wlconf: values in the set functions should be unsigned

To avoid confusion between signed and unsigned values, we should
assume that the values specified in the INI file and in the --set
command are always unsigned.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agoupdate R5.1 FW - single role version to X.3.8.1.110 ol_R5.1.02
Ido Reis [Mon, 28 May 2012 20:31:49 +0000 (23:31 +0300)]
update R5.1 FW - single role version to X.3.8.1.110

MR version stays the same as in R5

Signed-off-by: Assaf Azulay <assaf@ti.com>
11 years agowlconf: validate binary file format r8.a2.03-build_129 r8.a2.03-build_130 r8.a2.03-build_131 r8.a2.03-build_132
Luciano Coelho [Fri, 25 May 2012 17:18:02 +0000 (20:18 +0300)]
wlconf: validate binary file format

Use the magic number, version and checksum values from the input
binary file and compare it to the ones from the struct data to
validate the validity of the binary file.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: parse magic and version defines from the struct header
Luciano Coelho [Fri, 25 May 2012 14:33:11 +0000 (17:33 +0300)]
wlconf: parse magic and version defines from the struct header

We need to make sure that the binaries we read and generate are
compatible with the structure defined in the source code.

To do this, we have the magic number and the version number.  This
commit parses the defines that specify these values in the struct
source, writes it to the struct binary and reads them from the struct
binary.

Also update the supplied struct.bin file accordingly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add command to set values from an INI file r8.a2.01-build_126 r8.a2.03 r8.a2.03-build_127 r8.a2.03-build_128
Luciano Coelho [Tue, 22 May 2012 13:35:47 +0000 (16:35 +0300)]
wlconf: add command to set values from an INI file

Add the --parse-ini command that reads a file with several elements to
be set.  Include an example.ini file with the phy settings for
reference.  Update the README file accordingly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add initial README file
Luciano Coelho [Tue, 22 May 2012 06:25:04 +0000 (09:25 +0300)]
wlconf: add initial README file

Add the initial version of the README file with some examples, a list
of know issues and limitations and a TODO list.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add default struct and configuration binaries
Luciano Coelho [Tue, 22 May 2012 06:42:21 +0000 (09:42 +0300)]
wlconf: add default struct and configuration binaries

It is rather cumbersome for the end-user to parse a source header file
and generate the structure binaries.  Add a default struct.bin file
with the correct structures for the current driver.

Also add a default configuration binary to be used when generating
modified ones, instead of reading it from the driver debugfs entry and
change the default input configuration binary accordingly.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add command to set a value
Luciano Coelho [Mon, 21 May 2012 20:33:59 +0000 (23:33 +0300)]
wlconf: add command to set a value

Add a new --set command to modify a value and write the resulting
configuration to the output binary configuration file.  Also change
the short option for --source-struct from -s to -S to accomodate the
set command better.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: split configuration binary into input and output
Luciano Coelho [Mon, 21 May 2012 19:54:16 +0000 (22:54 +0300)]
wlconf: split configuration binary into input and output

We need two configuration binaries, one to use as the input values and
one to write when any value is modified.  To make things clearer,
split the --configuration into --input-config and --output-config.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: read binary struct from file
Luciano Coelho [Mon, 21 May 2012 15:13:46 +0000 (18:13 +0300)]
wlconf: read binary struct from file

Implement the code to read the structure from the specified binary
file.  If no source and no binary files are specified, use conf.bin in
the current directory as default.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add command to generate the binary struct file
Luciano Coelho [Mon, 21 May 2012 14:37:57 +0000 (17:37 +0300)]
wlconf: add command to generate the binary struct file

In most cases we don't want to parse the entire source file everytime
we run the command.  So we can pre-parse it and write the results to a
binary file that can be used next times.  Add an option -G to parse
the header file and write the structure data into a binary.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: simplify usage printout
Luciano Coelho [Mon, 21 May 2012 12:36:07 +0000 (15:36 +0300)]
wlconf: simplify usage printout

With so many options and commands, the usage description was getting
complicated.  Simplify it by referencing the OPTIONS and COMMANDS in
the header line.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add conf.h file with current structures
Luciano Coelho [Mon, 21 May 2012 12:24:13 +0000 (15:24 +0300)]
wlconf: add conf.h file with current structures

This should not be used in production, it is here just as an example
of the small changes that need to be done in the conf.h files in order
to get it to work with wlconf.

The two main things to keep in mind are: arrays with non-numerical
(ie. defines or enums) sizes are not supported; the priv part needs to
be manually included in the same file.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add get value command
Luciano Coelho [Mon, 21 May 2012 09:25:56 +0000 (12:25 +0300)]
wlconf: add get value command

With this command, the value of the specified field can be read.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: store and print the relative position of the elements
Luciano Coelho [Mon, 21 May 2012 09:50:03 +0000 (12:50 +0300)]
wlconf: store and print the relative position of the elements

To make it easier to navigate through the binary configuration data,
store the relative position of each element inside the structures.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: print all the array elements
Luciano Coelho [Mon, 21 May 2012 07:09:13 +0000 (10:09 +0300)]
wlconf: print all the array elements

We were printing only the first element of arrays.  Now we print the
whole array as a comma separated list of hex values.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: fix parsting of zero-sized arrays
Luciano Coelho [Mon, 21 May 2012 07:06:19 +0000 (10:06 +0300)]
wlconf: fix parsting of zero-sized arrays

If the array had a size of zero (eg. in the end of the struct as a
place-holder for priv), we were assigning a size of 1.  This commit
fixes that.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: simplify ELEMENT_PATTERN regular expression
Luciano Coelho [Tue, 15 May 2012 20:44:08 +0000 (23:44 +0300)]
wlconf: simplify ELEMENT_PATTERN regular expression

There was an unnecessary substring match in the ELEMENT_PATTERN
regular expression.  Remove it to simpligy the regex a bit.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: remove print_struct() function
Luciano Coelho [Tue, 15 May 2012 20:26:18 +0000 (23:26 +0300)]
wlconf: remove print_struct() function

The print_struct() function was not used and probably broken.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: merge dump_conf with print_structs
Luciano Coelho [Tue, 15 May 2012 20:20:43 +0000 (23:20 +0300)]
wlconf: merge dump_conf with print_structs

The print_structs() function was broken and the proper one is very
similar to the existing dump_conf() function.  Modify the existing
dump_conf() function to work with both cases and rename it to
print_structs.

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: add dump and print-struct commands
Luciano Coelho [Tue, 15 May 2012 20:13:37 +0000 (23:13 +0300)]
wlconf: add dump and print-struct commands

Add a command to dump the binary in human-readable format and a
command to print out only the structure (useful when no binary data is
available).

Signed-off-by: Luciano Coelho <coelho@ti.com>
11 years agowlconf: rename dump_struct to root_struct
Luciano Coelho [Tue, 15 May 2012 19:06:28 +0000 (22:06 +0300)]
wlconf: rename dump_struct to root_struct

Dump struct sounds confusing when we are not going to dump the data.
Rename it to root_struct to make it clearer.

Signed-off-by: Luciano Coelho <coelho@ti.com>