Wifi trouvé mais pas de connexion

uname -r

debian:/usr/src# uname -r 2.6.21-2-686

lsmod | grep ipw3945 :

debian:/usr/src# lsmod | grep ipw3945 ipw3945 192964 1 ieee80211 30984 1 ipw3945 firmware_class 9408 2 pcmcia,ipw3945

iwlist scan :

[code]debian:/usr/src# iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

Warning: Driver for device eth1 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken…

eth1 Scan completed :
Cell 01 - Address: 00:17:33:35:4F:3D
ESSID:"NEUF_4F3C"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=96/100 Signal level=-30 dBm Noise level=-30 dBm
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Extra: Last beacon: 176ms ago
[/code]

Ca ne marche toujours pas :imp:

essayes apt-get install wireless-tools=29~pre22-1 pour mettre les wireless-tools en sid aussi.

ca me dis que j’ai deja la version la plus récente.

Avec tout ca je ne sais plus quel configuration adopté.

tu peux redonner apt-cache policy ipw3945-source ipw3945d wireless-tools wpasupplicant stp ?
Tu en es ou dans ta config, tu as quoi maintenant, pour résumer ?

Voila le resultat de la commande :

debian:/home/thomas# apt-cache policy ipw3945-source ipw3945d wireless-tools wpasupplicant ipw3945-source: Installé : 1.1.2-7 Candidat : 1.2.1-2 Table de version : 1.2.1-2 0 500 http://ftp.fr.debian.org sid/contrib Packages 1.2.1-1 0 500 http://ftp.fr.debian.org lenny/contrib Packages *** 1.1.2-7 0 500 http://ftp.fr.debian.org etch/contrib Packages 100 /var/lib/dpkg/status ipw3945d: Installé : 1.7.22-4 Candidat : 1.7.22-4 Table de version : *** 1.7.22-4 0 500 http://ftp.fr.debian.org etch/non-free Packages 500 http://ftp.fr.debian.org lenny/non-free Packages 500 http://ftp.fr.debian.org sid/non-free Packages 100 /var/lib/dpkg/status wireless-tools: Installé : 29~pre22-1 Candidat : 29~pre22-1 Table de version : *** 29~pre22-1 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 28-1 0 500 http://ftp.fr.debian.org etch/main Packages 500 http://ftp.fr.debian.org lenny/main Packages wpasupplicant: Installé : 0.6.0-2 Candidat : 0.6.0-2 Table de version : *** 0.6.0-2 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 0.6.0-1 0 500 http://ftp.fr.debian.org lenny/main Packages 0.5.5-2 0 500 http://ftp.fr.debian.org etch/main Packages

tu es toujours en sources etch sur ton ipw3945, alors que c’est ça qu’on essayait d’installer…
donc tu les force en sid et tu recompiles le module:

aptitude install ipw3945-source=1.2.1-2 m-a a-i -t ipw3945-source

voila c’est fait. Je te redonne le résultat de la commande :

debian:/home/thomas# apt-cache policy ipw3945-source ipw3945d wireless-tools wpasupplicant ipw3945-source: Installé : 1.2.1-2 Candidat : 1.2.1-2 Table de version : *** 1.2.1-2 0 500 http://ftp.fr.debian.org sid/contrib Packages 100 /var/lib/dpkg/status 1.2.1-1 0 500 http://ftp.fr.debian.org lenny/contrib Packages 1.1.2-7 0 500 http://ftp.fr.debian.org etch/contrib Packages ipw3945d: Installé : 1.7.22-4 Candidat : 1.7.22-4 Table de version : *** 1.7.22-4 0 500 http://ftp.fr.debian.org etch/non-free Packages 500 http://ftp.fr.debian.org lenny/non-free Packages 500 http://ftp.fr.debian.org sid/non-free Packages 100 /var/lib/dpkg/status wireless-tools: Installé : 29~pre22-1 Candidat : 29~pre22-1 Table de version : *** 29~pre22-1 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 28-1 0 500 http://ftp.fr.debian.org etch/main Packages 500 http://ftp.fr.debian.org lenny/main Packages wpasupplicant: Installé : 0.6.0-2 Candidat : 0.6.0-2 Table de version : *** 0.6.0-2 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 0.6.0-1 0 500 http://ftp.fr.debian.org lenny/main Packages 0.5.5-2 0 500 http://ftp.fr.debian.org etch/main Packages

