No DHCPDISCOVER on Debian with a WL-167G device

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4834

cohe69

06-06-2008 23:33:05

Hello,

I decided to remove my Debian Etch (waith a WL-167G which was running fine) to make a clean install of Debian Lenny.
I tried to install it on my new Debian but I can't manage to get any wifi connection.

Here's how I installed the USB device
[code1tp3dozd]Havoc:~# aptitude install rt2500-source
Havoc:~# module-assistant prepare
Havoc:~# module-assistant auto-install rt2500-source
Havoc:~# ifconfig wlan1 up[/code1tp3dozd]

All of this gave me no error
[code1tp3dozd]Havoc:~# ifconfig
eth0 [...]

lo [...]

wlan1 Link encap:Ethernet HWaddr [MAC_ADDRESS]
adr inet6: [MAC_ADDRESS]/64 Scope:Lien
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 lg file transmission:1000
RX bytes:822 (822.0 B) TX bytes:780 (780.0 B)[/code1tp3dozd]

Then, I tried to get the network
[code1tp3dozd]Havoc:~# dhclient wlan1
Internet Systems Consortium DHCP Client V3.1.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan1/[MAC_ADDRESS]
Sending on LPF/wlan1/[MAC_ADDRESS]
Sending on Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.[/code1tp3dozd]

My kernel is a 2.6.24-1-486 and the USB device is correctly found
[code1tp3dozd]Havoc:~# lsusb
Bus 003 Device 002: ID 0b05:1706 ASUSTek Computer, Inc. WL-167G 802.11g Adapter [ralink]
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Havoc:~# lsmod |grep rt2
rt2500usb 22528 0
rt2x00usb 11264 1 rt2500usb
rt2x00lib 19968 2 rt2500usb,rt2x00usb
rfkill 7184 1 rt2x00lib
input_polldev 5000 1 rt2x00lib
mac80211 112780 2 rt2x00usb,rt2x00lib
firmware_class 9088 2 rt2x00lib,bttv
rt2570 168000 0
crc_itu_t 2176 2 rt2x00lib,firewire_core
usbcore 131436 6 rt2500usb,rt2x00usb,rt2570,ehci_hcd,ohci_hcd[/code1tp3dozd]

I've tried the WL-167G on a Windows XP computer some minutes ago and it works perfectly.

Does anyone have an idea of what I could check to make it work, please ?

Thanks

Vern

07-06-2008 01:02:08

Hi cohe69,

Re the output of your lsmod command

rt2500usb is the nextgen driver. rt2570 is the legacy driver. They conflict. You need to remove one or the other.

Good luck.

cohe69

07-06-2008 12:21:03

Hi,

As I couldn't get a DHCP lease, I had also tried the manual method compiling the rt2570 from the CVS. And the lsmod above has been taken after its installation (I should have mentionned this).

I've now removed the rt2570 and blacklisted it in modprobe to be sure.
[code10d51e2x]Havoc:~# lsmod | grep rt2
rt2500usb 22528 0
rt2x00usb 11264 1 rt2500usb
rt2x00lib 19968 2 rt2500usb,rt2x00usb
firmware_class 9088 2 bttv,rt2x00lib
rfkill 7184 1 rt2x00lib
input_polldev 5000 1 rt2x00lib
mac80211 112780 2 rt2x00usb,rt2x00lib
crc_itu_t 2176 2 rt2x00lib,firewire_core
usbcore 131436 5 rt2500usb,rt2x00usb,ehci_hcd,ohci_hcd[/code10d51e2x]
[code10d51e2x]Havoc:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

wmaster0 no wireless extensions.

wlan1 IEEE 802.11g ESSID:""
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key:off
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[/code10d51e2x]
[code10d51e2x]Havoc:~# ifconfig wlan1 up
Havoc:~# dhclient wlan1
Internet Systems Consortium DHCP Client V3.1.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan1/[MAC_ADDRESS]
Sending on LPF/wlan1/[MAC_ADDRESS]
Sending on Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.[/code10d51e2x]

I've read that wmaster0 may be caused by a bad driver. So I tried the inverse remove the rt2500usb and use the rt2570.
[code10d51e2x]Havoc:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

wlan1 RT2500USB WLAN ESSID:"WiFi_28" Nickname:""
Mode:Managed Frequency=2.412 GHz Bit Rate=11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-69 dBm Noise level:-81 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0[/code10d51e2x]
[code10d51e2x]Havoc:~# dhclient wlan1
Internet Systems Consortium DHCP Client V3.1.0
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan1/[MAC_ADDRESS]
Sending on LPF/wlan1/[MAC_ADDRESS]
Sending on Socket/fallback
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.[/code10d51e2x]

No more wmaster0 error, but still no DHCP offer (

I don't use WEP/WPA, the policy is the default ACCEPT, the WL-167G and the modem are both okay under Windows...
I didn't set the frequency myself. Do I have to modify it or is the default one set by the installation ok ?

Thanks

IvD

07-06-2008 12:32:31

The reason for the rt2500usb DHCP failure is simple You never indicated to what AP it should connect, so it doesn't do anything. You should setup wpa_supplicant or Network manager to automatically associate to the correct network or use iwconfig manually.

cohe69

07-06-2008 15:12:40

Really ?

I've never done that before when I had a Debian Etch and it was working ?

As I don't use WPA, I suppose wpa_supplicant is not for me. And I don't have a GUI so no Network Manager.

[code19ufzwlt]Havoc:~# iwconfig wlan1 essid WiFi_28 channel 1 ap 00:12:BF:F8:F5:28 nick rausb0
Havoc:~# iwconfig wlan1
wlan1 RT2500USB WLAN ESSID:"WiFi_28" Nickname:"rausb0"
Mode:Managed Frequency=2.412 GHz Bit Rate:11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-72 dBm Noise level:-81 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0[/code19ufzwlt]

Is there something else I have to configure to be able to perform a dhclient, please?

Thanks

[edit]I can see my wifi network with a "iwlist wlan1 scanning" and the access point with "iwlist wlan1 accesspoints"[/edit]

IvD

07-06-2008 15:38:03


As I don't use WPA, I suppose wpa_supplicant is not for me. And I don't have a GUI so no Network Manager.
[/quote2l19hldn]

wpa_supplicant is not only for WPA. It is a userspace application which will correctly associate
to any network it is configured for based on scanning results.


[code2l19hldn]Havoc:~# iwconfig wlan1 essid WiFi_28 channel 1 ap 00:12:BF:F8:F5:28 nick rausb0
Havoc:~# iwconfig wlan1
wlan1 RT2500USB WLAN ESSID:"WiFi_28" Nickname:"rausb0"
Mode:Managed Frequency=2.412 GHz Bit Rate:11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-72 dBm Noise level:-81 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0[/code2l19hldn]

Is there something else I have to configure to be able to perform a dhclient, please?

Thanks

[edit]I can see my wifi network with a "iwlist wlan1 scanning" and the access point with "iwlist wlan1 accesspoints"[/edit][/quote2l19hldn]

I can't say much about the legacy driver which you are using now (and the legacy driver doesn't mandate the 'iwconfig ap' command like the in-kernel rt2x00 driver).
You best enable debug output and post the debug output.