initial
[wilink8-wlan/wl18xx-target-scripts.git] / mr / mr_sta_ago.sh
1 echo 8 > /proc/sys/kernel/printk
2 mount -t debugfs debugfs /debug
3 insmod /lib/modules/`uname -r`/kernel/net/wireless/cfg80211.ko
4 insmod /lib/modules/`uname -r`/kernel/net/mac80211/mac80211.ko
5 insmod /lib/modules/`uname -r`/kernel/lib/crc7.ko
6 insmod /lib/modules/`uname -r`/kernel/drivers/base/firmware_class.ko
7 insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl12xx/wl12xx.ko fwlog=dbgpins
8 insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
9 echo 1 > /debug/ieee80211/phy0/uapsd_max_sp_len
10 sleep 1
11 ifconfig wlan0 hw ether 08:00:28:XX:XX:XX
12 sleep 1
13 ifconfig wlan0 up
14 sleep 1
15 iw wlan0 set power_save off
16 sleep 1
17 iw phy0 interface add wlan1 type managed
18 ifconfig wlan1 hw ether 08:00:28:XX:XX:XX
19 sleep 3
20 wpa_supplicant -Dnl80211 -iwlan1 -c p2p.conf&
21 sleep 3
22 wpa_cli -iwlan1 p2p_group_add freq=2447