[HD2 Android SD Development] peramikic:
Cope,

Give us some benefit of the doubt on the WiFi issues, especialy the ones that are IT admins. I start with no remebred WIFI's, entert the network info, and wait and wait and wait, but all I get is not in range, and Wi-Fi which seems to be stuck at scanning mode.

If I start with the network visible (and remebers) and then I hide the SSID, i can connect only once more to it. The moment I walk out of range or toggle the WiFi, it's back to out of range/scanning stuck

I have no problem with 2.2 Roms (SupreRAM, DesireZ, DHD)

Here is the logcat with hidden WIFI, notice this line during the scan:

W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [WPA-PSK-CCMP][WPA2-PSK-CCMP-preauth] (Thats my AP's mac)

D/dalvikvm( 4514): GC_CONCURRENT freed 445K, 53% free 3054K/6407K, external 536K/1008K, pa
used 3ms+6ms
D/SettingsAppWidgetProvider( 4514): Call buildUpdate for widget:16
D/SettingsAppWidgetProvider( 4514): buildUpdate done for widget:16
D/dalvikvm( 381): GC_CONCURRENT freed 1999K, 59% free 3908K/9351K, external 4687K/5678K,
paused 2ms+5ms
D/Tethering( 279): eth0 is not a tetherable iface, ignoring
D/WifiService( 279): ACTION_BATTERY_CHANGED pluggedType: 2
E/WifiHW ( 279): Unable to open connection to supplicant on "eth0": No such file or dire
ctory
D/WifiService( 279): acquireWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binde
r=android.os.BinderProxy@4088cfa8}
D/WifiStateTracker( 279): Reset connections and stopping DHCP
I/wpa_supplicant(11118): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
D/WifiStateTracker( 279): Disabling interface
D/SettingsAppWidgetProvider( 4514): Call buildUpdate for widget:16
D/SettingsAppWidgetProvider( 4514): buildUpdate done for widget:16
D/dalvikvm( 4514): GC_CONCURRENT freed 415K, 53% free 3031K/6407K, external 496K/1008K, pa
used 2ms+4ms
V/WifiStateTracker( 279): Connection to supplicant established, state=SCANNING
D/WifiService( 279): releaseWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binde
r=android.os.BinderProxy@4088cfa8}
E/wpa_supplicant(11118): Ongoing Scan action...
D/dalvikvm( 381): GC_CONCURRENT freed 2050K, 59% free 3898K/9351K, external 4622K/5678K,
paused 3ms+5ms
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
D/RC_WifiBroadcastReceiver( 9029): action android.net.wifi.SCAN_RESULTS
D/RC_WifiService( 9029): notifyScanResults() 52379963
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
D/dalvikvm( 4555): GC_EXPLICIT freed 69K, 56% free 2514K/5703K, external 0K/0K, paused 69m
s
E/wpa_supplicant(11118): Ongoing Scan action...
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
D/RC_WifiBroadcastReceiver( 9029): action android.net.wifi.SCAN_RESULTS
D/RC_WifiService( 9029): notifyScanResults() 52392944
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
D/dalvikvm( 9029): GC_EXPLICIT freed 13K, 54% free 2514K/5379K, external 0K/0K, paused 49m
s
E/wpa_supplicant(11118): Ongoing Scan action...
E/wpa_supplicant(11118): Ongoing Scan action...
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
D/RC_WifiBroadcastReceiver( 9029): action android.net.wifi.SCAN_RESULTS
D/RC_WifiService( 9029): notifyScanResults() 52404982
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W
PA-PSK-CCMP][WPA2-PSK-CCMP-preauth]
W/WifiService( 279): misformatted scan result for: d8:5d:4c:a4:69:6c 2462 190 [W

Here is logcat on visible SSID, notice no 'missformated scan' lines:

D/dalvikvm( 4572): GC_EXPLICIT freed 24K, 55% free 2763K/6023K, external 880K/1041K, pause
d 38ms
D/SettingsAppWidgetProvider( 4514): Call buildUpdate for widget:16
D/SettingsAppWidgetProvider( 4514): buildUpdate done for widget:16
D/Tethering( 279): eth0 is not a tetherable iface, ignoring
D/WifiService( 279): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiService( 279): acquireWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binde
r=android.os.BinderProxy@407f7688}
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
]
I/wpa_supplicant(11198): Trying to associate with d8:5d:4c:a4:69:6c (SSID='fa-outside' fre
q=2462 MHz)
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=d8:5d:4c:a4:69:6c
V/WifiMonitor( 279): Event [Trying to associate with d8:5d:4c:a4:69:6c (SSID='fa-outside'
freq=2462 MHz)]
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=d8:5d:4c:a4:69:6c
]
V/WifiStateTracker( 279): Connection to supplicant established, state=ASSOCIATING
V/WifiStateTracker( 279): Changing supplicant state: ASSOCIATING ==> SCANNING
V/WifiStateTracker( 279): Changing supplicant state: SCANNING ==> ASSOCIATING
D/dalvikvm( 4514): GC_CONCURRENT freed 397K, 53% free 3027K/6407K, external 496K/1008K, pa
used 2ms+3ms
D/SettingsAppWidgetProvider( 4514): Call buildUpdate for widget:16
D/SettingsAppWidgetProvider( 4514): buildUpdate done for widget:16
D/RC_WifiBroadcastReceiver( 9029): action android.net.wifi.SCAN_RESULTS
E/wpa_supplicant(11198): Ongoing Scan action...
D/RC_WifiService( 9029): notifyScanResults() 52605382
D/dalvikvm( 381): GC_CONCURRENT freed 1849K, 59% free 3863K/9351K, external 4692K/5678K,
paused 2ms+4ms
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=d8:5d:4c:a4:69:6c
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=d8:5d:4c:a4:69:6c]

V/WifiStateTracker( 279): Changing supplicant state: ASSOCIATING ==> ASSOCIATED
I/wpa_supplicant(11198): Associated with d8:5d:4c:a4:69:6c
V/WifiMonitor( 279): Event [Associated with d8:5d:4c:a4:69:6c]
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=1 state=5 BSSID=00:00:00:00:00:00
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=1 state=5 BSSID=00:00:00:00:00:00]

V/WifiStateTracker( 279): Changing supplicant state: ASSOCIATED ==> FOUR_WAY_HANDSHAKE
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=1 state=5 BSSID=00:00:00:00:00:00
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=1 state=5 BSSID=00:00:00:00:00:00]

V/WifiStateTracker( 279): Changing supplicant state: FOUR_WAY_HANDSHAKE ==> FOUR_WAY_HAND
SHAKE
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=1 state=6 BSSID=00:00:00:00:00:00]

V/WifiStateTracker( 279): Changing supplicant state: FOUR_WAY_HANDSHAKE ==> GROUP_HANDSHA
KE
I/wpa_supplicant(11198): WPA: Key negotiation completed with d8:5d:4c:a4:69:6c [PTK=CCMP G
TK=CCMP]
V/WifiMonitor( 279): Event [WPA: Key negotiation completed with d8:5d:4c:a4:69:6c [PTK=CC
MP GTK=CCMP]]
I/wpa_supplicant(11198): CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00
V/WifiMonitor( 279): Event [CTRL-EVENT-STATE-CHANGE id=1 state=7 BSSID=00:00:00:00:00:00]

I/wpa_supplicant(11198): CTRL-EVENT-CONNECTED - Connection to d8:5d:4c:a4:69:6c completed
(auth) [id=1 id_str=]
V/WifiMonitor( 279): Event [CTRL-EVENT-CONNECTED - Connection to d8:5d:4c:a4:69:6c comple
ted (auth) [id=1 id_str=]]
V/WifiStateTracker( 279): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLETED
V/WifiStateTracker( 279): New network state is CONNECTED
D/WifiStateTracker( 279): DhcpHandler: DHCP request started
I/dalvikvm( 4514): Jit: resizing JitTable from 4096 to 8192
D/WifiService( 279): releaseWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binde
r=android.os.BinderProxy@407f7688}

Without the build.prop modification to the ro.product.device, i am still getting green tint with flash on both front and back (FYI if you try to switch to video mode while on front camera, the app will crash/FC, also litle icon in the bottom left corrner, mountains are for back camera, person is for front :D). I think it has to do with the calibration data for the white balance. I have the TMo-US HD2, using WB's TMo build