added mr Android.mk and licence file
[wilink8-wlan/wl18xx-target-scripts.git] / mr / mr_ap_sta.sh
1 insmod /lib/modules/`uname -r`/kernel/net/wireless/cfg80211.ko
2 insmod /lib/modules/`uname -r`/kernel/net/mac80211/mac80211.ko
3 insmod /lib/modules/`uname -r`/kernel/lib/crc7.ko
4 insmod /lib/modules/`uname -r`/kernel/drivers/base/firmware_class.ko
5 insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl12xx/wl12xx.ko fwlog=dbgpins
6 insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
7 echo 1 > /debug/ieee80211/phy0/uapsd_max_sp_len
8 iw phy0 interface add wlan1 type managed
9 ifconfig wlan1 hw ether 08:00:28:XX:XX:XX
10 hostapd wlan1.conf &
11 sleep 1
12 ifconfig wlan0 hw ether 08:00:28:XX:XX:XX
13 sleep 1
14 ifconfig wlan0 up
15 sleep 1
16 iw wlan0 set power_save off