LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-07-2009, 07:39 PM   #1
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora, Raspbian, Ubuntu via Chrome/Crouton
Posts: 370

Rep: Reputation: 50
Cannot iwlist scan D-Link DWL-G630 pcmcia


I just got Debian Etch up on a antique Omnibook 800CT, with 166 MHz 586 and 16MB RAM I bootstrapped it up with its Xircom network card. Since the bios will boot only from the floppy or hard disk, I chose Debian because it had a network install from boot floppies. Really neat.

However, I am trying to turn this into a antique Netbook. I had a D-Link DWL-G630 version C2 pcmcia wireless card lying about. I have installed the madwifi drivers, and I can bring up the ath0 interface and talk to the card with ifconfig and iwconfig.

If I "iwlist ath0 scan", I get a no APs found message. Googling about, anyone who gets this far usually finds that they forgot to turn on the wireless card. This card just plugs in, there is no on/off as far as I can tell. I can set the essid, etc, with iwconfig, but have not been able to connect to my WEP home AP.

Any suggestions as to what to try next? The G630 box cites requirements of 300MHz processor car bus type II slot. Is this baby just too new for the old OB800?
 
Old 02-09-2009, 10:56 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
AFAIK you turn the card on by typing "ifconfig ath up". After that iwconfig should show info. If not, try "iwconfig ath0 essid any" to get some action.
Dug up an old backup from a sarge install on a fujitsu biblo and DWL-G650.
This is what I used to wake up the card and connect:
Quote:
#!/bin/sh
ifconfig ath0 up
/usr/local/sbin/wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -Bw
ifup ath0
wpa_supplicant.conf:
Quote:
#ap_scan=2
network={
ssid="myessid"
psk=40<snipped>539
key_mgmt=WPA-PSK
}
/etc/network/interfaces was simply:
Quote:
auto lo
iface lo inet loopback

auto ath0
iface ath0 inet dhcp
I seem to have used madwifi-0.9.2 and wpa_supplicant-0.4.9. IIRC other combinations simply didn't work for me. Perhaps just try another version of madwifi.
 
Old 02-09-2009, 03:34 PM   #3
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora, Raspbian, Ubuntu via Chrome/Crouton
Posts: 370

Original Poster
Rep: Reputation: 50
Changed /etc/network/interfaces and to your recommendation.

ifconfig ath0 up cause the DWL-G630 LEDs to toggle back and forth.

iwconfig ath0 essid any does not appear to do anything. iwlist ath0 scan still yields
Code:
ath0    No scan results.
Maybe if I give up on scanning and try to set the wpa_supplicant directly. I use WEP, yes I know it is not that secure, but I have some older network cameras that do not handle WPA. How would I set up wpa_supplicant.conf to connect to my WEP ap? This is what I have today (and does not work)

Code:
ctrl_interface=/var/run/wpa_supplicant
network={
         ssid="WaldenPond"
         key_mgmt=WEP40
         wep_key0=67ABCDetc
         wep_tx_keyidx=0
}
Here is what happens

Code:
walden6# ifconfig ath0 up
walden6# /usr/local/sbin/wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -Bw
walden6# ifup ath0
<copyright stuff>
wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:13:46:13:13:d1
Sending on   LPF/ath0/00:13:46:13:13:d1
Sending on   Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistant database - sleeping
 
Old 02-09-2009, 04:15 PM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I don't think you can wpasupplicant like that for wep. If you want to use it, try with:
Quote:
network={
ssid="Your ESSID"
key_mgmt=NONE
wep_key0=Your WEP key
}
You shouldn't need wpasupplicant at all. You can try with just:
iwconfig wlan0 essid networkessid key sassword
The "s:" part should be used only with an ascii string.
http://madwifi.org/Install-HOWTO/WL/WEP-Key-HOWTO.txt
 
Old 02-10-2009, 03:44 PM   #5
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora, Raspbian, Ubuntu via Chrome/Crouton
Posts: 370

