WiFi for dSS11-1GB hardware

For aizo-internal testing only. No user configuration possible yet.

Install the required software

opkg install task-wifi

Configuring the wifi device

Add the following to /etc/network/interfaces:

auto wlan0
iface wlan0 inet dhcp
#       wpa-driver wext   # use this for 3.0 / 2.6.32 kernel
        wpa-driver nl80211
        wpa-conf /etc/wpa_supplicant.conf
        udhcpc_opts "-t10" 

Note: MAC -> device name mapping is stored in /etc/udev/rules.d/70-persistent-net.rules.

Replace existing /etc/wpa_supplicant.conf with the following:

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="<network_name>" 
        psk="<password>" 
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        priority=5
}

Tested USB WiFi Adapters

Working

  • Edimax EW-7811Un
  • Linksys WUSB54GC
  • Buffalo WLI-UC-GN (not yet tested on this release)
  • ZyXEL NWD-271N
  • ZyXEL G-202
  • D-Link DWA-160 rev. A1/A2

Not working

  • Netgear WNDA3100v2 (not supported by Linux kernel driver)
  • ZyXEL NWD-211AN (scanning works, but not associating to AP)
  • D-Link DWA-160 rev. B2 (not supported in out current included driver)
 

Wifi alpha tests on dSS11 harwdare

Userspace tools

In order to configure the wireless devices, the following tools are needed:
  • libiw29_29-r5.5_armv5te.ipk
  • wireless-tools_29-r5.5_armv5te.ipk
  • wpa-supplicant_0.6.9-r6.1.5_armv5te.ipk
  • wpa-supplicant-passphrase_0.6.9-r6.1.5_armv5te.ipk

Currently, these are not available in the package repository, however there's recipes in the openembedded tree

Configuring the wifi device

/etc/network/interfaces
 auto wlan0
 iface wlan0 inet dhcp                                                    
       wpa-essid aizo_intern
       wpa-psk abcd

Note: replace the current entry for wlan0
Note2: MAC -> device name mapping is stored in /etc/udev/rules.d/70-persistent-net.rules

Fix Udev

For some reason unbeknownst to men, the device nodes for the SD card are not created anymore. Maybe going to a newer version of udev would fix this. For the time being, we just create it manually:

/etc/init.d/udev
  # create mmc /dev nodes
  mknod /dev/mmcblk0 b 179 0
  mknod /dev/mmcblk0p1 b 179 1

Note: right before the exit 0

Debug

Check if connection to the AP is working

# iw wlan0 link
Connected to 34:31:c4:66:e1:6d (on wlan0)
    SSID: FunnyNameHere
    freq: 2472
    RX: 486615 bytes (4072 packets)
    TX: 10761 bytes (36 packets)
    tx bitrate: 1.0 MBit/s
    bss flags:    short-preamble short-slot-time
    dtim period:    1
    beacon int:    100

Debug your wpa_supplicant setup (->Google)

Try to scan from command line:

# iw wlan0 scan
...  

Try to scan within wpa_supplicant

# wpa_cli scan_results
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
34:31:c4:66:e1:6d    2472    87    [WPA2-PSK-CCMP][ESS]    FunnyNameHere
...