WiFi

Al Johnson openmoko at mazikeen.demon.co.uk
Sat Jun 28 18:53:46 CEST 2008


I couldn't find any instructions on getting WiFi going on the Freerunner so I 
had a play. I now have a mostly-working setup with WPA-PSK :-) Any advice on 
going from mostly-working to working would be appreciated. Here's what I've 
done:

1. in /etc/network/interfaces add a line after the eth0 config so it reads:

iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf

2. Copy /etc/wpa_supplicant.conf from another machine that works using 
ndiswrapper. It looks something like this:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

network={
        ssid="your_ssid"
        scan_ssid=1
        bssid=your_bssid
        psk="your_passphrase"
        priority=1
        disabled=0
}

The wifi can now be controlled using 'ifup eth0' and 'ifdown eth0' - usually. 
As ever there a few flies in the ointment...

1. During ifup and ifdown I usually see this:
sed: unrecognized option `--quiet'
BusyBox v1.9.2 (2008-06-23 12:55:18 BST) multi-call binary

Usage: sed [-efinr] pattern [files...]

I don't know my way around the debian network control scripts well enough to 
find this sed call, but it should be easy enough to fix.

2. If the supplicant doesn't manage to associate with the AP during ifup then 
the dhcp client dies. Then on ifdown the pid file for the dhcp client isn't 
found, and the interface isn't brought down. 

3. Sometimes I get repeated authentication timeouts from the supplicant, and 
sometimes it just works. This may have nothing to do with the Freerunner as I 
have seen it occasionally with my laptop too (Gentoo, madwifi)

I'm using an Openmoko-openmoko-devel-image made with mokomakefile on 23/06

Also turning off the wifi using the power control menu doesn't seem to do 
anything.



More information about the device-owners mailing list