我们的方案是把wl1807的AP路由到ppp0网口,使得手机可以接入该AP上网。
经过测试我们的ppp0网络连接正常。wl1807设置成AP后,手机能接入该AP但是不能上网。以下是我们AP的设置方法:
说明:我们用的SDK是ti-processor-sdk-linux-am335x-evm-01.00.00.00,内核版本linux3.14.26。以下驱动均从ti-processor-sdk-linux-am335x-evm-01.00.00.00/board-support/extra-drivers/ti-compat-wireless-wl18xx-R8.5编译而来:
cfg80211.ko
mac80211.ko
wl18xx.ko
compat.ko
wlcore.ko
wlcore_sdio.ko
安装驱动后出现
] D:chip id 0x6030111 (185x PG20)
[ 639.258486] D:base address: oui 5c313e nic e1a8ab
[ 639.268775] wlcore: loaded
[ 639.272265] wlcore: driver version: ol_r8.a9.14
[ 639.277045] wlcore: compilation time: Wed Nov 4 10:25:59 2015
接着就直接设置AP.使用的脚本是usr/share/wl18xx/ap_start.sh:(绿色部分是我自己修改的)
#!/bin/sh
########## variables ##########
WLAN=wlan1
HOSTAPD_GLOBAL=/var/run/hostapd_global
HOSTAPD_CONF=/usr/share/wl18xx/hostapd.conf
IP_ADDR=192.168.43.1
DHCP_CONF=udhcpd.conf
DHCP_CONF_PROC=u[d]hcpd.conf
########## body ##########
### check for configuration file—————————hostapd.conf
##if /usr/share/wl18xx/hostapd.conf not exist and wlan name is wlan2,then print error – no default hostapd.conf for wlan1
if [ ! -f $HOSTAPD_CONF ] && [ $WLAN == "wlan2" ]; then
echo "error – no default hostapd.conf for $WLAN"
exit 1
else
##else chmod 777 /usr/share/wl18xx/hostapd.conf
chmod 777 $HOSTAPD_CONF
fi
##if /usr/share/wl18xx/hostapd.conf is not exitsted and wlan name is wlan1,and if also /etc/hostapd.conf not existed,print errorif [ ! -f $HOSTAPD_CONF ] && [ $WLAN == "wlan1" ]; then
if [ ! -f /etc/hostapd.conf ]
then
echo "error – no default hostapd.conf for $WLAN"
exit 1
fi
## if /etc/hostapd.conf existed ,copy the file to /usr/share/wl18xx/hostapd.conf
cp /etc/hostapd.conf $HOSTAPD_CONF
chmod 777 $HOSTAPD_CONF
fi
### configure ip forewarding—————–enable ip routing
echo 1 > /proc/sys/net/ipv4/ip_forward
### add WLAN interface, if not present
if [ ! -d /sys/class/net/$WLAN ]
then
echo "adding $WLAN interface"
iw phy `ls /sys/class/ieee80211/` interface add $WLAN type managed
fi
### start a hostapd global control interface, if not present
if [ ! -r $HOSTAPD_GLOBAL ]
then
hostapd -g $HOSTAPD_GLOBAL &
sleep 1fi
### add ap interface
hostapd_cli -g $HOSTAPD_GLOBAL raw ADD $WLAN config=$HOSTAPD_CONF enable=1
### configure ip
ifconfig $WLAN $IP_ADDR netmask 255.255.255.0 up
### start udhcpd server, if not started
output=`ps | grep /usr/share/wl18xx\$DHCP_CONF_PROC`
set — $output
echo $output
if [ -z "$output" ]; then
udhcpd $DHCP_CONF
fi
### configure nat
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i ppp0 -o wlan0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wlan0 -o ppp0 -j ACCEPT
/usr/share/wl18xx/hostapd.conf 是用sdk提供的文件系统中拷出来的。
/usr/share/wl18xx/udhcpd.conf是我自己改的(在另一款wifi设置中证明可行)内容是
interface wlan1
remain yes
opt dns 218.104.128.106 211.138.150.58 211.138.155.90
option subnet 255.255.255.0
option dns 211.138.150.58
opt router 192.168.43.1
option domain local
option lease 864000
以上是全部配置。可以连接上AP:SitaraAP 但是就是上不了网,在wlcore相关驱动中,我们打开wl1271_debug
在运行./ap_start.sh 后出现的信息是:
###configure ip forewarding…………
adding wlan1 interface
### start a hosapd global control interface……………
###add ap interface……………….
[ 456.818711] D:mac80211 start
[ 456.822429] D:mac80211 add interface type 3 mac 5c:31:3e:e1:a8:ac
[ 456.828865] D:allocating hw queue base: 0
[ 456.833123] wl12xx_init_fw………………..
[ 457.200001] D:mem_start 00700000 mem_size 0000030C
[ 457.205048] D:reg_start 00802000 reg_size 00014578
[ 457.210110] D:mem2_start 00B00404 mem2_size 00001000
[ 457.215334] D:mem3_start 00C00000 mem3_size 00000400
[ 457.221255] D:booting firmware ti-connectivity/wl18xx-fw-4.bin
[ 457.315089] D:mem_start 00A02000 mem_size 00010000
[ 457.320289] D:reg_start 00807000 reg_size 00005000
[ 457.325332] D:mem2_start 00800000 mem2_size 0000B000
[ 457.330572] D:mem3_start 00000000 mem3_size 00000000
[ 457.336835] D:clock freq 5 (13, 120, 0, 0, spit)
[ 457.344532] D:mem_start 00700000 mem_size 0000030C
[ 457.349574] D:reg_start 00802000 reg_size 00014578
[ 457.354639] D:mem2_start 00B00404 mem2_size 00001000
[ 457.359855] D:mem3_start 00C00000 mem3_size 00000400
[ 457.365661] D:mem_start 00700000 mem_size 0000030C
[ 457.370720] D:reg_start 00802000 reg_size 00014578
[ 457.375760] D:mem2_start 00B00404 mem2_size 00001000
[ 457.380996] D:mem3_start 00C00000 mem3_size 00000400
[ 457.387261] D:chip id 0x6030111
[ 457.390779] D:mem_start 80926000 mem_size 00016A44
[ 457.395817] D:reg_start 00000000 reg_size 00000000
[ 457.400875] D:mem2_start 00000000 mem2_size 00000000
[ 457.406098] D:mem3_start 00000000 mem3_size 00000000
[ 457.411881] D:firmware chunks to be uploaded: 15
[ 457.416741] D:chunk 14 addr 0x0 len 101320
[ 457.421061] D:starting firmware upload
[ 457.425002] D:fw_data_len 101320 chunk_size 16384
[ 457.430724] D:mem_start 00000000 mem_size 00014000
[ 457.435763] D:reg_start 00810000 reg_size 0000BFFF
[ 457.440831] D:mem2_start 00000000 mem2_size 00000000
[ 457.446049] D:mem3_start 00000000 mem3_size 00000000
[ 457.451798] D:uploading fw chunk 0xc5d1800c to 0x0
[ 457.457713] D:uploading fw chunk 0xc5d1c00c to 0x4000
[ 457.464132] D:uploading fw chunk 0xc5d2000c to 0x8000
[ 457.470361] D:uploading fw chunk 0xc5d2400c to 0xc000
[ 457.476473] D:mem_start 00010000 mem_size 00014000
[ 457.481541] D:reg_start 00810000 reg_size 0000BFFF
[ 457.486576] D:mem2_start 00000000 mem2_size 00000000
[ 457.491809] D:mem3_start 00000000 mem3_size 00000000
[ 457.497618] D:uploading fw chunk 0xc5d2800c to 0x10000
[ 457.504510] D:uploading fw chunk 0xc5d2c00c to 0x14000
[ 457.510744] D:uploading fw last chunk (3016 B) 0xc5d3000c to 0x18000
[ 457.517626] D:chunk 13 addr 0x100000 len 131072
[ 457.522416] D:starting firmware upload
[ 457.526357] D:fw_data_len 131072 chunk_size 16384
[ 457.531483] D:mem_start 00100000 mem_size 00014000
[ 457.536524] D:reg_start 00810000 reg_size 0000BFFF
[ 457.541578] D:mem2_start 00000000 mem2_size 00000000
[ 457.546794] D:mem3_start 00000000 mem3_size 00000000
[ 457.553070] D:mem_start 00100000 mem_size 00014000
[ 457.558117] D:reg_start 00810000 reg_size 0000BFFF
[ 457.563178] D:mem2_start 00000000 mem2_size 00000000
[ 457.568395] D:mem3_start 00000000 mem3_size 00000000
[ 457.574122] D:uploading fw chunk 0xc5d30bdc to 0x100000
[ 457.580412] D:mem_start 00104000 mem_size 00014000
[ 457.585451] D:reg_start 00810000 reg_size 0000BFFF
[ 457.590517] D:mem2_start 00000000 mem2_size 00000000
[ 457.595737] D:mem3_start 00000000 mem3_size 00000000
[ 457.601486] D:uploading fw chunk 0xc5d34bdc to 0x104000
[ 457.607774] D:mem_start 00108000 mem_size 00014000
[ 457.612858] D:reg_start 00810000 reg_size 0000BFFF
[ 457.617889] D:mem2_start 00000000 mem2_size 00000000
[ 457.623121] D:mem3_start 00000000 mem3_size 00000000
[ 457.628836] D:uploading fw chunk 0xc5d38bdc to 0x108000
[ 457.635637] D:mem_start 0010C000 mem_size 00014000
[ 457.640714] D:reg_start 00810000 reg_size 0000BFFF
[ 457.645751] D:mem2_start 00000000 mem2_size 00000000
[ 457.650985] D:mem3_start 00000000 mem3_size 00000000
[ 457.656703] D:uploading fw chunk 0xc5d3cbdc to 0x10c000
[ 457.663489] D:mem_start 00110000 mem_size 00014000
[ 457.668531] D:reg_start 00810000 reg_size 0000BFFF
[ 457.673585] D:mem2_start 00000000 mem2_size 00000000
[ 457.678798] D:mem3_start 00000000 mem3_size 00000000
[ 457.684517] D:uploading fw chunk 0xc5d40bdc to 0x110000
[ 457.691288] D:mem_start 00114000 mem_size 00014000
[ 457.696324] D:reg_start 00810000 reg_size 0000BFFF
[ 457.701396] D:mem2_start 00000000 mem2_size 00000000
[ 457.706621] D:mem3_start 00000000 mem3_size 00000000
[ 457.712355] D:uploading fw chunk 0xc5d44bdc to 0x114000
[ 457.718642] D:mem_start 00118000 mem_size 00014000
[ 457.723708] D:reg_start 00810000 reg_size 0000BFFF
[ 457.728742] D:mem2_start 00000000 mem2_size 00000000
[ 457.733975] D:mem3_start 00000000 mem3_size 00000000
[ 457.739701] D:uploading fw chunk 0xc5d48bdc to 0x118000
[ 457.746504] D:mem_start 0011C000 mem_size 00014000
[ 457.751569] D:reg_start 00810000 reg_size 0000BFFF
[ 457.756606] D:mem2_start 00000000 mem2_size 00000000
[ 457.761833] D:mem3_start 00000000 mem3_size 00000000
[ 457.767564] D:uploading fw chunk 0xc5d4cbdc to 0x11c000
[ 457.774407] D:uploading fw last chunk (0 B) 0xc5d50bdc to 0x120000
[ 457.781089] D:chunk 12 addr 0x20400000 len 53692
[ 457.785946] D:starting firmware upload
[ 457.789882] D:fw_data_len 53692 chunk_size 16384
[ 457.795035] D:mem_start 20400000 mem_size 00014000
[ 457.800103] D:reg_start 00810000 reg_size 0000BFFF
[ 457.805143] D:mem2_start 00000000 mem2_size 00000000
[ 457.810369] D:mem3_start 00000000 mem3_size 00000000
[ 457.816014] D:mem_start 20400000 mem_size 00014000
[ 457.821077] D:reg_start 00810000 reg_size 0000BFFF
[ 457.826108] D:mem2_start 00000000 mem2_size 00000000
[ 457.831341] D:mem3_start 00000000 mem3_size 00000000
[ 457.837622] D:uploading fw chunk 0xc5d50be4 to 0x20400000
[ 457.844296] D:mem_start 20404000 mem_size 00014000
[ 457.849335] D:reg_start 00810000 reg_size 0000BFFF
[ 457.854395] D:mem2_start 00000000 mem2_size 00000000
[ 457.859606] D:mem3_start 00000000 mem3_size 00000000
[ 457.865364] D:uploading fw chunk 0xc5d54be4 to 0x20404000
[ 457.872329] D:mem_start 20408000 mem_size 00014000
[ 457.877368] D:reg_start 00810000 reg_size 0000BFFF
[ 457.882432] D:mem2_start 00000000 mem2_size 00000000
[ 457.887651] D:mem3_start 00000000 mem3_size 00000000
[ 457.893392] D:uploading fw chunk 0xc5d58be4 to 0x20408000
[ 457.899899] D:uploading fw last chunk (4540 B) 0xc5d5cbe4 to 0x2040c000
[ 457.907329] D:chunk 11 addr 0xb00000 len 496
[ 457.911840] D:starting firmware upload
[ 457.915777] D:fw_data_len 496 chunk_size 16384
[ 457.920606] D:mem_start 00B00000 mem_size 00014000
[ 457.925643] D:reg_start 00810000 reg_size 0000BFFF
[ 457.930702] D:mem2_start 00000000 mem2_size 00000000
[ 457.935916] D:mem3_start 00000000 mem3_size 00000000
[ 457.942036] D:uploading fw last chunk (496 B) 0xc5d5dda8 to 0xb00000
[ 457.948808] D:chunk 10 addr 0xb0ae40 len 28512
[ 457.953504] D:starting firmware upload
[ 457.957445] D:fw_data_len 28512 chunk_size 16384
[ 457.962462] D:mem_start 00B0AE40 mem_size 00014000
[ 457.967498] D:reg_start 00810000 reg_size 0000BFFF
[ 457.972556] D:mem2_start 00000000 mem2_size 00000000
[ 457.977775] D:mem3_start 00000000 mem3_size 00000000
[ 457.984001] D:mem_start 00B0AE40 mem_size 00014000
[ 457.989042] D:reg_start 00810000 reg_size 0000BFFF
[ 457.994100] D:mem2_start 00000000 mem2_size 00000000
[ 457.999316] D:mem3_start 00000000 mem3_size 00000000
[ 458.005050] D:uploading fw chunk 0xc5d5dfa0 to 0xb0ae40
[ 458.011892] D:uploading fw last chunk (12128 B) 0xc5d61fa0 to 0xb0ee40
[ 458.019376] D:chunk 9 addr 0x80900000 len 60120
[ 458.024169] D:starting firmware upload
[ 458.028107] D:fw_data_len 60120 chunk_size 16384
[ 458.033140] D:mem_start 80900000 mem_size 00014000
[ 458.038178] D:reg_start 00810000 reg_size 0000BFFF
[ 458.043242] D:mem2_start 00000000 mem2_size 00000000
[ 458.048462] D:mem3_start 00000000 mem3_size 00000000
[ 458.054768] D:uploading fw chunk 0xc5d64f08 to 0x80900000
[ 458.061527] D:uploading fw chunk 0xc5d68f08 to 0x80904000
[ 458.068086] D:uploading fw chunk 0xc5d6cf08 to 0x80908000
[ 458.074945] D:uploading fw last chunk (10968 B) 0xc5d70f08 to 0x8090c000
[ 458.082791] D:chunk 8 addr 0x80920000 len 31652
[ 458.087559] D:starting firmware upload
[ 458.091530] D:fw_data_len 31652 chunk_size 16384
[ 458.096532] D:mem_start 80920000 mem_size 00014000
[ 458.101596] D:reg_start 00810000 reg_size 0000BFFF
[ 458.106634] D:mem2_start 00000000 mem2_size 00000000
[ 458.111875] D:mem3_start 00000000 mem3_size 00000000
[ 458.118075] D:uploading fw chunk 0xc5d739e8 to 0x80920000
[ 458.124819] D:uploading fw last chunk (15268 B) 0xc5d779e8 to 0x80924000
[ 458.132855] D:chunk 7 addr 0x80940000 len 6144
[ 458.137524] D:starting firmware upload
[ 458.141488] D:fw_data_len 6144 chunk_size 16384
[ 458.146406] D:mem_start 80940000 mem_size 00014000
[ 458.151467] D:reg_start 00810000 reg_size 0000BFFF
[ 458.156504] D:mem2_start 00000000 mem2_size 00000000
[ 458.161736] D:mem3_start 00000000 mem3_size 00000000
[ 458.167875] D:uploading fw last chunk (6144 B) 0xc5d7b594 to 0x80940000
[ 458.175332] D:chunk 6 addr 0x80944000 len 6144
[ 458.180027] D:starting firmware upload
[ 458.183965] D:fw_data_len 6144 chunk_size 16384
[ 458.188862] D:mem_start 80944000 mem_size 00014000
[ 458.193925] D:reg_start 00810000 reg_size 0000BFFF
[ 458.198957] D:mem2_start 00000000 mem2_size 00000000
[ 458.204189] D:mem3_start 00000000 mem3_size 00000000
[ 458.210380] D:uploading fw last chunk (6144 B) 0xc5d7cd9c to 0x80944000
[ 458.217646] D:chunk 5 addr 0x80948000 len 6144
[ 458.222345] D:starting firmware upload
[ 458.226281] D:fw_data_len 6144 chunk_size 16384
[ 458.231219] D:mem_start 80948000 mem_size 00014000
[ 458.236255] D:reg_start 00810000 reg_size 0000BFFF
[ 458.241315] D:mem2_start 00000000 mem2_size 00000000
[ 458.246527] D:mem3_start 00000000 mem3_size 00000000
[ 458.252769] D:uploading fw last chunk (6144 B) 0xc5d7e5a4 to 0x80948000
[ 458.260154] D:chunk 4 addr 0x8094c000 len 6144
[ 458.264828] D:starting firmware upload
[ 458.268765] D:fw_data_len 6144 chunk_size 16384
[ 458.273817] D:mem_start 8094C000 mem_size 00014000
[ 458.278851] D:reg_start 00810000 reg_size 0000BFFF
[ 458.283911] D:mem2_start 00000000 mem2_size 00000000
[ 458.289129] D:mem3_start 00000000 mem3_size 00000000
[ 458.294824] D:uploading fw last chunk (6144 B) 0xc5d7fdac to 0x8094c000
[ 458.302583] D:chunk 3 addr 0x80950000 len 8192
[ 458.307252] D:starting firmware upload
[ 458.311215] D:fw_data_len 8192 chunk_size 16384
[ 458.316120] D:mem_start 80950000 mem_size 00014000
[ 458.321185] D:reg_start 00810000 reg_size 0000BFFF
[ 458.326220] D:mem2_start 00000000 mem2_size 00000000
[ 458.331446] D:mem3_start 00000000 mem3_size 00000000
[ 458.337576] D:uploading fw last chunk (8192 B) 0xc5d815b4 to 0x80950000
[ 458.345127] D:chunk 2 addr 0x80960000 len 20656
[ 458.349890] D:starting firmware upload
[ 458.353852] D:fw_data_len 20656 chunk_size 16384
[ 458.358846] D:mem_start 80960000 mem_size 00014000
[ 458.363908] D:reg_start 00810000 reg_size 0000BFFF
[ 458.368940] D:mem2_start 00000000 mem2_size 00000000
[ 458.374178] D:mem3_start 00000000 mem3_size 00000000
[ 458.380372] D:uploading fw chunk 0xc5d835bc to 0x80960000
[ 458.386879] D:uploading fw last chunk (4272 B) 0xc5d875bc to 0x80964000
[ 458.394387] D:chunk 1 addr 0x80953000 len 1536
[ 458.399058] D:starting firmware upload
[ 458.403022] D:fw_data_len 1536 chunk_size 16384
[ 458.407931] D:mem_start 80953000 mem_size 00014000
[ 458.412988] D:reg_start 00810000 reg_size 0000BFFF
[ 458.418018] D:mem2_start 00000000 mem2_size 00000000
[ 458.423243] D:mem3_start 00000000 mem3_size 00000000
[ 458.429380] D:uploading fw last chunk (1536 B) 0xc5d88674 to 0x80953000
[ 458.436620] D:chunk 0 addr 0x80958000 len 24576
[ 458.441408] D:starting firmware upload
[ 458.445351] D:fw_data_len 24576 chunk_size 16384
[ 458.450364] D:mem_start 80958000 mem_size 00014000
[ 458.455398] D:reg_start 00810000 reg_size 0000BFFF
[ 458.460462] D:mem2_start 00000000 mem2_size 00000000
[ 458.465675] D:mem3_start 00000000 mem3_size 00000000
[ 458.471923] D:uploading fw chunk 0xc5d88c7c to 0x80958000
[ 458.478416] D:uploading fw last chunk (8192 B) 0xc5d8cc7c to 0x8095c000
[ 458.486084] D:mem_start 80926000 mem_size 00016A44
[ 458.491148] D:reg_start 00000000 reg_size 00000000
[ 458.496178] D:mem2_start 00000000 mem2_size 00000000
[ 458.501410] D:mem3_start 00000000 mem3_size 00000000
[ 458.507161] D:mem_start 00700000 mem_size 0000030C
[ 458.512233] D:reg_start 00802000 reg_size 00014578
[ 458.517265] D:mem2_start 00B00404 mem2_size 00001000
[ 458.522499] D:mem3_start 00C00000 mem3_size 00000400
[ 458.528805] D:chip id after firmware boot: 0x6030111
[ 458.550002] D:cmd_box_addr 0xb007f8
[ 458.553711] D:MBOX ptrs: 0xb00adc 0xb00b90
[ 458.558075] wlcore: PHY firmware version: Rev 8.2.0.0.224
[ 458.563773] D:unmasking event_mask 0xffef01
[ 458.568170] D:acx event mbox mask
[ 458.571827] D:cmd configure (17)
[ 458.575505] D:mem_start 00800000 mem_size 000050FC
[ 458.580569] D:reg_start 00B00404 reg_size 00001000
[ 458.585603] D:mem2_start 00C00000 mem2_size 00000400
[ 458.590831] D:mem3_start 00000000 mem3_size 00000000
[ 458.597501] D:acx cfg bitmap 89 blk 256 spare 1 field 15
[ 458.603271] D:cmd configure (57)
[ 458.606970] D:cmd template_set 2 (role 255)
[ 458.611950] D:cmd template_set 3 (role 255)
[ 458.616672] D:cmd template_set 19 (role 255)
[ 458.621757] D:cmd template_set 20 (role 255)
[ 458.626567] D:cmd template_set 0 (role 255)
[ 458.631549] D:cmd template_set 6 (role 255)
[ 458.636273] D:cmd template_set 5 (role 255)
[ 458.641255] D:cmd template_set 4 (role 255)
[ 458.645973] D:cmd template_set 1 (role 255)
[ 458.650946] D:cmd template_set 15 (role 255)
[ 458.655751] D:cmd template_set 14 (role 255)
[ 458.660841] D:cmd template_set 13 (role 255)
[ 458.665654] D:cmd template_set 16 (role 255)
[ 458.670731] D:cmd template_set 7 (role 255)
[ 458.675455] D:cmd template_set 7 (role 255)
[ 458.680418] D:cmd template_set 7 (role 255)
[ 458.685136] D:cmd template_set 7 (role 255)
[ 458.689849] D:wl1271 mem cfg
[ 458.693171] D:cmd configure (1)
[ 458.697018] D:cmd config firmware logger
[ 458.703070] D:cmd reg domain config
[ 458.706786] D:cmd reg domain bitmap1: 0x000007ff, bitmap2: 0x00000000
[ 458.783237] D:acx sg cfg
[ 458.785920] D:cmd configure (22)
[ 458.810091] D:acx sg enable
[ 458.813038] D:cmd configure (21)
[ 458.816667] D:acx mem map
[ 458.819419] D:cmd interrogate
[ 458.823232] D:available tx blocks: 44
[ 458.827086] D:acx rx msdu life time
[ 458.830991] D:cmd configure (60)
[ 458.834637] D:acx dco itrim parameters
[ 458.838580] D:cmd configure (55)
[ 458.842508] D:acx tx config options
[ 458.846178] D:cmd configure (15)
[ 458.849848] D:wl1271 rx interrupt config
[ 458.854268] D:cmd configure (39)
[ 458.857958] D:acx cca threshold
[ 458.861487] D:cmd configure (16)
[ 458.865129] D:acx frag threshold: 2352
[ 458.869067] D:cmd configure (40)
[ 458.873030] D:cmd data path
[ 458.876260] D:rx start cmd channel 1
[ 458.880605] D:tx start cmd channel 1
[ 458.884362] D:acx pm config
[ 458.887296] D:cmd configure (64)
[ 458.891298] D:acx set rate mgmt params
[ 458.895244] D:cmd configure (52)
[ 458.898869] D:acx config hangover
[ 458.902655] D:cmd configure (66)
[ 458.906387] wlcore: firmware booted (Rev 8.9.0.0.31)
[ 458.911634] D:11a is supported
[ 458.914839] #########################################
[ 458.920159] wl12xx_cmd_role_enable…………….
[ 458.925194] D:cmd role enable
[ 458.928792] wl1271_init_vif_specific…………….
[ 458.934038] D:acx sleep auth 2
[ 458.937957] D:cmd configure (29)
[ 458.941801] D:unmasking event_mask 0xffff01
[ 458.946197] D:acx event mbox mask
[ 458.949686] D:cmd configure (17)
[ 458.953710] D:AP basic rate set: 0x1eff
[ 458.957750] D:acx ap rate policy 0 rates 0x1eff
[ 458.962743] D:cmd configure (27)
[ 458.966438] D:acx ap rate policy 1 rates 0x1
[ 458.971156] D:cmd configure (27)
[ 458.974847] D:acx ap rate policy 2 rates 0x1ffeff
[ 458.979790] D:cmd configure (27)
[ 458.983768] D:acx ap rate policy 3 rates 0x1ffeff
[ 458.988714] D:cmd configure (27)
[ 458.992629] D:acx ap rate policy 4 rates 0x1ffeff
[ 458.997579] D:cmd configure (27)
[ 459.001772] D:acx ap rate policy 5 rates 0x1ffeff
[ 459.006725] D:cmd configure (27)
[ 459.010696] D:acx config ap sleep
[ 459.014181] D:cmd configure (89)
[ 459.017848] D:acx ap max tx retry
[ 459.021640] D:cmd configure (58)
[ 459.025332] D:acx dot11_cur_tx_pwr 0
[ 459.029094] D:cmd configure (61)
[ 459.033073] D:acx slot
[ 459.035560] D:cmd configure (2)
[ 459.039136] D:acx service period timeout
[ 459.043285] D:cmd configure (33)
[ 459.047406] D:acx rts threshold: 2353
[ 459.051408] D:cmd configure (62)
[ 459.055103] D:acx ac cfg 0 cw_ming 15 cw_max 63 aifs 3 txop 0
[ 459.061375] D:cmd configure (3)
[ 459.064965] D:acx tid config
[ 459.067992] D:cmd configure (9)
[ 459.071875] D:acx ac cfg 1 cw_ming 15 cw_max 63 aifs 7 txop 0
[ 459.077920] D:cmd configure (3)
[ 459.081739] D:acx tid config
[ 459.084772] D:cmd configure (9)
[ 459.088304] D:acx ac cfg 2 cw_ming 15 cw_max 63 aifs 1 txop 3008
[ 459.094907] D:cmd configure (3)
[ 459.098501] D:acx tid config
[ 459.101750] D:cmd configure (9)
[ 459.105344] D:acx ac cfg 3 cw_ming 15 cw_max 63 aifs 1 txop 1504
[ 459.111886] D:cmd configure (3)
[ 459.115470] D:acx tid config
[ 459.118500] D:cmd configure (9)
[ 459.122339] D:acx feature cfg
[ 459.125464] D:cmd configure (67)
[ 459.129132] D:cmd template_set 16 (role 0)
[ 459.134076] D:cmd template_set 0 (role 0)
[ 459.138619] D:cmd template_set 5 (role 0)
[ 459.143461] D:acx beacon filter opt enable=0
[ 459.147955] D:cmd configure (11)
[ 459.151865] D:acx ba initiator policy
[ 459.155722] D:cmd configure (46)
[ 459.159388] list_add…………….
[ 459.163174] wlvif->bss_type 3…………
[ 459.167412] D:IRQ work
[ 459.169988] D:intr: 0x4 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 459.178410] D:WL1271_ACX_INTR_EVENT_A
[ 459.182271] D:EVENT on mbox 0
[ 459.185443] D:MBOX vector: 0x80000
[ 459.189157] D:intr: 0x0 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 459.198312] D:mac80211 configure filter changed 180 total 80000180
[ 459.204997] D:mac80211 bss info role 0 changed 0xe
[ 459.210197] D:acx slot
[ 459.212684] D:cmd configure (2)
[ 459.216282] D:acx_set_preamble
[ 459.219492] D:cmd configure (30)
[ 459.223544] D:acx_set_ctsprotect
[ 459.226940] D:cmd configure (28)
[ 459.230890] D:mac80211 conf tx 0
[ 459.234289] D:acx ac cfg 3 cw_ming 3 cw_max 7 aifs 2 txop 1504
[ 459.240658] D:cmd configure (3)
[ 459.244226] D:acx tid config
[ 459.247254] D:cmd configure (9)
[ 459.251114] D:mac80211 conf tx 1
[ 459.254516] D:acx ac cfg 2 cw_ming 7 cw_max 15 aifs 2 txop 3008
[ 459.260974] D:cmd configure (3)
[ 459.264564] D:acx tid config
[ 459.267594] D:cmd configure (9)
[ 459.271476] D:mac80211 conf tx 2
[ 459.274873] D:acx ac cfg 0 cw_ming 15 cw_max 1023 aifs 3 txop 0
[ 459.281315] D:cmd configure (3)
[ 459.284909] D:acx tid config
[ 459.287939] D:cmd configure (9)
[ 459.291791] D:mac80211 conf tx 3
[ 459.295189] D:acx ac cfg 1 cw_ming 15 cw_max 1023 aifs 7 txop 0
[ 459.301630] D:cmd configure (3)
[ 459.305226] D:acx tid config
[ 459.308258] D:cmd configure (9)
[ 459.312112] D:mac80211 bss info role 0 changed 0x2000
[ 459.317436] D:mac80211 config psm off power 0 idle changed 0xffffff9f
[ 459.324486] D:mac80211 configure filter changed 180 total 80000180
wlan1: interface state UNINITIALIZED->COUNTRY_UP[ 459.334607] cfg80211: Calling CRDA to update world regulatory domain
DATE
Add interface 'wlan1'
OK
###configure ip………………….
[ 459.350178] D:mac80211 configure filter changed 180 total 80000180
###start udhcpd server………….
[ 459.369446] D:mac80211 configure filter changed 180 total 80000180
[ 459.410233] D:elp work
[ 459.412752] D:chip to elp
###configure nat…………………..
root@am335x-evm:/usr/share/wl18xx# Using interface wlan1 with hwaddr 5c:31:3e:e1:a8:ac and ssid "SitaraAP"
[ 460.368219] D:mac80211 config psm off power 0 in use changed 0x100
[ 460.375299] D:waking up chip from elp
[ 460.385141] D:wakeup time: 10 ms
[ 460.388557] D:mac80211 add chanctx 11 (type 1)
[ 460.393279] D:mac80211 assign chanctx (role 0) 11 (type 1) (radar 0 dfs_state 0)
[ 460.401070] D:IRQ work
[ 460.403685] D:intr: 0x20 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 460.412220] D:WL1271_ACX_INTR_HW_AVAILABLE
[ 460.416621] D:intr: 0x0 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 460.425652] D:mac80211 bss info role 0 changed 0x40000
[ 460.431253] D:acx dot11_cur_tx_pwr 20
[ 460.435108] D:cmd configure (61)
[ 460.438839] D:mac80211 bss info role 0 changed 0x4000
[ 460.444524] D:mac80211 get tsf
[ 460.447741] D:cmd interrogate
[ 460.451429] D:mac80211 bss info role 0 changed 0x98360
[ 460.456845] D:AP basic rate set: 0x26f
[ 460.460813] D:acx ap rate policy 0 rates 0x26f
[ 460.465636] D:cmd configure (27)
[ 460.469655] D:acx ap rate policy 1 rates 0x1
[ 460.474355] D:cmd configure (27)
[ 460.478044] D:acx ap rate policy 2 rates 0x1ffeff
[ 460.483231] D:cmd configure (27)
[ 460.486920] D:acx ap rate policy 3 rates 0x1ffeff
[ 460.492101] D:cmd configure (27)
[ 460.495778] D:acx ap rate policy 4 rates 0x1ffeff
[ 460.500953] D:cmd configure (27)
[ 460.504630] D:acx ap rate policy 5 rates 0x1ffeff
[ 460.509574] D:cmd configure (27)
[ 460.513546] D:cmd template_set 16 (role 0)
[ 460.518184] D:cmd template_set 0 (role 0)
[ 460.522979] D:cmd template_set 5 (role 0)
[ 460.527510] D:acx beacon filter opt enable=0
[ 460.532230] D:cmd configure (11)
[ 460.535921] D:cmd template_set 14 (role 0)
[ 460.540852] D:probe response updated
[ 460.544624] D:beacon updated
[ 460.547651] D:cmd template_set 13 (role 0)
[ 460.552631] D:beacon interval updated: 100
[ 460.556948] D:cmd template_set 14 (role 0)
[ 460.561926] D:probe response updated
[ 460.565693] D:beacon updated
[ 460.568719] D:cmd template_set 13 (role 0)
[ 460.573779] D:cmd role start ap 0
[ 460.577276] D:cmd role start ap with supported_rates 0x001ffeff
[ 460.584822] D:started AP
[ 460.587525] D:IRQ work
[ 460.590114] D:intr: 0x40 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 460.598622] D:WL1271_ACX_INTR_DATA
[ 460.602282] D:intr: 0x0 (fw_rx_counter = 0, drv_rx_counter = 0, tx_results_counter = 0)
[ 460.611596] D:mac80211 bss info role 0 changed 0x3e
[ 460.616743] D:AP basic rate set: 0x26f
[ 460.620741] D:acx ap rate policy 0 rates 0x26f
[ 460.625661] D:cmd configure (27)
[ 460.629773] D:acx ap rate policy 1 rates 0x1
[ 460.634448] D:cmd configure (27)
[ 460.638139] D:acx ap rate policy 2 rates 0x1ffeff
[ 460.643324] D:cmd configure (27)
[ 460.647008] D:acx ap rate policy 3 rates 0x1ffeff
[ 460.652199] D:cmd configure (27)
[ 460.655886] D:acx ap rate policy 4 rates 0x1ffeff
[ 460.661061] D:cmd configure (27)
[ 460.664746] D:acx ap rate policy 5 rates 0x1ffeff
[ 460.669688] D:cmd configure (27)
[ 460.673664] D:cmd template_set 16 (role 0)
[ 460.678297] D:cmd template_set 0 (role 0)
[ 460.683097] D:cmd template_set 5 (role 0)
[ 460.687629] D:acx beacon filter opt enable=0
[ 460.692348] D:cmd configure (11)
[ 460.696039] D:cmd template_set 14 (role 0)
[ 460.701010] D:probe response updated
[ 460.704777] D:beacon updated
[ 460.707809] D:cmd template_set 13 (role 0)
[ 460.712855] D:acx slot
[ 460.715345] D:cmd configure (2)
[ 460.718918] D:acx_set_preamble
[ 460.722439] D:cmd configure (30)
[ 460.726082] D:acx_set_ctsprotect
[ 460.729478] D:cmd configure (28)
[ 460.733523] D:acx ht information setting
[ 460.737649] D:cmd configure (49)
[ 460.741944] D:mac80211 conf tx 0
[ 460.745356] D:acx ac cfg 3 cw_ming 3 cw_max 7 aifs 1 txop 1504
[ 460.751840] D:cmd configure (3)
[ 460.755480] D:acx tid config
[ 460.758513] D:cmd configure (9)
[ 460.762415] D:mac80211 bss info role 0 changed 0x2000
[ 460.767954] D:mac80211 conf tx 1
[ 460.771393] D:acx ac cfg 2 cw_ming 7 cw_max 15 aifs 1 txop 3008
[ 460.777832] D:cmd configure (3)
[ 460.781875] D:acx tid config
[ 460.784910] D:cmd configure (9)
[ 460.788448] D:mac80211 bss info role 0 changed 0x2000
[ 460.794274] D:mac80211 conf tx 2
[ 460.797678] D:acx ac cfg 0 cw_ming 15 cw_max 63 aifs 3 txop 0
[ 460.804021] D:cmd configure (3)
[ 460.807646] D:acx tid config
[ 460.810928] D:cmd configure (9)
[ 460.814486] D:mac80211 bss info role 0 changed 0x2000
[ 460.820273] D:mac80211 conf tx 3
[ 460.823678] D:acx ac cfg 1 cw_ming 15 cw_max 1023 aifs 7 txop 0
[ 460.829895] D:cmd configure (3)
[ 460.833833] D:acx tid config
[ 460.836868] D:cmd configure (9)
[ 460.840724] D:mac80211 bss info role 0 changed 0x2000
wlan1: interface state COUNTRY_UPDATE->ENABLED
wlan1: AP-ENABLED[ 460.870015] D:elp work
[ 460.872510] D:chip to elp
[
binbin wang:
好吧,我又自问自答了,udhcpd.conf还是要用ti提供的usr/share/wl18xx中的udhcpd.conf不要自己随便乱改,no zuo no die!
Richard.T:
回复 binbin wang:
no zuo no die ^_^.