Strona 1 z 1

[+] Atheros 5007eg - AP i połączenie przez WEP

: 10 grudnia 2008, 19:31
autor: kieliszek
Witam,
postanowiłem zainstalować sobie kartę bezprzewodową w swoim laptopie. Moja karta to wymieniony w temacie atheros. Kartę zainstalowałem przez MadWifi:
dmesg:

Kod: Zaznacz cały

debian:/home/zbyszek# dmesg | grep ath
[   11.125748] ath_hal: module license 'Proprietary' taints kernel.
[   11.764800] MadWifi: ath_attach: Switching rfkill capability off.
[   11.800808] ath_pci: wifi0: Atheros 5424/2424: mem=0xd0400000, irq=19
[   11.816806] udev: renamed network interface ath0 to wlan0
lspci:

Kod: Zaznacz cały

debian:/home/zbyszek# lspci | grep Atheros
05:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
iwconfig:

Kod: Zaznacz cały

debian:/home/zbyszek# iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"XXX"  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1  
          Retry :o ff   RTS thr :o ff   Fragment thr :o ff
          Encryption key :o ff
          Power Management :o ff
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
iwlist daje to:

Kod: Zaznacz cały

debian:/home/zbyszek# iwlist wlan0 scanning essid XXX
wlan0     Scan completed :
          Cell 01 - Address: 00:30:4F:36:B6:EC
                    ESSID:""
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Quality=53/70  Signal level=-42 dBm  Noise level=-95 dBm
                    Encryption key :o n
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
          Cell 02 - Address: 00:30:4F:36:B6:EC
                    ESSID:"XXX"
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Quality=52/70  Signal level=-43 dBm  Noise level=-95 dBm
                    Encryption key :o n
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:bcn_int=100
I tak, mam AP, z którym łączę się z WEPem. Niestety podczas wydania polecenia:

Kod: Zaznacz cały

network-config
i podaniu w nim nazwy ESSID, WEP key i mode na auto podczas połączenia dostaję coś takiego:

Kod: Zaznacz cały

Warning ! Device eth0:avahi does not exists.

Configuring device wlan0 :

$ iwconfig wlan0 mode managed

$ iwconfig wlan0 essid "XXX"

$ iwconfig wlan0 rate auto

$ iwconfig wlan0 key XXX...
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "PASSWORD".

$ ifconfig wlan0 up

DHCP may take a while, please wait...
$ dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 4005
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 [url]http://www.isc.org/sw/dhcp/[/url]

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/wlan0/00:1f:3a:09:a3:eb
Sending on   LPF/wlan0/00:1f:3a:09:a3:eb
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Warning ! Device wlan0:avahi does not exists.

Configuring device eth0 :

$ ifconfig eth0 down
Dlaczego moja karta nie chce się połączyć z AP przez WEP? Pod Windows działa.
Dlaczego wyskakuje to:

Kod: Zaznacz cały

$ iwconfig wlan0 key XXX...
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "PASSWORD".
Szukałem w internecie, ale nic nie znalazłem co mógłbym wykorzystać.

EDIT
Na stronie MadWifi.org znalazłem coś takiego:

Kod: Zaznacz cały

When trying to configure WEP encryption, iwconfig complains about "invalid argument". What's wrong?