Okay, I managed to get rid of that message using the android private socket (according to that guide). I also found a way to save the logcat message over the terminal emulator. Here are the wifi relevant messages:
D/wpa_supplicant( 1290): Initializing interface 'wlan0' conf '/data/ misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A' D/wpa_supplicant( 1290): Configuration file '/data/misc/wifi/ wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf' D/wpa_supplicant( 1290): Reading configuration file '/data/misc/wifi/ wpa_supplicant.conf' D/wpa_supplicant( 1290): update_config=1 D/wpa_supplicant( 1290): ctrl_interface='wlan0' D/wpa_supplicant( 1290): ap_scan=0 D/wpa_supplicant( 1290): Initializing interface (2) 'wlan0' E/wpa_supplicant( 1290): ioctl[SIOCGIFFLAGS] E/wpa_supplicant( 1290): ioctl[SIOCSIWPMKSA] E/wpa_supplicant( 1290): ioctl[SIOCSIWMODE] E/wpa_supplicant( 1290): ioctl[SIOCGIRANGE] E/wpa_supplicant( 1290): ioctl[SIOCGIWMODE] E/wpa_supplicant( 1290): ioctl[SIOCSIWAP] D/wpa_supplicant( 1290): WEXT: Operstate: linkmode=1, operstate=5 D/wpa_supplicant( 1290): Failed to add interface wlan0 D/wpa_supplicant( 1290): wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0 E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODEEXT] D/wpa_supplicant( 1290): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODE] D/wpa_supplicant( 1290): wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0 E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODEEXT] D/wpa_supplicant( 1290): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODE] D/wpa_supplicant( 1290): wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0 E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODEEXT] D/wpa_supplicant( 1290): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODE] D/wpa_supplicant( 1290): wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0 E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODEEXT] D/wpa_supplicant( 1290): Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE E/wpa_supplicant( 1290): ioctl[SIOCSIWENCODE] D/wpa_supplicant( 1290): State: DISCONNECTED -> DISCONNECTED I/wpa_supplicant( 1290): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00:00:00 D/wpa_supplicant( 1290): wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) D/wpa_supplicant( 1290): WEXT: Operstate: linkmode=-1, operstate=5 D/wpa_supplicant( 1290): wpa_driver_wext_set_wpa I//system/bin/wpa_supplicant( 1288): Could not get interface 'wlan0' flags I//system/bin/wpa_supplicant( 1288): Could not configure driver to use managed mode I//system/bin/wpa_supplicant( 1288): ioctl[SIOCGIFINDEX]: No such device D/wpa_supplicant( 1290): WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: No such device) E/wpa_supplicant( 1290): Failed to disable WPA in the driver. D/wpa_supplicant( 1290): wpa_driver_wext_set_drop_unencrypted D/wpa_supplicant( 1290): WEXT: SIOCSIWAUTH(param 5 value 0x0) failed: No such device) D/wpa_supplicant( 1290): wpa_driver_wext_set_countermeasures D/wpa_supplicant( 1290): WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: No such device) D/wpa_supplicant( 1290): No keys have been configured - skip key clearing D/wpa_supplicant( 1290): Cancelling scan request D/wpa_supplicant( 1290): Cancelling authentication timeout E/wpa_supplicant( 1290): ioctl[SIOCGIWMODE] E/wpa_supplicant( 1290): ioctl[SIOCSIWAP] D/wpa_supplicant( 1290): WEXT: Operstate: linkmode=0, operstate=6 E/wpa_supplicant( 1290): ioctl[SIOCGIFFLAGS] I/logwrapper( 1288): /system/bin/wpa_supplicant terminated by exit(255) ... E/WifiHW ( 1021): Supplicant not running, cannot connect ... E/WifiHW ( 1021): Supplicant not running, cannot connect E/WifiHW ( 1021): Supplicant not running, cannot connect V/WifiStateTracker( 1021): Supplicant died unexpectedly D/WifiStateTracker( 1021): Reset connections and stopping DHCP E/WifiStateTracker( 1021): Could not stop DHCP D/WifiStateTracker( 1021): Disabling interface D/WifiStateTracker( 1021): Reset connections and stopping DHCP ... E/WifiStateTracker( 1021): Could not stop DHCP D/WifiStateTracker( 1021): Disabling interface I don't know how to proceed further. Please help me. Thanks, Cyberworm On 3 Jun., 15:59, Cyberworm <[email protected]> wrote: > Okay, I achieved something. I'm able to activateWiFinow (using > moduled driver and patch for this > bug:http://code.google.com/p/android/issues/detail?id=17255&q=wifi%20loop...) > > But after 10-20 seconds it gets deactivated again. In logcat I found > this line: > > E/WifiHW ( 1021): Unable to open connection to supplicant on "/data/ > system/wpa_supplicant/wlan0": No such file or directory > > What could that possibly mean? > > Thanks, > Cyberworm > > On 2 Jun., 13:42, Cyberworm <[email protected]> wrote: > > > > > > > > > Hi, thanks for you help. > > > I managed to enable Wi-Fi using the driver as a module. But after that > > Android was in an endless reboot loop. I then tried to use the built- > > in driver way, but this way doesn't really work as I'm not able to > > activate Wi-Fi (logcat just saying something about not being able to > > bring up wlan0). > > > I'll try to post some logcat messages here, as I can't access my > > device via adb. It would be great if panic had a version of that > > reboot fix patch for moduled driver. > > > Greetings, > > Cyberworm > > > On 1 Jun., 13:28, Amit Pundir <[email protected]> wrote: > > > > On Tue, May 31, 2011 at 8:48 PM, Cyberworm <[email protected]> wrote: > > > > Using a modified su program I finally got root access.Wifistill > > > > isn't working. Is there no one who can help me? > > > > Difficult to help unless you post relevant logcat output here. > > > > Anyways few pointers to get you started: > > > > 1. wpa_supplicant relies heavly on private ioctls specially for > > > scanning and other purposes. Make sure either yourwifidriver is > > > supporting those ioctl or use this workaround > > > fromhttp://blog.linuxconsulting.ro/https://gitorious.org/picopc-android-g...... > > > > 2. By default Android also requires you to build yourwifidriver as a > > > module which can be inserted/removed at the time you enable/disable > > >wififrom UI. Do that or use this workaround (same source) if driver > > > is built into the kernel > > > itselfhttps://gitorious.org/picopc-android-gingerbread/hardware-libhardware... > > > > 3. Set the correctwifioptions and paths for driver & firmware in > > > Boardconfig.mk > > > e.g. > > > BOARD_WPA_SUPPLICANT_DRIVER := {CUSTOM or WEXT etc} > > > WPA_SUPPLICANT_VERSION := VER_0_6_X > > > WIFI_DRIVER_MODULE_PATH := "path_to_wifi_driver.ko if built as a > > > module" > > > WIFI_DRIVER_MODULE_NAME := "" > > > WIFI_FIRMWARE_LOADER := "firmware_loader_if_you_need_any" > > > WIFI_DRIVER_MODULE_ARG := "" > > > WIFI_DRIVER_FW_STA_PATH := "path_to_firmware_location" > > > > 4. Correct permissions are applied to corresponding files in init.rc > > > > Regards, > > > Amit Pundir > > > > > On 17 Mai, 20:10, Cyberworm <[email protected]> wrote: > > > >> Hi all, > > > > >> I'm trying to portGingerbreadto my OpenPandora device > > > >> (seehttp://www.openpandora.orgfordetails). Keyboard and Touchscreen > > > >> work > > > >> fine and now I'm working onWifi. I basically followed this > > > >> guide:http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi... > > > >> but I guess it's kinda outdated. I also modifiedwifi.c as panic > > > >> suggested in the most recent comment (March 22, 2011). > > > > >> It just doesn't work. When trying to activate it I only get "Error". I > > > >> tried starting it manually but that doesn't work either. > > > > >> I can't even use logcat or netcfg because these program complain that > > > >> they don't have permission to open files. > > > > >> So, could someone help me out please? > > > > >> Thanks, > > > >> cyberworm > > > > > -- > > > > unsubscribe: [email protected] > > > > website:http://groups.google.com/group/android-porting -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
