Posted by: isaraffee | August 29, 2009

How to Configure Wifi USB in Ubuntu Feisty Fawn

How to Configure Wifi USB in Ubuntu Feisty Fawn

My WIfi USB uses module rt73usb. The previous module, gl620a gave me problems.

The lsmod also shows that the problematic modue gl620a was also loaded at boot time.

Note:

To remove the module, you can also use modprobe -r <modules-name>

But this is not permanent, as it will load it again when reboot.

To permanent prevent it from being loaded at boot time, you have to blacklist the module.

If your module gave problems, you need to blacklist them by putting them in the blacklist file, /etc/modprobe.d/blacklist. Put it at the end of the file e.g.

blacklist gl620a

Reboot your system and after reboot, check that the unwanted usb driver is not loaded by typing the command lsmod. You may want to grep for usb e.g.

rt2500usb 22016 0

rt73usb 25344 0

rt2x00usb 12032 2 rt2500usb,rt73usb

rt2x00lib 19584 3 rt2500usb,rt73usb,rt2x00usb

mac80211 171016 3 rc80211_simple,rt2x00usb,rt2x00lib

usbcore 138760 5 rt2500usb,rt73usb,rt2x00usb,uhci_hcd

Yes the module gl620a is not loaded!

Plug in your wireless USB device

Run iwconfig. You should see:

root@ismailrocks:/etc/modprobe.d# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:”gateway1″

Mode:Managed Frequency:2.462 GHz Access Point: 00:1E:10:09:8D:58

Retry min limit:7 RTS thr:off Fragment thr=2346 B

Encryption key:676F-7469-74

Link Signal level=-64 dBm

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:0 Missed beacon:0

It reported essid is defined and the signal strength recorded some readings( in dB). When you see such output , you are good to go and brose the Internet.You may want to check the output of the following commands:

root@ismailrocks:~# lsusb

Bus 002 Device 002: ID 05e3:0502 Genesys Logic, Inc. GL620USB GeneLink USB-USB Bridge

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 002: ID 148f:2573 Ralink Technology, Corp.

Bus 001 Device 001: ID 0000:0000

root@ismailrocks:~# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:”gateway1″

Mode:Managed Frequency:2.462 GHz Access Point: 00:1E:10:09:8D:58

Retry min limit:7 RTS thr:off Fragment thr=2346 B

Encryption key:676F-7469-74

Link Quality:0 Signal level:0 Noise level:0

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@ismailrocks:~# more /etc/network/interfaces

auto lo

iface lo inet loopback

auto wlan0

iface wlan0 inet dhcp

#iface wlan0 inet static

#address 192.168.1.101

#netmask 255.255.255.0

wireless-key s:gotit

wireless-essid gateway1

root@ismailrocks:~# more /etc/resolv.conf

nameserver 192.168.1.1

root@ismailrocks:~# ip route show

192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.102

169.254.0.0/16 dev wlan0 scope link metric 1000

default via 192.168.1.1 dev wlan0 metric 100

root@ismailrocks:~# ip route list

192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.102

169.254.0.0/16 dev wlan0 scope link metric 1000

default via 192.168.1.1 dev wlan0 metric 100

root@ismailrocks:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:E0:7D:A1:06:D7

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:11 Base address:0x6000

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:8 errors:0 dropped:0 overruns:0 frame:0

TX packets:8 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:470 (470.0 b) TX bytes:470 (470.0 b)

wlan0 Link encap:Ethernet HWaddr 00:19:E0:18:6F:D8

inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::219:e0ff:fe18:6fd8/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:4 errors:0 dropped:0 overruns:0 frame:0

TX packets:27 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:1082 (1.0 KB) TX bytes:4453 (4.3 KB)

wmaster0 Link encap:UNSPEC HWaddr 00-19-E0-18-6F-D8-00-00-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Configuring the /etc/netwok/interface file

Check that your configuration file looks like this:

root@ismailrocks:/etc# more /etc/network/interfaces

auto lo

iface lo inet loopback

Yep that’s all. I have tried putting many entries like static ip and dhcp, but failed to get the wireless usb to work. In the end, I think what makes it work when I use the network settings and it automatically wrote the configuration file, which is a 2 liner!

Configuring Network Settings

Insert screenshots

Make sure you check the roaming checkbox

Also enter your modem router IP address e.g. in my case it is 192.168.1.1

