WiFi & WEP

používám KWiFiManager k připojení na WiFi sítě. Pokud síť nepůžívá WEP, připojím se bez problému. Ale doma používám ve své bezdrátové síti WEP zabezpečení. V KWiFiManageru dám vyhledat sítíě, objeví se i má domácí WiFi. Do kolonky WEP napíši kód, ktereý je 100pro správný a dá přepnout síť.
Objeví se hláška:
Přerušuje se přepnutí sítě kvůli neplatné specifikaci WEP klíče.

Kde dělám chybu? Děkuji za odpověď.

Bohuzel kwifi nepouzivam, ale muzes to zkusit udelat rucne pres iwconfig (viz man iwconfig - hledej key).

manuály iwconfig, iwlist,… jsem si pročetl, zkoušel jsem různé nastavení, ale WiFi se mě nerozeběhla.
iwlist najde:
eth1 Scan completed :
Cell 01 - Address: 00:13:D4:24:F8:0D
ESSID:“CDMA1”
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
Bit Rate:54 Mb/s
Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 24 36 48 54
Quality=80/100 Signal level=-49 dBm
(Unknown Wireless Token 0x8C05)
(Unknown Wireless Token 0x8C05)
Extra: Last beacon: 272ms ago

WEPkey je např.: 0xgagagag1

jak mám tedy dále postupovat pro připojení?

iwconfig eth1 key 0xgagagag1

v manu vidim:
key/enc[ryption]
Used to manipulate encryption or scrambling keys and security
mode.
To set the current encryption key, just enter the key in hex
digits as XXXX-XXXX-XXXX-XXXX or XXXXXXXX. To set a key other
than the current key, prepend or append [index] to the key
itself (this won’t change which is the active key). You can also
enter the key as an ASCII string by using the s: prefix.
Passphrase is currently not supported.
To change which key is the currently active key, just enter
[index] (without entering any key value).
off and on disable and reenable encryption.
The security mode may be open or restricted, and its meaning
depends on the card used. With most cards, in open mode no
authentication is used and the card may also accept non-
encrypted sessions, whereas in restricted mode only encrypted
sessions are accepted and the card will use authentication if
available.
If you need to set multiple keys, or set a key and change the
active key, you need to use multiple key directives. Arguments
can be put in any order, the last one will take precedence.
Examples :
iwconfig eth0 key 0123-4567-89
iwconfig eth0 key [3] 0123-4567-89
iwconfig eth0 key s:password [2]
iwconfig eth0 key [2]
iwconfig eth0 key open
iwconfig eth0 key off
iwconfig eth0 key restricted [3] 0123456789
iwconfig eth0 key 01-23 key 45-67 [4] key [4]

man iwconfig jsem si přečetl několikrát…

$ iwconfig eth1 key 0xgagagag1
Error for wireless request “Set Encode” (8B2A) :
invalid argument “0xgagagag1”.

zkoušel jsem i:
$ iwconfig eth1 key s:gagagag1

  • to něco provede
    nicméně se k WiFi se stejnak nepřipojím… Jak mám tedy dále postupovat?

Bohuzel konkretneji poradit neumim protoze zalezi na konkretni situaci. Pravdepodobne se ale hexa klic nezadava s 0x na zacatku. To je pouze oznaceni hexa (x neni platny znak v hexa). Zadavat ho jako s: je podle me zbytecne, protoze to pak prekoduje znaky stringu do hexa hodnot. Jisty si tim ale nejsem.

Ono ani nejde o to zadaní klíče (jenda z těch možností je dobře), jako o to jak se připojit na WiFi pomocí Wireless Tools a Shellu…

man iwconfig
iwconfig ethX mode managed (pokud je AP master a ne ad-hoc)
iwconfig ethX essid <essid_AP>

muze byt potreba jeste
iwconfig eth1X txpower auto
ifconfig ethX up

Tohle vsechno ale muzete udelat z kwifi pak jen nastavit klic pres iwconfig.