blob: 10f98387b22f4472e9663f08104cc7e10e245ccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
################################################################################
# Date:10/2012
# PRESENTATION
#
# Copyright 2012 TCL Communication Technology Holdings Limited.
#
# This material is company confidential, cannot be reproduced in any form
# without the written permission of TCL Communication Technology Holdings
# Limited.
#
# -----------------------------------------------------------------------------
# Author : Chen Ji
# Email : Ji.Chen@tcl-mobile.com
# Role :
# Reference documents : refer bugID200662/161302
# -----------------------------------------------------------------------------
# Comments :
# File : development/apps/WLANTestMode/wl
# Labels :
# -----------------------------------------------------------------------------
# =============================================================================
# Modifications on Features list / Changes Request / Problems Report
# -----------------------------------------------------------------------------
# date | author | Key | comment
# ----------|----------------------|----------------------|--------------------
# 10/22/2012|Chen Ji |bugID321787 |scripts are excuted
# | | |for WLANTest
# ----------|----------------------|----------------------|--------------------
# 12/19/2012|Chen Ji |bugID346399 |scripts are excuted
# | | |for WLANTest
# ----------|----------------------|----------------------|--------------------
################################################################################
echo "#*************************************************"
echo "# Script usage:"
echo "# $0 <channel #> <mcs index> <Tx power>"
echo "#"
echo "# Example: test TX with channel 1, mcs 7, 5db"
echo "# $0 1 7 5"
echo "#*************************************************"
LOG_TAG="qcom-wifi"
LOG_NAME="${0}:"
logi ()
{
/system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@"
}
logi "enter signaling (txn.sh)"
#logi "ifconfig wlan0 up"
#insmod /system/lib/modules/cfg80211.ko
insmod /system/lib/modules/wlan.ko
#ifconfig wlan0 up
#sleep 1
#wmiconfig -i wlan0 --roam 4 65535 0 0 0
sleep 2
logi "iwpriv wlan0 setPower Disable BMPS"
iwpriv wlan0 setPower 2
sleep 1
iwlist wlan0 scan
sleep 2
iwconfig wlan0 essid MT8860C
sleep 1
ifconfig wlan0 192.168.1.189 up
#logi "echo 0 >/mnt/debugfs/ieee80211/phy0/ath6kl/bgscan_interval"
#echo 0 >/mnt/debugfs/ieee80211/phy0/ath6kl/bgscan_interval
#sleep 1
#wmiconfig -i wlan0 --roam 4 65535 0 0 0
#sleep 1
#wmiconfig -i wlan0 --scan -bg=0
#sleep 1
#wmiconfig -i wlan0 --power maxperf
#sleep 1
echo "Script end."
logi "Script end."
|