使用 #ifconfig 没有任何接口,使用 iwconfig 有 wlan0 接口,但,iwlist scan 不到任何节点。
打开 wifi 时,android log如下:
01-02 08:00:16.650 D/wpa_supplicant( 2921): Successfully replaced leftover ctrl_iface socket '/data/misc/wifi/sockets/wlan0'
01-02 08:00:16.660 D/wpa_supplicant( 2921): P2P: Own listen channel: 1
01-02 08:00:16.660 D/wpa_supplicant( 2921): P2P: Random operating channel: 81:1
01-02 08:00:16.660 D/wpa_supplicant( 2921): P2P: Add operating class 81
01-02 08:00:16.660 D/wpa_supplicant( 2921): P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
01-02 08:00:16.660 D/wpa_supplicant( 2921): wlan0: Added interface wlan0
01-02 08:00:16.660 D/wpa_supplicant( 2921): wlan0: State: INACTIVE -> DISCONNECTED
01-02 08:00:16.660 D/wpa_supplicant( 2921): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
01-02 08:00:16.660 D/wpa_supplicant( 2921): netlink: Operstate: linkmode=-1, operstate=5
01-02 08:00:16.660 D/wpa_supplicant( 2921): Daemonize..
01-02 08:00:16.660 D/wpa_supplicant( 2922): random: Got 20/20 bytes from /dev/random
01-02 08:00:16.660 D/wpa_supplicant( 2922): Get randomness: len=20 entropy=0
01-02 08:00:16.670 D/wpa_supplicant( 2922): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
01-02 08:00:17.660 D/wpa_supplicant( 2922): EAPOL: disable timer tick
01-02 08:00:17.660 D/wpa_supplicant( 2922): EAPOL: Supplicant port status: Unauthorized
01-02 08:00:17.660 D/wpa_supplicant( 2922): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
01-02 08:00:21.680 D/wpa_supplicant( 2930): wpa_supplicant v2.1-devel-4.4.2
01-02 08:00:21.690 D/wpa_supplicant( 2930): random: Added entropy from /data/misc/wifi/entropy.bin (own_pool_ready=2)
01-02 08:00:21.690 D/wpa_supplicant( 2930): random: Trying to read entropy from /dev/random
01-02 08:00:21.690 D/wpa_supplicant( 2930): Get randomness: len=20 entropy=1
01-02 08:00:21.690 D/wpa_supplicant( 2930): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
01-02 08:00:21.690 D/wpa_supplicant( 2930): Global control interface '/data/misc/wifi/wpa_wlan0_cmd'
01-02 08:00:21.690 I/wpa_supplicant( 2930): supp-global-ctrl-iface-init(/data/misc/wifi/wpa_wlan0_cmd) (will try fixup): bind(PF_UNIX): Address already in use
01-02 08:00:21.690 I/wpa_supplicant( 2930): ctrl_iface exists and seems to be in use - cannot override it
01-02 08:00:21.690 I/wpa_supplicant( 2930): Delete '/data/misc/wifi/wpa_wlan0_cmd' manually if it is not used anymore
01-02 08:00:21.690 D/wpa_supplicant( 2930): Get randomness: len=20 entropy=0
01-02 08:00:21.690 D/wpa_supplicant( 2930): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
01-02 08:00:21.690 E/wpa_supplicant( 2930): Failed to initialize wpa_supplicant
|