Hi,
I am trying to set up a wireless card for a friend. It is a sweex lw051 wireless mini pci card for laptop. I have been playing around with it for a couple of days now and I just can't seem to get it to work with WPA. I have set a couple of cards up before on linux and none were straight forward. I have wpa_supplicant working on one card so I am sure that is correct. One card that I set up had two interfaces in ifconfig, and didn't work, then somehow removing and inserting the driver, and turning my back and one dissapeared and it worked - but I don't know how. All cards have been a different chipset.
I googled and found the chipset is atheros, so that is the mad-wifi driver. I am on debian so it wasn't too hard to find a how to and apt-get everything that was needed. The card seems to be working, although I am not sure properly. I am using wpa_supplicant to connect to the router. I have setup wpa_supplicant.conf, and started wpa_supplicant with
Code:
wpa_supplicant -i ath0 -c /etc/wpa_supplicant/wpa_supplicant.conf
By the way
Code:
# uname -a
Linux brick 2.6.18-6-686 #1 SMP Sun Feb 10 22:11:31 UTC 2008 i686 GNU/Linux
Any pointers would be greatly appreciated.
David Collins
Here are the relevant outputs:
dmesg, after the card was inserted
Code:
# dmesg
.
.
.
cs: pcmcia_socket0: unable to apply power.
pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
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
eth0: no IPv6 routers present
ath0: no IPv6 routers present
ifconfig, eth0 and lo removed
Code:
# ifconfig
ath0 Link encap:Ethernet HWaddr 00:16:0A:0A:DB:89
inet6 addr: fe80::216:aff:fe0a:db89/64 Scope:Link
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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Link encap:UNSPEC HWaddr 00-16-0A-0A-DB-89-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3055 errors:0 dropped:0 overruns:0 frame:46530
TX packets:2433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:323001 (315.4 KiB) TX bytes:111918 (109.2 KiB)
Interrupt:11
dhclient
Code:
# dhclient ath0
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:16:0a:0a:db:89
Sending on LPF/ath0/00:16:0a:0a:db:89
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 12
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.