11 years agowlconf: add new configuration for Telec support R8.xx_Build-199 R8.xx_Build-200 R8.xx_Build-201 R8.xx_Build-202 R8.xx_Build-203 R8.xx_Build-204 R8.xx_Build-205 R8.xx_Build-206 R8.xx_Build-207 R8.xx_Build-208 R8.xx_Build-209 R8.xx_Build-210 R8.xx_Build-211 R8.xx_Build-212 R8.xx_Build-213 R8.xx_Build-214 R8.xx_Build-215 R8.xx_Build-216 R8.xx_Build-217 R8.xx_Build-218 R8.xx_Build-219 ol_r8.a5.09 ol_r8.a5.10 ol_r8.a5.11
wlconf: add new configuration for Telec support
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: Victor Goldenshtein <victorg@ti.com>
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: Victor Goldenshtein <victorg@ti.com>
11 years agowlconf: disable BA on VO TIDs in tx_ba_tid_bitmap R8.xx_Build-167 R8.xx_Build-168 R8.xx_Build-169 R8.xx_Build-170 R8.xx_Build-171 R8.xx_Build-172 R8.xx_Build-173 R8.xx_Build-174 R8.xx_Build-175 R8.xx_Build-176 R8.xx_Build-177 R8.xx_Build-178 R8.xx_Build-179 R8.xx_Build-180 R8.xx_Build-181 R8.xx_Build-183 R8.xx_Build-185 R8.xx_Build-188 R8.xx_Build-190 R8.xx_Build-191 R8.xx_Build-196 R8.xx_Build-197 R8.xx_Build-198 ol_r8.a5.06 ol_r8.a5.07 ol_r8.a5.08
wlconf: disable BA on VO TIDs in tx_ba_tid_bitmap
Updated:
default.conf
example.conf
wl18xx-conf-default.bin
This alignes with driver commit
104d7149: wlcore: disable Tx BA on TIDs 6 and 7
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Updated:
default.conf
example.conf
wl18xx-conf-default.bin
This alignes with driver commit
104d7149: wlcore: disable Tx BA on TIDs 6 and 7
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
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
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>
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
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>
Updated:
default.conf
example.conf
example.ini
wl18xx-conf-default.bin
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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>
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
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>
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
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>
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
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>
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
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>
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
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>
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
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>
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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
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>
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
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>
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
wlconf: update wlconf_unit_test.xlsx to latest
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
wlconf : update HP SISO tx power in ini file
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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>
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>
wlconf: update unit test plan
update wlconf unit test plan including tests folder
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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
ini: update files with tx power levels
ini: update siso INI files
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>
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>
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>
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>
wlconf: update ini files for pg2
Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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
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>
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>
wlconf: remove padding from ht struct
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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>
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>
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>
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>
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>
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
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>
wl_logproxy was updated to latest ane greatest version.
thanks to Gil Barak.
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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
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>
- 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>
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>
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>
updating the multi role FW due to template bug
Signed-off-by: Assaf Azulay <assaf@ti.com>
Signed-off-by: Assaf Azulay <assaf@ti.com>
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>
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>
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>
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>
update wl6/7 singel role FW to X.3.9.2.112
Signed-off-by: Assaf Azulay <assaf@ti.com>
Signed-off-by: Assaf Azulay <assaf@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
update README with wl18xx_plt set_tx_power description
Signed-off-by: Ido Reis <idor@ti.com>
Signed-off-by: Ido Reis <idor@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Using the dump command as a default may be confusing. Just print the
usage instead.
Signed-off-by: Luciano Coelho <coelho@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
wlconf: small fix for Android.mk (SQUASH)
include wlcof build from the project root
Signed-off-by: Ido Reis <idor@ti.com>
include wlcof build from the project root
Signed-off-by: Ido Reis <idor@ti.com>
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>
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>
wlconf: small fix for Android.mk
crc32.c was missing from the build
Signed-off-by: Arik Nemtsov <arik@wizery.com>
crc32.c was missing from the build
Signed-off-by: Arik Nemtsov <arik@wizery.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
With this command, the value of the specified field can be read.
Signed-off-by: Luciano Coelho <coelho@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
wlconf: remove print_struct() function
The print_struct() function was not used and probably broken.
Signed-off-by: Luciano Coelho <coelho@ti.com>
The print_struct() function was not used and probably broken.
Signed-off-by: Luciano Coelho <coelho@ti.com>
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>
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>