Probleme avec Wireless 3945 ABG

Bonjour, je n’arrive pas à faire macher le WIFI sous Debian (version 5.03). Ma carte reseau est une “Intel Pro Wireless 3945 ABG”. J’ai consulté pas mal d’explications sur les forums concernant l’installation des bons firmwares pour cette carte qui pose probleme, j’ai effectué toutes les manips décrite sur les sites mais je n’obtiens pas de résultat. Malheureusement je suis un débutan en systemes unix et ne sais donc pas trop comment regler le probleme, quelqu’un pourrait-il m’aider.

-J’ai modifie le /etc/apt/sources.list pour ajouter les contrib et non-free
-J’ai effectue la commande “aptitude update” pour mettre à jour les paquets
-J’ai fait “apt-get install firmware-iwlwifi” qui a fonctionné correctement
-Puis “modprobe iwl3945” qui marche ou ne marche pas je ne sais pas puisqu’il ne me renvoie rien (mais ne marqque pas d’erreurs).
-Pour finir j’ai edite le fichier “/etc/network/interfaces” pour ajouter les lignes correcpondantes à mon interface WIFI

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

-J’ai recupere wpasupplicant avec “apt-get install wpasupplicant” car je passe par un routeur Neuf Telecom en cle WPA-PSK

-Dans le fichier “/etc/wpa_supplicant/wpa_supplicant.conf” j’ai mis : ---------------------------------------
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="Mon_EssiD"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk=Ma_Cle
priority=5
}

-J’ai ensuite essaye la commande “ifup wlan0” en tant qu’administrateur La reponse est : ---------------------------------------------------------------------------------------------------- portableDEBIAN:/home/eric# ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:19:d2:6e:e6:a9
Sending on LPF/wlan0/00:19:d2:6e:e6:a9
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

“/sbin/iwconfig”

portableDEBIAN:/# /sbin/iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=15 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key: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:0 Missed beacon:0

“/sbin/ifconfig”

portableDEBIAN:/# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:a9:86:b9:24
inet adr:192.168.1.24 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::213:a9ff:fe86:b924/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1833 errors:0 dropped:0 overruns:0 frame:0
TX packets:2202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:1360729 (1.2 MiB) TX bytes:449422 (438.8 KiB)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:60218 (58.8 KiB) TX bytes:60218 (58.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:19:d2:6e:e6:a9
UP BROADCAST 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 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0:avahi Link encap:Ethernet HWaddr 00:19:d2:6e:e6:a9
inet adr:169.254.9.237 Bcast:169.254.255.255 Masque:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1

wmaster0 Link encap:UNSPEC HWaddr 00-19-D2-6E-E6-A9-65-74-00-00-00-00-00-00-00-00
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 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

“/sbin/route -n”

portableDEBIAN:/# /sbin/route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 wlan0

“cat /etc/resolv.conf”

portableDEBIAN:/# cat /etc/resolv.conf

BEGIN INFO

Modified_by: NetworkManager

Process: /usr/bin/NetworkManager

Process_id: 3507

END INFO

nameserver 192.168.1.1

“cat /etc/network/interfaces”

portableDEBIAN:/# cat /etc/network/interfaces

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 eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Je suis conscient que ça fait beaucoup d’informations en une seule fois… J’ai consulté pleins de forums et de tutoriels pour installer le wifi avec cette carte reseau sous linux mais je n’y parviens toujours pas… je m’en remets donc à la communauté :slightly_smiling:

Quelqu’un sait-il comment résoudre mon problème? Sachant que le WIFI fonctionne tres bien sous Window et que avant d’avoir Debian j’avais Ubuntu et ça marchait très bien aussi…

[quote=“ehochedez”]
-J’ai modifie le /etc/apt/sources.list pour ajouter les contrib et non-free
-J’ai effectue la commande “aptitude update” pour mettre à jour les paquets
-J’ai fait “apt-get install firmware-iwlwifi” qui a fonctionné correctement
-Puis “modprobe iwl3945” qui marche ou ne marche pas je ne sais pas puisqu’il ne me renvoie rien (mais ne marqque pas d’erreurs). [/quote]
regarde /var/log/syslog ou la commande dmesg pour savoir.

[quote]
-Pour finir j’ai edite le fichier “/etc/network/interfaces” pour ajouter les lignes correcpondantes à mon interface WIFI

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

-J’ai recupere wpasupplicant avec “apt-get install wpasupplicant” car je passe par un routeur Neuf Telecom en cle WPA-PSK

-Dans le fichier “/etc/wpa_supplicant/wpa_supplicant.conf” j’ai mis : [/quote]
Fais simple, met

network={
    ssid="Mon_EssiD"
    proto=WPA
    psk=Ma_Cle
}

et essaye de faire
wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -w -d

Merci Fran.b de te pencher sur mon probleme,

en tapant la commande “demsg” j’obtiens dans la tonne de lignes d’affichees celle suivante :
[ 7.129168] iwl3945: Detected Intel Wireless WiFi Link 3945ABG
J’imagine que c’est plutot bon signe…

J’ai remodifié le fichier “/etc/wpa_supplicant/wpa_supplicant.conf” selon tes recommendations

Et pour ce qui est de la commande “wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -w -d” j’obtiens :


portableDEBIAN:/home/eric# wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -w -d
wpa_supplicant: invalid option – w
wpa_supplicant v0.6.4
Copyright © 2003-2008, Jouni Malinen j@w1.fi and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (openssl.org/)

usage:
wpa_supplicant [-BddhKLqqtuvW] [-P] [-g]
-i -c [-C] [-D] [-p<driver_param>]
[-b<br_ifname>] [-f]
[-N -i -c [-C] [-D]
[-p<driver_param>] [-b<br_ifname>] …]

drivers:
wext = Linux wireless extensions (generic)
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
wired = wpa_supplicant wired Ethernet driver
options:
-b = optional bridge interface name
-B = run daemon in the background
-c = Configuration file
-C = ctrl_interface parameter (only used if -c is not)
-i = interface name
-d = increase debugging verbosity (-dd even more)
-D = driver name
-f = log output to debug file instead of stdout
-g = global ctrl_interface
-K = include keys (passwords, etc.) in debug output
-t = include timestamp in debug messages
-h = show this help text
-L = show license (GPL and BSD)
-p = driver parameters
-P = PID file
-q = decrease debugging verbosity (-qq even less)
-u = enable DBus control interface
-v = show version
-W = wait for a control interface monitor before starting
-N = start describing new interface
example:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

qui n’est pas le résultat attendu j’imagine…

Je ne constate pas de changement… toujours le même problème persiste… une idée?

[quote=“ehochedez”]Bonjour, je n’arrive pas à faire macher le WIFI sous Debian (version 5.03). Ma carte reseau est une “Intel Pro Wireless 3945 ABG”.
-Puis “modprobe iwl3945” qui marche ou ne marche pas je ne sais pas puisqu’il ne me renvoie rien (mais ne marqque pas d’erreurs).[/quote]

C’est que ça fonctionne ; le module a bien été chargé.

[quote=“ehochedez”]-Pour finir j’ai edite le fichier “/etc/network/interfaces” pour ajouter les lignes correcpondantes à mon interface WIFI

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

[/quote]

Il faut aussi rajouter dessous “wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf” :
wpa-driver wext

Attention dans psk=Ma_Cle, Ma_Cle doit être entre guillemet.

On voit là clairement qu’i y a une erreur de syntaxe au niveau de wpa_supplicant.

Il faut ensuite redémarrer le réseau :
/etc/init.d/networking restart.

Bien cordialement