summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a076cfe)
raw | patch | inline | side by side (parent: a076cfe)
author | Guy Mishol <guym@ti.com> | |
Thu, 19 May 2016 09:11:44 +0000 (12:11 +0300) | ||
committer | Guy Mishol <guym@ti.com> | |
Thu, 19 May 2016 09:11:44 +0000 (12:11 +0300) |
Configure 5GHz diversity automatically for non TI
module based on number of fitted antennas.
Signed-off-by: Guy Mishol <guym@ti.com>
module based on number of fitted antennas.
Signed-off-by: Guy Mishol <guym@ti.com>
wlconf/configure-device.sh | patch | blob | history |
index 05906037f57327e4c87e25ca173523ad8c9c4b9d..27ace9ff92967ed20f62d7e3ad9b61cb7e096f31 100755 (executable)
# Script to run on the target to configure the wl18xx-conf.bin file to match the device capabilities
# version
-VERSION=1.2
+VERSION=1.3
# defaults
binary_name="/lib/firmware/ti-connectivity/wl18xx-conf.bin"
while [ $NUM_OF_ANTENNAS -eq -1 ]
do
if [ $number_5G_antenna -eq 1 ]; then
- read -p 'How many 5GHz antennas are fitted? [0/1/2] : ' NUM_OF_ANTENNAS
+ read -p 'How many 5GHz antennas are fitted (using 2 antennas requires a proper switch)? [0/1/2] : ' NUM_OF_ANTENNAS
case $NUM_OF_ANTENNAS in
"0") number_5G_antenna=0;;
"1") number_5G_antenna=1;;
[[ $CHIP_FLAVOR -eq 1807 || $CHIP_FLAVOR -eq 1837 ]]; then
diversity_5g="y";
high_band_component_type=0x0a;
- DIVERSITY=0;
+elif [ $number_5G_antenna -eq 2 ]; then
+ diversity_5g="y";
+ high_band_component_type=0x0a;
else
diversity_5g="n";
high_band_component_type=0x09;
- DIVERSITY=-1;
fi
-while [ $DIVERSITY -eq -1 ]
-do
- if [ $TI_MODULE -eq 0 ] && [ $number_5G_antenna -ge 1 ]; then
- read -p 'Should 5GHz diversity be applied? [y/n] : ' diversity_5g
- case $diversity_5g in
- "n") high_band_component_type=0x09;DIVERSITY=0;;
- "N") high_band_component_type=0x09;DIVERSITY=0;;
- "y") high_band_component_type=0x0a;DIVERSITY=0;;
- "Y") high_band_component_type=0x0a;DIVERSITY=0;;
- *) echo "Please enter y or n";DIVERSITY=-1;continue;;
- esac
- else
- # set to required number to exit loop
- DIVERSITY=0;
- fi
-done
-
# ask if SISO40 should be enabled
SISO40=-1;