直接 enable thethering -- portable Wi-Fi hotspot。
結果是 Error。
log 是..
E/WifiService( 2379): ath: load Wi-Fi driver for AP mode.
set_cpu_freq, wp 0
I/wlan_tool( 2679): loadAPdriver+
I/wlan_tool( 2680): AP wifi loading
I/wlan_tool( 2684): Try to load AP driver with ifname=softap0 devmode=ap
AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systemsD/dalvikvm( 2379): GC_CONCURRENT freed 979K,
45% free 4279K/7751K, external 2765K/3965K, paused 4ms+6ms
AR6K: ** HIF layer does not support scatter requests (17)
W/Netd ( 2309): action=5, iface=softap0
wmi_control_rx() : Unknown id 0x101e
D/Tethering( 2379): interfaceLinkStatusChanged softap0, false
D/NetdConnector( 2379): RCV <- {600 Iface linkstate softap0 down}
W/Netd ( 2309): action=5, iface=softap0
/Tethering( 2379): interfaceLinkStatusChanged softap0, false
D/NetdConnector( 2379): RCV <- {600 Iface linkstate softap0 down}
D/Tethering( 2379): softap0 is not a tetherable iface, ignoring
W/Netd ( 2309): action=5, iface=softap0
D/Tethering( 2379): interfaceLinkStatusChanged softap0, false
D/NetdConnector( 2379): RCV <- {600 Iface added softap0}
D/NetdConnector( 2379): RCV <- {600 Iface linkstate softap0 down}
I/wlan_tool( 2699): ar6000 AP driver loaded
I/wlan_tool( 2701): loadAPdriver-
D/SoftapController( 2309): Softap driver stop: 0
D/SoftapController( 2309): fwReloadSoftap: argv[2]:wlan0 argv[3]:AP
D/SoftapController( 2309): Softap fwReload - Ok
D/SoftapController( 2309): Softap driver start: 0
D/NetdConnector( 2379): SND -> {softap stop wlan0} {null}
D/NetdConnector( 2379): RCV <- {200 Softap operation succeeded}
D/NetdConnector( 2379): RSP <- {200 Softap operation succeeded}
D/NetdConnector( 2379): SND -> {softap fwreload wlan0 AP} {null}
D/NetdConnector( 2379): RCV <- {200 Softap operation succeeded}
D/NetdConnector( 2379): RSP <- {200 Softap operation succeeded}
D/NetdConnector( 2379): SND -> {softap start wlan0} {null}
D/NetdConnector( 2379): RCV <- {200 Softap operation succeeded}
D/NetdConnector( 2379): RSP <- {200 Softap operation succeeded}
E/SoftapController( 2309): AR6000_IOCTL wlap0 set wlan state failed: -1:No such device
D/NetdConnector( 2379): SND -> {softap set wlan0 wlap0 "xxxAndroidAP" open null} {null}
D/NetdConnector( 2379): RCV <- {400 Softap operation failed (No such device)}
D/NetdConnector( 2379): RSP <- {400 Softap operation failed (No such device)}
E/WifiService( 2379): Exception in startAccessPoint()
所以問題應該是在:
E/SoftapController( 2309): AR6000_IOCTL wlap0 set wlan state failed: -1:No such device
然後記得以前 auron 說過,當初 ap mode fail 是 interface name 不對。
對照一下,果然,前面 wlan_tool 使用 softap0,後面 framework 都用 wlap0。
所以修改一下 wlan_tool
... 這個是在 atheros wifi sdk 的 driver project 中..
附記:auron 改 WifiService.java ,其中 SOFTAP_IFACE=" " 她改 wlan1
要注意 可以作為 tether 的 interface 寫在 framework/base/core/res/res/values/config.xml:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string-array translatable="false" name="config_tether_wifi_regexs"> | |
<item>"wlap0"</item> | |
</string-array> |
沒有留言:
張貼留言