Bon, voici ce que j’ai chez moi, et ça marche.roc@roc:~/devel/vbox/out/linux.amd64/release/bin$ apt-cache policy ipw3945-source ipw3945d wireless-tools wpasupplicant ipw3945-source: Installé : 1.2.1-2 Candidat : 1.2.1-2 Table de version : *** 1.2.1-2 0 990 http://ftp.fr.debian.org sid/contrib Packages 100 /var/lib/dpkg/status 1.2.1-1 0 992 http://ftp.fr.debian.org lenny/contrib Packages 1.1.2-7 0 995 http://ftp.fr.debian.org etch/contrib Packages ipw3945d: Installé : 1.7.22-4 Candidat : 1.7.22-4 Table de version : *** 1.7.22-4 0 995 http://ftp.fr.debian.org etch/non-free Packages 992 http://ftp.fr.debian.org lenny/non-free Packages 990 http://ftp.fr.debian.org sid/non-free Packages 100 /var/lib/dpkg/status wireless-tools: Installé : 29~pre22-1 Candidat : 29~pre22-1 Table de version : *** 29~pre22-1 0 990 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 28-1 0 995 http://ftp.fr.debian.org etch/main Packages 992 http://ftp.fr.debian.org lenny/main Packages wpasupplicant: Installé : 0.5.5-2 Candidat : 0.5.5-2 Table de version : 0.6.0-2 0 990 http://ftp.fr.debian.org sid/main Packages 0.6.0-1 0 992 http://ftp.fr.debian.org lenny/main Packages *** 0.5.5-2 0 995 http://ftp.fr.debian.org etch/main Packages 100 /var/lib/dpkg/status Alors j’ai une petite diffèrence sur le wpasupplicant, mais c’est pas grave.
Normalement, si tu as bien recompilé ton module, ton iwconfig ne doit plus râler, si ?
Et ça donne quoi maintenant ?

La commande iwconfig n’a jamais posé problème.

iwconfig

[code]debian:/home/thomas# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 unassociated ESSID:"NEUF_4C3F"
Mode:Managed Frequency=nan kHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:16 dBm
Retry limit:15 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:144 Missed beacon:0
[/code]

Sinon j’ai ressayé la méthode avec wpasuplicant.

Le fichier /etc/network/interfaces

[code]# This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

allow-hotplug eth1
iface eth1 inet dhcp
pre-up /etc/init.d/wpa-ifupdown start
wireless-mode Managed
wireless-essid NEUF_4C3F
wireless-key macléenclair
pre-down /etc/init.d/wpa-ifupdown stop[/code]

Le fichier wpa-supplicant.conf

[code]ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="NEUF_4F3C"
mode=0
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="macléenclair"
priority=5
} [/code]

Après ça je fait un /etc/init.d/networking restart
Et je fait un ifup eth1 ou un dhclient eth1

Mais c’est toujours le même problème

oublies wpasupplicant.conf, et enlèves le carrément.
Ensuite, ton /etc/network/interfaces, mets ça à la place:

allow-hotplug eth1 iface eth1 inet dhcp wpa-ssid "NEUF_4F3C" wpa-scan_ssid 1 wpa-proto WPA wpa-key_mgmt WPA-PSK wpa-pairwise TKIP wpa-group TKIP wpa-psk "ta clé en clair"

Bon j’ai fait ce que tu as dit, ensuite j’ai fait un /etc/init.d/networking restart
et un dhclient eth1

Et bizarrement ca ne marche pas :open_mouth:

ne fais pas de dhclient, c’est inclus dans la config d’eth1, il est dejà en dhcp.
rebootes un coup.

Bon j’ai rebooté, j’ai fait un ifdown eth1 puis un ifup eth1 et comme par magie ca a marché. Il faudrait que je me fasse un petit tuto récapitulatif, on sait jamais j’aurais peut-être à le refaire . :slightly_smiling:

Petit récapitulatif :

aptitude update aptitude install linux-image-2.6.21-2-686 ipw3945-modules-2.6.21-2-686

aptitude install ipw3945-source=1.2.1-2 m-a a-i -t ipw3945-source

Et mettre dans le fichier /etc/network/interfaces

allow-hotplug eth1 iface eth1 inet dhcp wpa-ssid "mon réseau" wpa-scan_ssid 1 wpa-proto WPA wpa-key_mgmt WPA-PSK wpa-pairwise TKIP wpa-group TKIP wpa-psk "ta clé en clair"

Donc en fin de compte le paquet wpasupplicant ne sert plus ?

En tout cas je te remercie vraiment beaucoup pour ton aide :wink:
Au fait pourquoi m’avais-tu parlé de béryl ?

si, c’est le paquet wpasupplicant qui va récupèrer tous les arguments wpa-* de ton fichier interfaces. Mais il n’y a plus à l’utiliser directement avec /etc/wpasupplicant.conf, car il est “wrappé” par les scripts debian du paquet.

beryl, c’est parceque tu avais des dépots exotiques dans ton sources.list, dont un qui parlait de beryl, mais visiblement ce sont des dépots dont tu avais même oublié l’existence, donc tu n’en a à priori pas besoin.