[Android Software/Hacking General [Developers Only]] fastguy:
Gingerbread Wifi Does not Work Part 2

I managed to gain adb access with the information in this page:

http://www.slatedroid.com/topic/22153-skytex-skypad-alpha-adb/

I see that ar6000.ko is loaded when triggered by the wifi settings, but then, I see the following in the dmesg output:

<4>creat new file fail

<4>read_mac_addr_from_file: mac address from the file:

<4>

<4>wmic_ether_aton: MAC value is invalid

<4>read_mac_addr_from_file: convert mac value fail

<4>eeprom_ar6000_transfer: read_mac_addr_from_file failed

<4>AR6000 Reg Code = 0x40000060

<4>TIANFENG cmd = 129 return 0Ktianfeng>>>>>cmd 129 fake

<4>TIANFENG cmd = 129 return 0Ktianfeng>>>>>cmd 129 fake

<6>ADDRCONF(NETDEV_UP): wlan0: link is not ready

<4>AR6000 disconnectedchannel hint set to 2412

<4>AR6000 connected event on freq 2412 with bssid c0:3f:0e:7d:3b:21 listenInter

val=1000, beaconInterval = 100, beaconIeLen = 22 assocReqLen=55 assocRespLen =48

<4>Network: Infrastructure

<6>ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

It looks like the earlier mac_address.dat files don't work anymore, or maybe some other issue. Not sure what to do here.

---------- Post added at 04:46 PM ---------- Previous post was at 04:12 PM ----------

Debugged a bit more. It seems that the problem is not the mac_address or such. I found that once I enabled the Wifi interface, the module is loaded and it appears in the ifconfig. I then assigned ip address manually and was able to ping my router.

But then the interface automatically disables itself and the connection dies. Is it wpa_supplicant what's causing this? Here's some logcat, it seems to look for a file named /data/misc/wifi/wpa_supplicant/wlan0 but can't find it. (I created a profile manually since scanning does not work, it associated with the profile successfully as per logs):

E/Tethering( 2265): attempting to remove unknown iface (wlan0), ignoring

I/wlan_tool( 3445): wifi loading

I/wlan_tool( 3451): Try to load driver with "ifname=wlan0"

D/Tethering( 2265): wlan0 is not a tetherable iface, ignoring

I/wlan_tool( 3467): ar6000 driver loaded

E/WifiHW ( 2265): ctrl ifname = /data/misc/wifi/wpa_supplicant/wlan0

I/wpa_supplicant( 3475): wpa_config_parse_psk: passphrase 0xabcde my_passphrase

I/wpa_supplicant( 3475): wapi_supplicant_init: Init WAPI packet wlan0

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=0 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=1 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=2 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=3 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): sun_path = wpa_wlan0

I/wpa_supplicant( 3475): CTRL-EVENT-DISCONNECTED - Disconnect event - remove key

s

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=0 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=1 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=2 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=3 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=0 key_idx=0 set_tx=0 seq

_len=0 key_len=0

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00

:00:00

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00

:00:00

I/wpa_supplicant( 3475): CTRL-EVENT-SCAN-RESULTS

I/wpa_supplicant( 3475): WPS-AP-AVAILABLE

I/wpa_supplicant( 3475): Selecting BSS from priority group 1

I/wpa_supplicant( 3475): Try to find WPA-enabled AP

I/wpa_supplicant( 3475): 0: c0:3f:0e:7d:3b:21 ssid='EV' wpa_ie_len=0 rsn_ie_len=

20 caps=0x11

I/wpa_supplicant( 3475): 0: c0:3f:0e:7d:3b:21 wapi_ie_len=0

I/wpa_supplicant( 3475): selected WPA AP c0:3f:0e:7d:3b:21 ssid='EV'

I/wpa_supplicant( 3475): Trying to associate with c0:3f:0e:7d:3b:21 (SSID='EV' f

req=2412 MHz)

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=c0:3f:0e:7d

:3b:21

I/wpa_supplicant( 3475): Setting authentication timeout: 10 sec 0 usec wpa_suppl

icant_associate

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=0 state=4 BSSID=c0:3f:0e:7d:

3b:21

I/wpa_supplicant( 3475): Associated with c0:3f:0e:7d:3b:21

I/wpa_supplicant( 3475): Setting authentication timeout: 10 sec 0 usec wpa_suppl

icant_event_assoc

I/wpa_supplicant( 3475): Setting authentication timeout: 10 sec 0 usec wpa_suppl

icant_rx_eapol

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00:00:00:00:

00:00

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00:00:00:00:

00:00

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=3 key_idx=0 set_tx=1 seq

_len=6 key_len=16

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=00:00:00:00:

00:00

I/wpa_supplicant( 3475): wpa_driver_ar6000_set_key: alg=3 key_idx=1 set_tx=0 seq

_len=6 key_len=16

I/wpa_supplicant( 3475): Key set completed!

I/wpa_supplicant( 3475): WPA: Key negotiation completed with c0:3f:0e:7d:3b:21 [

PTK=CCMP GTK=CCMP]

I/wpa_supplicant( 3475): CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=00:00:00:00:

00:00

I/wpa_supplicant( 3475): CTRL-EVENT-CONNECTED - Connection to c0:3f:0e:7d:3b:21

completed (auth) [id=0 id_str=]

E/WifiHW ( 2265): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt

=-1

E/WifiHW ( 2265): wifi_connect_to_supplicant: ifname = /data/misc/wifi/wpa_supp

licant/wlan0

E/WifiHW ( 2265): Unable to open connection to supplicant on "/data/misc/wifi/w

pa_supplicant/wlan0": No such file or directory

E/WifiHW ( 2265): ctrl ifname = /data/misc/wifi/wpa_supplicant/wlan0

E/WifiHW ( 2265): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt

=-1

E/WifiHW ( 2265): wifi_connect_to_supplicant: ifname = /data/misc/wifi/wpa_supp

licant/wlan0

E/WifiHW ( 2265): Unable to open connection to supplicant on "/data/misc/wifi/w

pa_supplicant/wlan0": No such file or directory

E/WifiHW ( 2265): ctrl ifname = /data/misc/wifi/wpa_supplicant/wlan0

E/WifiHW ( 2265): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt

=-1

E/WifiHW ( 2265): wifi_connect_to_supplicant: ifname = /data/misc/wifi/wpa_supp

licant/wlan0

E/WifiHW ( 2265): Unable to open connection to supplicant on "/data/misc/wifi/w

pa_supplicant/wlan0": No such file or directory

E/WifiHW ( 2265): ctrl ifname = /data/misc/wifi/wpa_supplicant/wlan0

E/WifiHW ( 2265): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt

=-1

E/WifiHW ( 2265): wifi_connect_to_supplicant: ifname = /data/misc/wifi/wpa_supp

licant/wlan0

E/WifiHW ( 2265): Unable to open connection to supplicant on "/data/misc/wifi/w

pa_supplicant/wlan0": No such file or directory

V/WifiStateTracker( 2265): Supplicant died unexpectedly

D/WifiStateTracker( 2265): Reset connections and stopping DHCP

D/WifiStateTracker( 2265): Disabling interface