Original Poster
Rep: Reputation: 50
Quote:
You shouldn't need wpasupplicant at all. You can try with just:
iwconfig wlan0 essid networkessid key s: password
The "s:" part should be used only with an ascii string.
http://madwifi.org/Install-HOWTO/WL/WEP-Key-HOWTO.txt
I tried your suggestion when just to iwconfig and had no better success. I even tried no security on my home wlan.

I know the pcmcia card works, as I can easily get it to work in a Windows laptop. My guess is that this old 800CT is just not hardware compatible with it. After all, the 800CT came out years before WiFi cards were around.

Just in case you spot anything, here are some more log files.

dmesg:
Code:
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.3)
ath_rate_sample: 1.2 (0.9.3)
ath_pci: 0.9.4.5 (0.9.3)
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 7.8 phy 4.5 radio 5.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x12000000, irq=11
Adding 224868k swap on /dev/hda5.  Priority:-1 extents:1 across:224868k
EXT3 FS on hda1, internal journal
loop: loaded (max 8 devices)
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com
pcmcia: Detected deprecated PCMCIA ioctl usage from process: discover.
pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ath0: no IPv6 routers present
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver
ath0: no IPv6 routers present
iwlist ath0 key >log (key obscured)
Code:
ath0      3 key sizes : 40, 104, 128bits
          4 keys available :
		[1]: XXXX-XXXX-XX (40 bits)
		[2]: off
		[3]: off
		[4]: off
          Current Transmit Key: [1]
          Security mode:restricted
          Authentication capabilities :
		WPA
		WPA2
		CIPHER TKIP
		CIPHER CCMP
          Current key_mgmt:0x3
          Current cipher_pairwise:0x10
          Current cipher_group:0x4
ifup log
Code:
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:13:46:13:13:d1
Sending on   LPF/ath0/00:13:46:13:13:d1
Sending on   Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
 
Old 02-10-2009, 06:31 PM   #6
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
What is the output of ifconfig and iwconfig?

Also post your /etc/network/interfaces

If networkmanager is running, it will conflict with the /etc/network/interfaces settings, so you need to pick one method or the other. Most people get rid of networkmanager.
 
Old 02-11-2009, 12:45 PM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I don't see anything fishy in the outputs. Either stop networkmanager like pentode said, try an older version of madwifi or both.
 
Old 02-11-2009, 04:16 PM   #8
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora, Raspbian, Ubuntu via Chrome/Crouton
Posts: 370

Original Poster
Rep: Reputation: 50
I turned off networkmanager, long before the original post, as it always came up blank with access points (the scan does not work). So all the above is now just raw if* and iw* utilities and I still cannot scan or make a direct connection.

I will post the interfaces as pentode requested when I get back to it shortly.

I'll see if I can go back a revision in madwifi, too. However, I'm about ready to give up. I am thinking the card will just not work with the old 800CT pcmcia interface.

Last edited by pwalden; 02-11-2009 at 04:17 PM.
 
Old 02-28-2009, 09:26 PM   #9
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora, Raspbian, Ubuntu via Chrome/Crouton
Posts: 370

Original Poster
Rep: Reputation: 50
I was attacking this somemore. I read that these wifi cards need firmware in /lib/firmware. This directory is empty on my machine.

Is there somewhere I can get firmware for this card? I tried googling, but no leads.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DWL-G630 PCMCIA only works sometimes in Hardy MitraMai Linux - Wireless Networking 0 05-21-2008 03:15 AM
D-Link DWL-G630 v. C2 can't connect to AP PhoenixofMT Linux - Wireless Networking 2 05-27-2006 10:25 PM
D-link DWL-G630 everyonebleeds SUSE / openSUSE 4 04-20-2006 07:35 AM
D-Link DWL-G630 with only Knoppix lowlifeish Linux - Wireless Networking 6 10-09-2005 12:44 AM
Mandriva Drivers for a DWL-G630 PCMCIA bb002 Mandriva 1 08-16-2005 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration