zd1211rw driver on Ubuntu 7.04

The PCi USB Wireless dongle GW-US54Mini is working prefectly under Ubuntu 7.04. However, it is only 11Mb/s (i.e. IEEE 802.11b). The dongle is b/g enabled.

I changed the script at “/etc/network/if-pre-up.d/wireless-tools”.

sudo nano /etc/network/if-pre-up.d/wireless-tools

I added the following (red in colour) to the script :

#!/bin/sh

IWCONFIG=/sbin/iwconfig
IFCONFIG=/sbin/ifconfig

if [ ! -x $IWCONFIG ]; then
exit 0
fi

if [ -x $IWCONFIG ]; then
$IWCONFIG “$IFACE” rate 54M auto
fi

if [ -x $IFCONFIG ]; then
$IFCONFIG “$IFACE” up
fi

if [ -n “$IF_WIRELESS_SENS” ]; then
$IWCONFIG “$IFACE” sens $IF_WIRELESS_SENS
fi

if [ -n “$IF_WIRELESS_MODE” ]; then
$IWCONFIG “$IFACE” mode $IF_WIRELESS_MODE
fi

if [ -n “$IF_WIRELESS_AP” ]; then
$IWCONFIG “$IFACE” ap $IF_WIRELESS_AP
fi

if [ -n “$IF_WIRELESS_RATE” ]; then
$IWCONFIG “$IFACE” rate $IF_WIRELESS_RATE
fi

if [ -n “$IF_WIRELESS_RTS” ]; then
$IWCONFIG “$IFACE” rts $IF_WIRELESS_RTS
fi

if [ -n “$IF_WIRELESS_FRAG” ]; then
$IWCONFIG “$IFACE” frag $IF_WIRELESS_FRAG
fi

if [ -n “$IF_WIRELESS_POWER” ]; then
$IWCONFIG “$IFACE” power $IF_WIRELESS_POWER
fi

if [ -n “$IF_WIRELESS_POWERPERIOD” ]; then
$IWCONFIG “$IFACE” power period $IF_WIRELESS_POWERPERIOD
fi

if [ -n “$IF_WIRELESS_POWERTIMEOUT” ]; then
$IWCONFIG “$IFACE” power timeout $IF_WIRELESS_POWERTIMEOUT
fi

if [ -n “$IF_WIRELESS_TXPOWER” ]; then
$IWCONFIG “$IFACE” txpower $IF_WIRELESS_TXPOWER
fi

if [ -n “$IF_WIRELESS_RETRY” ]; then
$IWCONFIG “$IFACE” retry $IF_WIRELESS_RETRY
fi

if [ -n “$IF_WIRELESS_ENC” ]; then
eval $IWCONFIG “$IFACE” enc $IF_WIRELESS_ENC
fi

if [ -n “$IF_WIRELESS_KEY” ]; then
eval $IWCONFIG “$IFACE” key $IF_WIRELESS_KEY
fi

if [ -n “$IF_WIRELESS_KEY1” ]; then
$IWCONFIG “$IFACE” key [1] “$IF_WIRELESS_KEY1”
fi

if [ -n “$IF_WIRELESS_KEY2” ]; then
$IWCONFIG “$IFACE” key [2] “$IF_WIRELESS_KEY2”
fi

if [ -n “$IF_WIRELESS_KEY3” ]; then
$IWCONFIG “$IFACE” key [3] “$IF_WIRELESS_KEY3”
fi

if [ -n “$IF_WIRELESS_KEY4” ]; then
$IWCONFIG “$IFACE” key [4] “$IF_WIRELESS_KEY4”
fi

if [ -n “$IF_WIRELESS_DEFAULTKEY” ]; then
$IWCONFIG “$IFACE” key [“$IF_WIRELESS_DEFAULTKEY”]
fi

if [ -n “$IF_WIRELESS_KEYMODE” ]; then
$IWCONFIG “$IFACE” key “$IF_WIRELESS_KEYMODE”
fi

if [ -n “$IF_WIRELESS_FREQ” ]; then
$IWCONFIG “$IFACE” freq $IF_WIRELESS_FREQ
fi

if [ -n “$IF_WIRELESS_CHANNEL” ]; then
$IWCONFIG “$IFACE” channel $IF_WIRELESS_CHANNEL
fi

if [ -n “$IF_WIRELESS_NICK” ]; then
$IWCONFIG “$IFACE” nick “$IF_WIRELESS_NICK”
fi

if [ -n “$IF_WIRELESS_NWID” ]; then
$IWCONFIG “$IFACE” nwid “$IF_WIRELESS_NWID”
fi

if [ -n “$IF_WIRELESS_ESSID” ]; then
$IWCONFIG “$IFACE” essid “$IF_WIRELESS_ESSID”
fi

if [ -n “$IF_WIRELESS_COMMIT” ]; then
$IWCONFIG “$IFACE” commit
fi

I then reboot the system, now the wireless is on 54Mb/s (i.e. IEEE 802.11g).

I am quite more happy with my IBM T23 now.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: