WIFI et atheros

Bonsoir,

Je souhaite installer le wifi sous debian-LXDE (source.list au carré “debian lenny”).
Bien que le sujet ait été plusieurs fois abordé, je ne trouve pas la solution à mon problème.
Voici ma carte wifi:

02:0b.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Multiprotocol MAC/baseband processor (rev 01)
J’ai suivi l’installation proposé par kna:
viewtopic.php?f=3&t=16106
voici mon 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 eth0

#iface eth0 inet dhcp

auto ath0
iface ath0 inet dhcp
wireless-essid MON_ESSID
wireless-key MA_CLE_WEP[/code]
iwconfig donne:

[code]lo no wireless extensions.

eth0 no wireless extensions.

wifi0 no wireless extensions.

ath0 IEEE 802.11g ESSID:“MON_ESSID” Nickname:""
Mode:Managed Frequency:2.457 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:MA_CLE_WEP Security mode:restricted
Power Management:off
Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
Rx invalid nwid:3 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/code]
et /etc/init.d/networking restart donne:

[code]Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 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:18:4d:ed:8e:d8
Sending on LPF/ath0/00:18:4d:ed:8e:d8
Sending on Socket/fallback
DHCPRELEASE on ath0 to 192.168.1.1 port 67
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 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:18:4d:ed:8e:d8
Sending on LPF/ath0/00:18:4d:ed:8e:d8
Sending on Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
[/code]

Je viens de trouver ceci:
wiki.debian.org/ath5k#fndef-6e47 … 9cca7d44-0

à étudier…

Tu vois bien tes réseaux si tu fais :

# iwlist scan ?

Que donne :

lsmod | grep ath ?

Si tu utilises un gestionnaire de connexion graphique (network-manager, wicd,…) il faut laisser seulement

auto lo iface lo inet loopback
dans /etc/network/interfaces. Sinon, ton fichier est bon pour une connexion ł à la mano » en WEP et DHCP.

Merci kna.
iwlist scan donne:

[code]lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wifi0 Interface doesn’t support scanning.

ath0 Scan completed :
Cell 01 - Address: 00:16:38:CD:39:6F
ESSID:""
Mode:Master
Frequency:2.462 GHz (Channel 11)
Quality=60/70 Signal level=-35 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
[/code]
lsmod | grep ath donne:

ath_rate_sample 11008 1 ath_pci 202104 0 wlan 193040 4 wlan_scan_sta,ath_rate_sample,ath_pci ath_hal 300672 3 ath_rate_sample,ath_pci

Essaye ceci pour voir:

rmmod wlan_scan_sta ath_pci ath_rate_sample wlan ath_hal wlan_scan_ap modprobe wlan_tkip aes modprobe ath_pci autocreate=none wlanconfig ath0 create wlandev wifi0 wlanmode managed iwconfig ath0 essid TO_ESSID iwconfig ath0 key TA_CLEF iwconfig # là tu vérifies que c'est correct ifconfig ath0 up # inutile en général mais des fois nécessaire dhclient ath0 # instant de vérité

bonjour fran.b
rmmod wlan_scan_sta ath_pci ath_rate_sample wlan ath_hal wlan_scan_ap
me renvoie:

ERROR: Module wlan_scan_sta is in use ERROR: Module wlan is in use by wlan_wep,wlan_scan_sta ERROR: Module wlan_scan_ap does not exist in /proc/modules
dois-je continuer?

Enlève en tout le module ath_pci et remet le avec l’option…

J-ai effectué avec succès rmmod ath_pci ath_rate_sample
Est-cela que tu demandais?
parcontre modprobe wlan_tkip aes renvoie une erreur:

dmesg | grep wlan_tkip donne:

Ça n’est pas grave pour le module aes, le nom a peut être changé, par contre c’est plus embêtant pour l’autre…

Continue en ignorant les erreurs à l’insertion des modules. Si ça coince, essaye sans cryptage sur un réseau ouvert. Je suis étonné de ton erreur de module, c’est un noyau debian?

[quote=“fran.b”]
'insertion des modules. Si ça coince, essaye sans cryptage sur un réseau ouvert. Je suis étonné de ton erreur de module, c’est un noyau debian?[/quote]
oui

Tu peux monter les messages dans le syslog relatifs à l’introduction des modules…

ça ne marche pas:

[code]PCsalon:/home/gerard# modprobe ath_pci autocreate=none
PCsalon:/home/gerard# wlanconfig ath0 create wlandev wifi0 wlanmode managed
ath0
PCsalon:/home/gerard# iwconfig ath0 essid MON_ESSID
PCsalon:/home/gerard# iwconfig ath0 key CLE_WEP
PCsalon:/home/gerard# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wifi0 no wireless extensions.

ath0 IEEE 802.11b ESSID:“MON_ESSID” Nickname:""
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:CLE_WEP Security mode:restricted
Power Management:off
Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

PCsalon:/home/gerard# ifconfig ath0 up
PCsalon:/home/gerard# dhclient ath0
There is already a pid file /var/run/dhclient.pid with pid 2767
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 http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/06:18:4d:ed:8e:d8
Sending on LPF/ath0/06:18:4d:ed:8e:d8
Sending on Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[/code]

PS: j’avais réussi à me connecter avec les deux commandes suivantes:
en fixant le point d’accès:

et en fixant le canal du wifi
iwconfig ath0 channel 11

Mais la connexion est lente…

:slightly_smiling:

Lorsque je disais MON_ESSID, remplace ça par le SSID de ton réseau, fais de même pour la clef WEP…

Là, tel que c’est assez normal que ça coince

[quote=“fran.b”]:slight_smile:

Lorsque je disais MON_ESSID, remplace ça par le SSID de ton réseau, fais de même pour la clef WEP…

Là, tel que c’est assez normal que ça coince[/quote]
C’est bien le SSID du réseau que j’ai mis…(ALICE-CDXXXX)

Peux-tu m’indiquer la commande que tu veux?

Tu dis que tu as réussi à te connecter en forçant le point d’accès et le channel. Que donne le iwconfig dans ce cas…

rajoute la ligne suivante dans ton fichier /etc/network/interfaces pour préciser que tu utilises ta carte en mode infrastructure

apparemment la carte/pilote/module fonctionnait bien…le fait qu’elle n’arrive pas à obtenir d’adresse ip par un serveur dhcp peut avoir d’autres raisons, en autres : si c’est une livebox qui sert d’AP, il faut mettre la box en mode assocation (pour valider l’@MAC de ta carte wifi)

Si tu n’as pas cette protection (mode association) sur ta box/routeur, vérifies qu’elle ne filtre pas les adresses MAC par son interface d’administration et si ce n’est pas le cas tu peux toujours essayer de configurer en ip static (histoire d’éliminer les problèmes possible).

Je n’arrive plus à le faire :blush: :

[code]PCsalon:/home/gerard# iwconfig ath0 ap 00:16:38:CD:39:6F
PCsalon:/home/gerard# iwconfig ath0 channel 11
PCsalon:/home/gerard# /etc/init.d/networking restart
Reconfiguring network interfaces…There is already a pid file /var/run/dhclient.ath0.pid with pid 4072
removed stale PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 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:18:4d:ed:8e:d8
Sending on LPF/ath0/00:18:4d:ed:8e:d8
Sending on Socket/fallback
DHCPRELEASE on ath0 to 192.168.1.1 port 67
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 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:18:4d:ed:8e:d8
Sending on LPF/ath0/00:18:4d:ed:8e:d8
Sending on Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 16
[/code]

[quote=“ReNzO_08”]rajoute la ligne suivante dans ton fichier /etc/network/interfaces pour préciser que tu utilises ta carte en mode infrastructure

Merci ReNzO_08, pour ton aide.
Je l’ai déjà fait sans succès, mais je vais tout de même le rajouter.

Je dispose d’une alicebox. Je vais me pencher sur le problème. Je verrai tout ça demain…

Jai tout d’abord suivi le tuto:
commentcamarche.net/faq/suje … fi-atheros
puis j’ai effacé le madwifi.deb puis suivi la méthode proposé par kna:

aptitude update aptitude install module-assistant m-a prepare m-a a-i madwifi modprobe ath_pci echo "modprobe ath_pci" >> /etc/modules
Les deux méthodes sont-elles identiques? J’ai peut-être foutu le bordel…
Comment repartir de zéro proprement?