LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   iwlist scanning sees the network, but dhclient can't connect (iwl3945 module issue) (https://www.linuxquestions.org/questions/linux-wireless-networking-41/iwlist-scanning-sees-the-network-but-dhclient-cant-connect-iwl3945-module-issue-656720/)

Cyberman 07-18-2008 04:36 PM

iwlist scanning sees the network; dhclient can't connect (iwl3945 nor ndiswrapper)
 
1. I can load the module: iwl3945
2. I can use iwlist scanning to see my wireless router
3. dhclient and network manager don't want to connect to the wireless router


update:

I tried the ndiswrapper route, and that did not work either. I used the XP/2000 32-bit drivers. So, something unusual is occuring.


Operating system: Debian Lenny via dist-upgrade
Kernel version: 2.6.25-2-686
Computer: Gateway T-6838

I have this new laptop I'm finger tapping, and I've been trying to get it to work with wireless. Supposedly it was yapping about firmware and the such, so I found some website that told me to install firmware.

website: http://fobiazone.wordpress.com/2008/05/12/debian-lenny/
Code:

apt-get install firmware-iwlwifi
That's the only thing I did from that site, because trying to manually install the newer firmware gave me make errors.

That helped a little, I guess. I previously had the module blacklisted cause it kept yapping while I was using the ttys. And when using w3m and having lines of text interfere... it's not cool.

here's what i've been up to...

universe:/home/workstation# modprobe iwl3945


NOTICE:

I also obtain the following information when using ndiswrapper instead of iwl3945.


universe:/home/workstation# ifconfig wlan0 up

universe:/home/workstation# ifconfig

Code:

eth0      Link encap:Ethernet  HWaddr ####################### 
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: ##################### Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:953 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1055 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:750261 (732.6 KiB)  TX bytes:178857 (174.6 KiB)
          Interrupt:220 Base address:0xe000

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:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1648 (1.6 KiB)  TX bytes:1648 (1.6 KiB)

wlan0    Link encap:Ethernet  HWaddr ###################
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3941 (3.8 KiB)  TX bytes:2004 (1.9 KiB)

wmaster0  Link encap:UNSPEC  HWaddr ################
          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)

universe:/home/workstation# iwlist scanning

Code:

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wmaster0  Interface doesn't support scanning.

wlan0    Scan completed :
          Cell 01 - Address: ##:##:##:##:##:##
                    ESSID:"fastermangrate-on-song"
                    Mode:Master
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=76/100  Signal level=-58 dBm  Noise level=-127 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                              12 Mb/s; 48 Mb/s
                    Extra:tsf=00000051a4c1557d

universe:/home/workstation# dhclient wlan0

Code:

There is already a pid file /var/run/dhclient.pid with pid 3239
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 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/wlan0/##:##:##:##:##:##
Sending on  LPF/wlan0/##:##:##:##:##:##
Sending on  Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

That is the story.
Network manager, too, can see the network but can't connect.

I don't know what's going on.

beadyallen 07-18-2008 05:35 PM

You haven't specified which station to connect to, you've only scanned to see what's around. Doing it from the command line, you'd do something like
Code:

iwconfig wlan0 mode managed essid fastermangrate-on-song channel 11
Assuming there's no encryption, that should probably associate with the AP. Then you can try dhclient again.

Cyberman 07-18-2008 05:39 PM

Quote:

Originally Posted by beadyallen (Post 3219351)
You haven't specified which station to connect to, you've only scanned to see what's around. Doing it from the command line, you'd do something like
Code:

iwconfig wlan0 mode managed essid fastermangrate-on-song channel 11
Assuming there's no encryption, that should probably associate with the AP. Then you can try dhclient again.

That did not work.

I figured it would not, because I think dhclient wlan0 pretty much says grab an access point and try to connect to it, thus me not needing to use iwconfig.

This is weird.

universe:/home/workstation# iwconfig wlan0 mode managed essid fastermangrate-on-song channel 11

universe:/home/workstation# dhclient wlan0

Code:

There is already a pid file /var/run/dhclient.pid with pid 8113
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/wlan0/##:##:##:##:##:##
Sending on  LPF/wlan0/##:##:##:##:##:##
Sending on  Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
No DHCPOFFERS received.



All times are GMT -5. The time now is 02:11 PM.