Looking at ifconfig

root@ismailrocks:/etc/modprobe.d# ifconfig

eth0 Link encap:Ethernet HWaddr 00:E0:7D:A1:06:D7

UP BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:11 Base address:0x6000

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:59 errors:0 dropped:0 overruns:0 frame:0

TX packets:59 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:5640 (5.5 KB) TX bytes:5640 (5.5 KB)

wlan0 Link encap:Ethernet HWaddr 00:19:E0:18:6F:D8

inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::219:e0ff:fe18:6fd8/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:1261 errors:0 dropped:0 overruns:0 frame:0

TX packets:103 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:120369 (117.5 KB) TX bytes:14489 (14.1 KB)

wmaster0 Link encap:UNSPEC HWaddr 00-19-E0-18-6F-D8-00-00-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@ismailrocks:~# more /etc/network/interfaces

auto lo

iface lo inet loopback

#rt73 wireless network using static ip

#iface wlan0 inet static

#pre-up ifconfig wlan0 up

#wireless-essid gateway1

#wireless-key s:gotit

#address 192.168.1.107

#netmask 255.255.255.0

#network 192.168.1.0

#broadcast 192.168.255.255

#gateway 192.168.1.1

#auto wlan0

But I am Baffled!

What makes it work is I think the following

I did make many settings to the /etc/network/interface file and after each restarting of the network script via /etc/init.d/./networking restart , still did not manage to make wlan0 ready and working

.

So I tried the network settings way and I think that make it work.

In the network settings, Itried to put the static ip address and the essid name, password for the WEP 64 bit. But after putting all these, the system recognizes WPA instead of the WEP, and the static addres is not use, but it use other IP address ( I configured the IP address to 192.168.1.110 but the system assigned 192.168.1.102) as shown below:

wlan0 Link encap:Ethernet HWaddr 00:19:E0:18:6F:D8

inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::219:e0ff:fe18:6fd8/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:1825 errors:0 dropped:0 overruns:0 frame:0

TX packets:103 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:155255 (151.6 KB) TX bytes:14489 (14.1 KB)

When the wireless USB device works, the /var/log/messages look like these:

Mar 10 10:13:15 ismailrocks kernel: [ 664.420000] ADDRCONF(NETDEV_UP): wlan0: link is not ready

Mar 10 10:16:30 ismailrocks kernel: [ 858.996000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Mar 10 10:20:04 ismailrocks kernel: [ 1072.884000] ADDRCONF(NETDEV_UP): wlan0: link is not ready

Mar 10 10:20:14 ismailrocks dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.reason

Mar 10 10:20:16 ismailrocks kernel: [ 1085.580000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Mar 10 10:20:17 ismailrocks kernel: [ 1086.524000] wlan0: duplicate address detected!

Mar 10 10:20:23 ismailrocks dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.host_name

Mar 10 10:20:23 ismailrocks dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.domain_name

Mar 10 10:20:23 ismailrocks dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_domain

Mar 10 10:20:23 ismailrocks dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_servers

Mar 10 10:20:25 ismailrocks kernel: [ 1093.824000] wlan0: duplicate address detected!

Anyway I did managed to connect to the Internet for a while. But after a few minutes, about less than 5 minutes, my Internet connection was disconnected. I recorded the syslog messages:

Aug 20 10:15:28 ismailrocks kernel: [ 548.120000] phy0 -> rt2x00usb_vendor_request: Error – Vendor Request 0x07 failed for offset 0x308c with error -110.

Aug 20 10:15:28 ismailrocks kernel: [ 548.220000] phy0 -> rt2x00usb_vendor_request: Error – Vendor Request 0x07 failed for offset 0x308c with error -110.

Aug 20 10:15:28 ismailrocks kernel: [ 548.320000] phy0 -> rt2x00usb_vendor_request: Error – Vendor Request 0x07 failed for offset 0x308c with error -110.

Aug 20 10:15:28 ismailrocks kernel: [ 548.420000] phy0 -> rt2x00usb_vendor_request: Error – Vendor Request 0x07 failed for offset 0x308c with error -110.

I  found that other users also faced the same problem.Some of them said that this is due to a bug in the rt73usb module running in Gutsy. Some users recommended a freah installation of Ubuntu. Well I guess I just make a backup of my important data on this machine, and install the latest Ubuntu.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

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

Categories

%d bloggers like this: