[PATCH 5/7] Add script for AP mode

Eugene Krasnikov k.eugene.e at gmail.com
Thu May 2 13:00:22 EDT 2013


Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 start_ap.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100755 start_ap.sh

diff --git a/start_ap.sh b/start_ap.sh
new file mode 100755
index 0000000..2892eb5
--- /dev/null
+++ b/start_ap.sh
@@ -0,0 +1,19 @@
+adb shell "insmod /data/compat.ko"
+adb shell "insmod /data/cfg80211.ko"
+adb shell "insmod /data/mac80211.ko"
+adb shell "insmod /data/wcn36xx.ko"
+
+adb shell "echo file dxe.c +p > /sys/kernel/debug/dynamic_debug/control"
+adb shell "echo file txrx.c +p > /sys/kernel/debug/dynamic_debug/control"
+adb shell "echo file smd.c +pflmt > /sys/kernel/debug/dynamic_debug/control"
+adb shell "echo 1 > /sys/kernel/debug/tracing/events/mac80211/enable"
+adb shell "echo 'module cfg80211 +p' > /sys/kernel/debug/dynamic_debug/control"
+adb shell "echo 'module mac80211 +p' > /sys/kernel/debug/dynamic_debug/control"
+
+adb shell "hostapd /data/hostapd.conf"
+
+#Where hostapd.conf contains
+#interface=wlan0
+#driver=nl80211
+#ssid=test
+#channel=1
-- 
1.7.11.3




More information about the wcn36xx mailing list