Saturday, September 5, 2009

WUSB54GC wireless USB stick (usb1737,77)

In order to get wireless working I tried several things, so far not successful.
According to other bloggers I have a new version based on Ralink RT3090
Information I gathered so far:

To find out which usb devices are connected run as root:
# echo ::prtusb | mdb -k
INDEX DRIVER INST NODE VID.PID PRODUCT
1 ehci 0 pci1043,82e2 0000.0000 No Product String
2 ehci 1 pci1043,82e2 0000.0000 No Product String
3 ohci 0 pci1043,82e2 0000.0000 No Product String
4 ohci 1 pci1043,82e2 0000.0000 No Product String
5 usb_mid 0 device 413c.2003 DELL USB Keyboard
6 hid 2 mouse 046d.c03d USB-PS/2 Optical Mouse
7 usb_mid 1 device 1737.0077 802.11 g WLAN

> 7 usb_mid 1 device 1737.0077 802.11 g wlan
Hmm, this device is new version, which is a Ralink 3090 chipset,


#modinfo
#devfsadm -i
#dmesg | grep Ralink

SUNWural
Package SUNWural didn't work so I removed package
SUNWrum
Also tried with SUNWrum package (rum driver) but no.
# update_drv -a -i "usb1737,77" rum
# ifconfig rum0 plumb

From Ubuntu Forum: Problem solved! idea
I have to rename /etc/Wireless/RT3090STA to /etc/Wireless/RT2860STA
Although it is a RT3090 driver, it uses RT2860 as its internal reference. confused2
Anyway, I can connect to the Internet with no problem now.

#iwconfig to configure it

nwam will configure interface automatically (NetWork Auto Magic = Standard on opensolaris)
Note that in auto-magic mode, there is a limitation that only one link is active at a time. This mode is thus not recommended for machines which use more than one link at once. For machines with wired and wireless links, wired is preferred by default, although this can be adjusted by altering the order of the lines in the plain text file /etc/nwam/llp. Note, however, that this interface is Volatile and may change in a future release.

===============================================
By hand:

export PAGER='less'
man dladm

cat > /tmp/mykey
mykey123
^D (Ctrl + D / EOF)

create-secobj -c wpa -f /tmp/mykey mykey
scan-wifi
connect-wifi -e myap -s wpa -a open -m g -k mykey
dladm show-wifi
dladm disconnect-wifi
==================================================
# Linksys WUSB54GC
DEVICE=wlan0
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
TYPE=Wireless
USERCTL=yes
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.4
GATEWAY=192.168.1.254
ESSID=xxx
CHANNEL=1
MODE=Master

And my wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1

network={
ssid="xxx"
bssid=xx:xx:xx:xx:xx:xx
mode=0
key_mgmt=WPA-PSK
proto=WPA
auth_alg=OPEN
pairwise=TKIP
psk="xxx"
}