Hi Guru, I followed the link you mentioned, it really helped a lots in rowboat. I try to repeat the changes in Froyo, it doesn't work.
I cannot find info about the WifiStateTracker.java and dhcpcd/ android.mk changes in the mentioned link. May you provide more information for froyo? Many thanks Regards, Edward On 9月7日, 下午6時36分, guru <[email protected]> wrote: > Hi Edward > > did you merged everything in to froyo? > > some changes you need to do to enable wifi in froyo. > > inWifiStateTracker > > WifiStateTracker.java > dhcpcd/android.mk ..etc > > Hope you have already referred this doc > > http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi... > > Thanks > Gururaja B O > > On Sep 7, 3:22 pm, Edward Pang <[email protected]> wrote: > > > > > I just got an error message from WifiStateTracker. > > I/WifiStateTracker( 885): DhcpHandler: DHCP request failed: Timed out > > waiting for DHCP to finish > > > The message is from frameworks/base/wifi/java/android/net/wifi/ > > WifiStateTracker.java > > > Log.d(TAG, "DhcpHandler: DHCP request started"); > > if (NetworkUtils.runDhcp(mInterfaceName, > > mDhcpInfo)) { > > event = > > EVENT_INTERFACE_CONFIGURATION_SUCCEEDED; > > if (LOCAL_LOGD) Log.v(TAG, "DhcpHandler: DHCP > > request succeeded"); > > } else { > > event = EVENT_INTERFACE_CONFIGURATION_FAILED; > > Log.i(TAG, "DhcpHandler: DHCP request failed: > > " + > > NetworkUtils.getDhcpError()); > > } > > > This is a big question, because dhcpcd looks good and go into BOUND > > state. > > D/dhcpcd ( 1119): leased 192.168.210.15 for 86400 seconds > > D/dhcpcd ( 1119): adding IP address 192.168.210.15/24 > > D/dhcpcd ( 1119): adding route to 0.0.0.0/0 via 192.168.210.1 > > D/dhcpcd ( 1119): executing `/system/etc/dhcpcd/dhcpcd-run-hooks', > > reason BOUND > > > Please let me know if you any comment u have. > > Thank in advance. > > > On Sep 7, 4:06 pm, Edward Pang <[email protected]> wrote: > > > > Is there any permission setting wrong? > > > > / # ls -l /system/etc/dhcpcd/ > > > -rwxrwxrwx root root 1009 2010-08-31 03:05 dhcpcd-run- > > > hooks > > > drwxrwxrwx root root 2010-08-31 04:52 dhcpcd-hooks > > > -rwxrwxrwx root root 190 2010-08-31 03:05 dhcpcd.conf > > > / # ls -l /system/etc/wifi/ > > > -rw-rw---- wifi wifi 161 1970-01-01 00:08 > > > wpa_supplicant.conf > > > / # ls -l /data/misc/wifi/ > > > -rw-rw---- wifi wifi 112 1970-01-01 00:07 > > > wpa_supplicant.conf > > > drwxrwx--- wifi wifi 1970-01-01 00:05 sockets > > > / # ls -l /data/misc/dhcp/ > > > -r-------- dhcp dhcp 273 1970-01-01 00:01 dhcpcd- > > > wlan0.lease > > > / # ls -l /data/system/wpa_supplicant/ > > > srwxrwx--- wifi wifi 1970-01-01 00:05 wlan0 > > > > On Sep 7, 8:47 am, Oliver <[email protected]> wrote: > > > > > I guess it's a linux permissions problem. Make sure all the > > > > configuration file have the proper permission. > > > > > On Sep 6, 10:33 pm, Irfan Sheriff <[email protected]> wrote: > > > > > > All the UI is doing is calling load driver & a start supplicant > > > > > followed by > > > > > running dhcp on receiving a connect from supplicant. > > > > > > If it is only showing "Disconnect->Scanning", it means the > > > > > association never > > > > > went through. You should verify if all the modules are loaded after > > > > > doing a > > > > > "turn on". Also, use the wpa_cli interface to debug what is going on > > > > > in the > > > > > wpa_supplicant. > > > > > > Irfan > > > > > > On Mon, Sep 6, 2010 at 2:46 AM, Edward Pang <[email protected]> > > > > > wrote: > > > > > > Hi Everyone, > > > > > > > Following the information from the link below, I can access webpage > > > > > > by > > > > > > browser through Wifi (Beagleboard + USB dongle RT73). > > > > > >http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi... > > > > > > > When i try to migrate the fix into froyo, Wifi is always loop in > > > > > > Scanning -> Disconnect stage after pressing Turn On Wi-fi. > > > > > > > Now, in froyo, i can get IP manually in console by both method below > > > > > > (wpa conf is using UNIX socket configuration): > > > > > > Method 1 > > > > > > -------------- > > > > > > insmod rt2x00lib.ko > > > > > > insmod rt2x00usb.ko > > > > > > insmod rt73.ko > > > > > > ifconfig wlan0 up > > > > > > wpa_supplicant -D wext -i wlan0 -dd -c wpa_supplicant.conf & > > > > > > dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -d wlan0 > > > > > > (Remark: i got "[: not found" twice after dhcpcd command, but IP can > > > > > > be updated) > > > > > > > Method 2 > > > > > > -------------- > > > > > > insmod rt2x00lib.ko > > > > > > insmod rt2x00usb.ko > > > > > > insmod rt73.ko > > > > > > start ifcfg_ralink > > > > > > start wpa_supplicant > > > > > > start dhcpcd > > > > > > > After method 2, I suppose my wpa_supplicant and dhcpcd works, and > > > > > > init.rc is right. Am I correct? > > > > > > Can anyone give me some hints or suggestion? > > > > > > > Edward Pang > > > > > > > -- > > > > > > unsubscribe: > > > > > > [email protected]<android-porting%2Bunsubscribe@ > > > > > > googlegroups.com> > > > > > > website:http://groups.google.com/group/android-porting -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
