PDA

View Full Version : NdisWrapper & 10-digit 64-bit WEP


Monster_user
April 17th, 2006, 08:01 PM
I am currently having some problems getting my USB wifi stick to work in Ubuntu 6.06. It is detected by ndiswrapper, lights up, and gets an IP. That is as far as I get though. I've searched the forums, and Ubuntu Wiki, but could not find anything to help with this problem.

I installed Flight 5, and I just told Synaptic to install ALL updates, and ndiswrapper. I rebooted, and installed ndisgtk, and gnetswtich. To try and get this thing to work.

I think the problem is be the WEP key. I cannot figure out how to set it. Which is why I installed gnetswitch. I currently have a slow net connection, so I would prefer not to have to install any of the KDE WiFi tools. I have not installed anything KDE.

The base station is a Netgear (54mpbs WGR614 v5) wireless router, my adapter is a TrendNet TEW-424UB USB 802.11G, sis163u version.

The TEW-424UB works fine in Windows 2000, except that I had to use the "wrong" Hex key. I also have to use the "wrong" password to login to the router, but that is not a problem with Ubuntu. By wrong, it appears that the layouts may be incorrect. The passwords end in 4465. I can login fine in Ubuntu via LAN/eth0, However, in Windows 2000 I have to use 2265 (LAN). ???

I'm using the drivers off of the CD for both. I am trying to download the updated drives, but the connection keeps getting dropped.

sudo ifup wlan0
Password:
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/wlan0/00:40:f4:f1:94:7c
Sending on LPF/wlan0/00:40:f4:f1:94:7c
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
ip length 314 disagrees with bytes received 534.
accepting packet with data after udp payload.
DHCPOFFER from 192.168.1.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
ip length 314 disagrees with bytes received 534.
accepting packet with data after udp payload.
DHCPACK from 192.168.1.1
bound to 192.168.1.4 -- renewal in 37544 seconds.

wlan0 IEEE 802.11FH ESSID:"NETGEAR" Nickname:"mstrpc"
Mode:Managed Frequency:2.462 GHz Access Point: 00:90:4C:7E:00:29
Bit Rate=54 Mb/s Tx-Power:17 dBm Sensitivity=0/3
RTS thr=2312 B Fragment thr=2312 B
Power Management:off
Link Quality:100/100 Signal level:-41 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:258 Invalid misc:12264 Missed beacon:0

Here is my '/etc/network/interfaces'.
iface lo inet loopback

iface eth0 inet dhcp

iface wlan0 inet dhcp
wireless-essid NETGEAR
wireless-key xxxxxx4465
wireless_channel 11
wireless_mode managed

As you can see, it is getting an IP. So the drivers do work. So how do I configure a 10-digit WEP key.

joffe
April 17th, 2006, 08:21 PM
First of all I would try to get it working by manually setting the key:
sudo iwconfig wlan0 key xxxxxx4465
and go from there...

Edit: Snipped from the iwconfig man page:

To set the current encryption key, just enter the key in hex
digits as XXXX-XXXX-XXXX-XXXX or XXXXXXXX. You can also
enter the key as an ASCII string by using the s: prefix.

Examples :
iwconfig eth0 key 0123-4567-89
iwconfig eth0 key s:password

Monster_user
April 17th, 2006, 08:54 PM
No effect. The light on the USB adapter just will not stop blinking. Nor can I connect to any PC.