[Nexus One Android Development] redraiderj:
This is exactly what I'm looking for! Thanks a lot!:D

Edit: I'm using Geo's Completely Stock Deodexed with busybox, FRG83. I cannot connect to wifi after flashing this kernel, here are my logcat.

D/Tethering( 96): eth0 is not a tetherable iface, ignoring

D/WifiService( 96): ACTION_BATTERY_CHANGED pluggedType: 2

D/WifiService( 96): acquireWifiLockLocked: WifiLock{NetworkLocationProvider ty

pe=2 binder=android.os.Binder@46194828}

V/WifiStateTracker( 96): Connection to supplicant established, state=DISCONNEC

TED

D/NetworkStateTracker( 96): setDetailed state, old =DISCONNECTED and new state

=DISCONNECTED

D/LocationMasfClient( 96): getNetworkLocation(): Location not found in cache,

making network request

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

:00:00

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

W/wpa_supplicant( 686): Failed to initiate AP scan.

V/WifiStateTracker( 96): Changing supplicant state: DISCONNECTED ==> SCANNING

D/NetworkStateTracker( 96): setDetailed state, old =DISCONNECTED and new state

=SCANNING

V/WifiMonitor( 96): Event [WPS-AP-AVAILABLE ]

D/ConnectivityService( 96): Dropping ConnectivityChange for WIFI: DISCONNECTED

/SCANNING

V/WifiMonitor( 96): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:0

0:00:00:00]

D/dalvikvm( 96): GC_FOR_MALLOC freed 24258 objects / 1295032 bytes in 118ms

D/NativeCrypto( 96): Freeing OpenSSL session

D/LocationMasfClient( 96): getNetworkLocation(): Number of prefetched entries

1

D/LocationMasfClient( 96): getNetworkLocation(): Returning network location wi

th accuracy 1467.0

D/WifiService( 96): releaseWifiLockLocked: WifiLock{NetworkLocationProvider ty

pe=2 binder=android.os.Binder@46194828}

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

V/WifiMonitor( 96): Event [WPS-AP-AVAILABLE ]

W/wpa_supplicant( 686): Failed to initiate AP scan.

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

V/WifiMonitor( 96): Event [WPS-AP-AVAILABLE ]

D/SntpClient( 96): request time failed: java.net.SocketTimeoutException: Conne

ction timed out

W/wpa_supplicant( 686): Failed to initiate AP scan.

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

V/WifiMonitor( 96): Event [WPS-AP-AVAILABLE ]

D/AK8973 ( 75): Compass Start

I/power ( 96): *** set_screen_state 0

D/WifiService( 96): ACTION_SCREEN_OFF

D/WifiService( 96): setting ACTION_DEVICE_IDLE timer for 120,000 ms

D/SurfaceFlinger( 96): About to give-up screen, flinger = 0x125b18

D/AK8973 ( 75): Compass CLOSE

W/wpa_supplicant( 686): Failed to initiate AP scan.

D/StatusBar( 96): DISABLE_EXPAND: yes

D/GoogleLoginService( 204): onBind: Intent { act=android.accounts.AccountAuthen

ticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }

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

V/WifiMonitor( 96): Event [WPS-AP-AVAILABLE ]

D/dalvikvm( 204): GC_EXPLICIT freed 2276 objects / 120416 bytes in 70ms

D/dalvikvm( 411): GC_EXPLICIT freed 35 objects / 2000 bytes in 60ms

BTW, I hide the SSID of my wifi, and the encryption method is WPA2-PSK with AES. And when I connect my nexus one to laptop, there is no notification to ask me to mount the phone as a usb device or something like that. There should be an android, green or orange, depends on mounted or not, but I notice nothing happens when I connect.