Wifi port issue (all works except the backend)

by brucelee » Sat, 19 Mar 2011 08:36:41 GMT

Sponsored Links
 hey, am having a small problem with porting wifi to a my device.

This is my config:

wifi.c (in libhardware_legacy)
    static const char IFACE_DIR[]           = "/data/misc/wifi/
    static const char SUPP_CONFIG_TEMPLATE[]= "/system/etc/wifi/
    static const char SUPP_CONFIG_FILE[]    = "/data/misc/wifi/


    mkdir /data/misc/wifi 0770 wifi wifi
    chmod 0770 /data/misc/wifi
    chmod 0660 /data/misc/wifi/wpa_supplicant.conf
    chown wifi wifi /data/misc/wifi/wpa_supplicant.conf

    mkdir /system/etc/wifi 0770 wifi wifi
    chmod 0770 /system/etc/wifi
    chmod 0660 /system/etc/wifi/wpa_supplicant.conf
    chown wifi wifi /system/etc/wifi/wpa_supplicant.conf

    # wpa_supplicant socket (unix socket mode)
    mkdir /data/misc/wifi/wpa_supplicant 0771 wifi wifi
    chmod 0771 /data/misc/wifi/wpa_supplicant
    chown wifi wifi /data/misc/wifi/wpa_supplicant

    service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -
ieth0 -c /system/etc/wifi/wpa_supplicant.conf
    group system wifi inet


- Wifi driver/module loads properly (wifi.c, dmesg, iwconfig say so)
- Logcat reports:
    WifiHW: Unable to open connection to supplicant on "eth0": No such
file or directory (~ 4 times then unloads wifi)
- Manually loading the driver/module and
    > running wpa_supplicant (as the service above) gives not errors &
proper logcat
        although it does make this dmesg entry:
            <4>[735, wpa_supplicant] [ 1479.081526] Enter
            <4>[735, wpa_supplicant] [ 1479.081567] Exited

    > running 'wpa_cli -p /data/misc/wifi/wpa_supplicant' gives
        Selected interface 'eth0'
        Could not connect to wpa_supplicant - re-trying
    and forever remains this way

    > running 'iwlist scan' works and shows wi-fi networks

My guess would be that my permissions are wrong, but i have been
double checking with 'ls -l' and they seem ok.
The wpa_supplimentary socket 'eth0' does get created so it exists.
My guess would be that the android wifi backend runs as a specific
user other than wifi!?


Other Threads

1. Chording

I did a search in this group and was surprised to find that no one has
discussed chording on the soft keyboard.  Chording, which as Google's
Erick Tseng puts it is a "Specific implementation in the UI that
use(s) multitouch."  It allows one finger to still have contact with
the screen and still allow a new character to be recognized when a
second finger makes contact with the soft keyboard.  If you are a hunt-
and-peck type or just new to software keyboards, this isn't such a big
issue.  The issue starts to become noticeable when one becomes
proficient enough in using the software keyboard and type quickly
enough that a finger or thumb is still in contact with the
softkeyboard when the next character in a sequence is touched by the
opposing finger.  And I have noticed there is a lag time after the
first soft key has been pressed that the second soft key in a sequence
will be recognized.

If there was any UI enhancement in android that I could make today,
this would be it.  I love everything else about this OS and the soft
keyboard in my opinion could use a little more work.I would pay for a
nice replacement keyboard that has this feature, but I have not seen
such a product on the market and it would be nice if this was included
by default.  If you are looking for a nice example of a chording
keyboard, (I know you are going to hate this comparison) you can check
out the iphone's soft keyboard.


2. <merge> with multiple ImageViews?

Anyone know if <merge>  works with multiple images:  header.xml =

<merge xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@+id/ImageView02" android:background="@drawable/imagex" 
<ImageView android:id="@+id/ImageView01" 

A constraint of <merge> is that it must be in the XML root tag, so we place the 
above in one file and then use <include> to import.

Another contraint is that it does not work with some Layouts like LinearLayout 
but the docs do state it works with FrameLayout


<FrameLayout android:id="@+id/FrameLayout01" android:layout_width="fill_parent" 
   <include android:layout_width="fill_parent" layout="@layout/header" />

Oddly enough this traps when displaying/running. Most examples are merging 
different types but not two images.

Any insight on this ???


3. Plans for Change (Was: Petition: Google, please improve the Android Market.)

4. App2sd partisi sdcard

5. Android developers in Houston

6. read phone state and "identity"?

7. anyone interested in ThumbEE port of Dalvik?