diff options
Diffstat (limited to 'multitech/recipes')
-rw-r--r-- | multitech/recipes/ocg-scripts/ocg-scripts-1.0/calibrate-wifi.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/calibrate-wifi.sh b/multitech/recipes/ocg-scripts/ocg-scripts-1.0/calibrate-wifi.sh index 870da83..21659cd 100644 --- a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/calibrate-wifi.sh +++ b/multitech/recipes/ocg-scripts/ocg-scripts-1.0/calibrate-wifi.sh @@ -7,6 +7,8 @@ fi WIFIMAC=$1 +set -x + killall hostapd killall wpa_supplicant @@ -18,16 +20,18 @@ sleep 1 mts-io-sysfs store wlan-enabled 1 sleep 1 -rm -f /lib/firmware/ti-connectivity/wl1271-nvs.bin +mount -o remount,rw /var/oem +rm -f /var/oem/mts/wl1271-nvs.bin +ln -f -s /var/oem/mts/wl1271-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin modprobe atmel_mci sleep 1 rmmod wl12xx_sdio -set -x - calibrator plt autocalibrate wlan0 \ /lib/modules/2.6.39.4/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko \ /usr/share/ti/wifi-utils/ini_files/127x/TQS_S_2.6.ini \ /lib/firmware/ti-connectivity/wl1271-nvs.bin \ $WIFIMAC + +mount -o remount,ro /var/oem |